Repository navigation
Fix group default fill colors - #5942
Merged
Merged
Conversation
Contributor
Author
|
@n-lark, what is your input on this? :) |
Member
|
Tested this locally - works for me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
The main focus of #5878 was fixing an issue I noticed with the color picker. Sometimes, it would incorrectly display the value
noneas the fill color even though a color value was set.Unfortunately, that fix surfaced the issue @VisualReversal reported.
The main issue is that the values set in
$group-default-fill*variables are used when no customization is applied.Currently, these variables have the following values in the dark theme:
With
$group-default-fill-opacity: 0.03;being the main culprit here. Since it's almost transparent, it makes it seem like any custom colors we set get removed.Speaking from experience, I rarely remember to change the opacity when customizing a group's color. I believe this is likely the case for other Node-RED users as well.
This PR fixes the issue by setting the same default values used in the light theme:
Fixes #5922
Checklist
npm run testto verify the unit tests pass