Repository navigation
Recolour hybrid nodes to avoid visually clashing with the darkened background of selecting a focus - #1821
Open
Purplegaze wants to merge 4 commits into
Open
Recolour hybrid nodes to avoid visually clashing with the darkened background of selecting a focus#1821Purplegaze wants to merge 4 commits into
Purplegaze wants to merge 4 commits into
Conversation
Coverage Report for CI Build 40008577191Coverage increased (+0.01%) to 60.392%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
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
Currently, the colour of hybrid nodes clashes a lot with the background change that happens when selecting a focus: the darkened background renders a hybrid node's rect colour almost invisible, while the text colour is very vibrant compared to regular inactivenodes.
This change fixes this visual clash by updating the colour of hybrid nodes to a "light rect/dark text" scheme so they visually interact with a darkened background in a similar way to regular nodes, and now differentiates hybrid nodes with italic text and a solid border instead of light text.
Implementation note: Currently, nodes are being detected as Hybrid based on if they have fill colour
#888888in the SVG, and this was carrying over to the nodes themselves as inline CSS and overriding any style rules. This PR keeps SVG parsing the same, but removes the fill colour of hybrid nodes when inserting them into the database, which allows the style rules defined inapp.scssto take effect.Screenshots:
note: colours may be slightly off because my laptop adds a filter to screenshots for some reason
Before
After
Type of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments
(Include any questions or comments you have regarding your changes.)
It doesn't look like there are currently any database tests for SVG parsing, only for intersection detection. Let me know if I need to add tests for the Parser.hs change somehow.