CAMEL-23934: Fix light theme colors in TUI#24529
Merged
Merged
Conversation
Replace ~260 hardcoded Color.YELLOW/WHITE/DARK_GRAY usages with semantic CSS tokens resolved via Theme.java so that adding a new color theme only requires a new .tcss file with no Java changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Replace BRIGHT_GREEN in throughput sparkline with plain GREEN to match memory tab gauge. Replace Color.GREEN and Color.LIGHT_RED in history section titles (Body, Headers, Properties, Variables) and status indicators with Theme.success() and Theme.error() for better light theme readability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Replace BRIGHT_GREEN with plain GREEN for endpoint direction indicators and chart elements for better light theme readability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Replace Color.WHITE with Theme.baseFg() for property values so they are readable on both dark and light backgrounds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
White text is invisible on light theme backgrounds. Replace all ~45 semantic Color.WHITE usages across 15 files with Theme.baseFg() which resolves to the appropriate foreground per active theme. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ss()/error() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ectionBg() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…okens Replace Color.CYAN, Color.RED, Color.MAGENTA, Color.LIGHT_MAGENTA, Color.GRAY, and Color.BLUE with Theme.accent(), Theme.error(), Theme.notice(), Theme.muted(), and other semantic tokens. Consolidate MetricsTab metric type palette to use existing Theme tokens. Update SearchHighlighter to use Theme.searchMatch(). Clean up unused Color imports across 47 files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Consolidate mcp-active/mcp-idle/mcp-down into existing success/muted/error semantic tokens since they mapped to identical colors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Validate all 27 CSS tokens on stylesheet load so missing tokens fail fast instead of silently falling back. Replace remaining hardcoded Color.rgb brand orange with Theme.accent() in CamelCatalogTui, CamelMonitor, HttpTab, and SourceViewer. Add theme.md reference documenting all tokens for theme authors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…oss all tabs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…shortcuts - Add Theme.markdownStyles() for theme-aware MarkdownView heading/code/link colors and apply to all 5 MarkdownView usages (Help, AI, CVE, Endpoints, Doc) - Wrap MetricsTab empty state in bordered panel for visual consistency - Style tab bar key shortcuts (1-9, 0) with Theme.hintKey() so they stand out on light theme — primaryTabHeader now returns styled Span[] instead of String - Use Theme.hintKey() for More dropdown mnemonic keys Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 2 tested, 1 compile-only — current: 2 all testedMaveniverse Scalpel detected 3 affected modules (current approach: 2).
|
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.
Summary
Claude Code on behalf of davsclaus
.tcssfilelabel,change,search-match,mnemonic, and 8diagram-*tokens for theme-aware diagram colorsTheme.muted()across all tabsTheme.markdownStyles()for theme-aware MarkdownView heading/code/link colors#mnemonicCSS token with bold+underline for tab bar and menu keyboard shortcutsDiagramColorstheme-aware (borders, route IDs, EIP colors all resolve from CSS)theme.mdreference documentation for all CSS tokensTest plan
mvn install -DskipTestsCo-Authored-By: Claude Opus 4.6 noreply@anthropic.com
🤖 Generated with Claude Code