Scratch-blocks: Lists color

Created on 15 Sep 2016  路  7Comments  路  Source: LLK/scratch-blocks

In Scratch 1.4 and 2.0, list blocks are a different color from variables. In the current spec they are all the same color. Is that wanted?

enhancement

Most helpful comment

Updated the blocks color spec to include a Lists color among the Data Category

r3_vertical-colors

data colors

Data - Vars

Primary: #FF8C1A
Secondary: #FF8000
Tertiary: #DB6E00

Data - Lists

Primary: #FF661A
Secondary: #FF5500
Tertiary: #E64D00

All 7 comments

IMO they're totally different data types and should have different colors to reflect this.

@liam4 I agree that they should have different colours, but I don't think variables are data types. Text strings and numbers are data types.

How about having "variables" and "lists" as categories in the palette?

Yeah, they're rather different data _containers_, not types, oops!

How about having "variables" and "lists" as categories in the palette?

But then we'd need another category, because nine categories is.. a sad number. :P

edit: actually, _eleven_ categories! Wow.

Updated the blocks color spec to include a Lists color among the Data Category

r3_vertical-colors

data colors

Data - Vars

Primary: #FF8C1A
Secondary: #FF8000
Tertiary: #DB6E00

Data - Lists

Primary: #FF661A
Secondary: #FF5500
Tertiary: #E64D00

Looks great. Thanks @carljbowman

Whenever this is implemented, remember to update Blockly.Categories in core/constants.js so that lists can be styled separately from variable blocks with CSS

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alzter picture Alzter  路  3Comments

tmickel picture tmickel  路  3Comments

towerofnix picture towerofnix  路  4Comments

tmickel picture tmickel  路  6Comments

tmickel picture tmickel  路  3Comments