Repository navigation
feat(highlight): highlight colours set by the app - #215
Draft
JulienChampagnol wants to merge 7 commits into
Draft
JulienChampagnol wants to merge 7 commits into
JulienChampagnol wants to merge 7 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Outlining every cell of a highlighted surface hid its color under the edges. A picked cell is still outlined. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A highlight of every component of a model shows surfaces in brand Orange, lines in Auburn and corners in Anthracite. Some components, or a picked cell, stay in Orange. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new viewer.set_highlight_colors RPC sets the highlight, outline and whole-model component type colours for the session, restyling the highlights already loaded. Without it, and after reset_visualization, the viewer uses brand-neutral teal defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
viewer.set_highlight_colors(allColorRGB):color(some components, a picked cell or point),outline_color(picked cell outline),surfaces_color,lines_color,corners_color(a whole model highlighted; blocks takesurfaces_color).reset_visualization, the viewer uses brand-neutral teal defaults.Each app sets its colours through the Front's
ogwFront.highlightColors(Vease: brand Orange, Auburn, Anthracite).Depends on
ColorRGBfields to the shared type.Tests
tests/test_highlight_style.py: defaults, app colours, existing actors restyled, reset, whole model per-type colours.tests/test_viewer_protocols.py: a highlight already shown takes the app colours (image).🤖 Generated with Claude Code