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

Remove goog.color #2546

Merged
merged 6 commits into from
Jun 5, 2019
Merged

Remove goog.color #2546

merged 6 commits into from
Jun 5, 2019

Conversation

NeilFraser
Copy link
Contributor

Replace goog.color with our own Blockly.utils.colour in order to use the correct spelling.

Each commit in this PR can be viewed separately.

Also adds support for ‘#f00’, ‘rgb(255, 0, 0)’ and ‘red’ for block colours, in addition to ‘#ff0000’ (and of course hue).
@RoboErikG
Copy link
Contributor

Something in block_test -> test_set_style() broke. I don't see where the problem is from the code though...

Blockly now normalizes colours lowercase.
@NeilFraser
Copy link
Contributor Author

Something in block_test -> test_set_style() broke. I don't see where the problem is from the code though...

When Blockly round-trips colours, they now come back lowercase hex. Updated test.

@NeilFraser NeilFraser merged commit a18aa76 into develop Jun 5, 2019
@NeilFraser NeilFraser deleted the fraser-coloUr branch June 5, 2019 23:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants