ammachado opened a new pull request, #24481:
URL: https://github.com/apache/camel/pull/24481

   # Description
   
   Follow-up to #24322 fixing TUI theme rendering and extending palette control 
for `camel tui`.
   
   ### Bug fixes
   - **Background patching** — `applyThemeBaseColors()` fills cells with 
missing fg/bg after each frame render so the terminal no longer falls back to 
its default black background.
   - **Theme toggle responsiveness** — F2 actions-menu toggle now clears the 
terminal buffer so palette changes apply immediately.
   - **Integration name color** — Overview tab uses `Theme.info()` instead of 
hardcoded `Color.CYAN`, matching the new hex palette.
   
   ### Enhancements
   - **`--theme=dark|light` CLI option** — overrides persisted 
`camel.tui.theme` for the current session (`TuiCommand` + `CamelMonitor`).
   - **VS Code–inspired hex palette** — `dark.tcss` / `light.tcss` migrated 
from ANSI names to explicit truecolor; new `#base-bg` / `#base-fg` canvas 
tokens.
   - **`ThemeMode` enum** — centralizes dark/light parsing, persistence, 
picocli completion, and mode activation (case-insensitive).
   
   ### Tests
   - `CamelMonitorTest` — `applyThemeBaseColors` buffer patching (unset cells, 
selection preservation, partial patch, theme-aware palette).
   - `ThemeTest` — updated palette assertions, `applyStartupMode`, 
`isValidMode`, mixed-case `setMode`.
   
   ### Documentation
   - `camel-jbang-tui.adoc` — F2 menu theme toggle, `--theme` option.
   - `camel-4x-upgrade-guide-4_22.adoc` — `--theme` CLI note.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-23839
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _AI-generated content by Claude (Cursor agent) on behalf of ammachado._
   
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to