Repository navigation
fix(viewer): add missing code-editor syntax colors for solarized and gruvbox themes (#3298) - #3303
Closed
kunaltaydetayde7552-ship-it wants to merge 1 commit into
Conversation
…gruvbox themes Ensure the JSON debug tab and expression editor syntax tokens are clearly legible across Solarized, Solarized Dark, and Gruvbox Light themes by defining the missing code-editor CSS custom properties. Fixes perspective-dev#3298 Signed-off-by: kunaltaydetayde7552-ship-it <kunaltaydetayde7552@gmail.com>
Member
|
slop |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
Fixes #3298
In
ust/perspective-viewer/src/themes/defaults.css, the code editor syntax custom properties (--psp-code-editor--symbol--color, --literal--color, --operator--color, --comment--color, --column--color) are registered via CSS Houdini @Property\ with \initial-value: transparent\ and reset to \initial\ on viewer themes.
While 14 built-in themes define these variables, \solarized.css, \solarized-dark.css, and \gruvbox.css\ omitted them. Consequently, .symbol, .literal, .operator, .comment, .column\ tokens and the #textarea_editable\ caret color computed to
gba(0, 0, 0, 0)\ (transparent/invisible) in the JSON debug tab (\DebugPanel) and expression editor.
Changes Made
AI Assistance Disclosure
Assisted by Google Antigravity for palette contrast analysis, regression test authoring, and PR formatting. All changes and formatting rules verified locally.