Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled Blocks Pattern Colour Selection #1403

Open
4 of 10 tasks
asanzo opened this issue Oct 30, 2017 · 1 comment
Open
4 of 10 tasks

Disabled Blocks Pattern Colour Selection #1403

asanzo opened this issue Oct 30, 2017 · 1 comment

Comments

@asanzo
Copy link

asanzo commented Oct 30, 2017

Problem statement

  • Bug report
  • Feature request

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

  • Desktop:
    • Chrome
    • Firefox
    • Safari
    • Opera
    • IE 10+
    • IE 11
    • EDGE

Reproduced in Win 7/10 and Ubuntu/Mint

Thanks in advance for any respose :)

@NeilFraser
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants