google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.53k stars 3.72k forks source link

Disabled Blocks Pattern Colour Selection #1403

Open asanzo opened 7 years ago

asanzo commented 7 years ago

Problem statement

Expected Behavior

It'd be nice to be able to change the colour of the pattern in the disabled blocks.

In order to be able to do something like this:

Blockly.Msg.DISABLED_BACKGROUND_HUE = 0;
Blockly.Msg.DISABLED_PATTERN_HUE = 60;

Actual Behavior

In some applications, the resultant colour of the disabled blocks makes the blocks difficult to see, or distinguish the borders and even read the labels:

seleccion_008

Steps to Reproduce

Just make a block disabled

Stack Traces

Probably the line to modify should be around here

Operating System and Browser

Reproduced in Win 7/10 and Ubuntu/Mint

Thanks in advance for any respose :)

NeilFraser commented 7 years ago

Note that you can easily override the look of disabled blocks with CSS. For example:

.blocklyDisabled>.blocklyPath { fill: #f00; }