[
https://issues.apache.org/jira/browse/CAMEL-23839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-23839 started by Adriano Machado.
-----------------------------------------------
> camel-jbang: switchable light/dark CSS theme for the TUI
> --------------------------------------------------------
>
> Key: CAMEL-23839
> URL: https://issues.apache.org/jira/browse/CAMEL-23839
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Adriano Machado
> Assignee: Adriano Machado
> Priority: Major
>
> The Camel JBang TUI \(@camel tui@\) currently hard\-codes its colors and
> chrome styling
> inline across the various screens, with a single fixed palette. There is no
> way for a
> user to adapt the colors to a light or dark terminal.
> This change introduces a switchable, CSS\-backed theme for the TUI:* A
> central {{Theme}} class becomes the single semantic source of truth for styles
> \(borders, status colors, accents, zebra rows, empty\-state, etc.\).
> * Themes are defined as CSS stylesheets \(backed by the {{tamboui\-css}}
> library\) and
> ship in two palettes: _dark_ \(default\) and _light_.
> * Press _Shift\+T_ on any screen to toggle between light and dark at runtime.
> * The selection is persisted as {{camel.tui.theme}} \({{dark}} or {{light}}\)
> in
> {{.camel\-jbang\-user.properties}} and restored on the next launch.
> * The brand orange accent is identical in both themes; status colors
> \(success,
> warning, error\) and borders adapt for readability on dark and light
> terminals.
> Documentation is updated in the TUI manual page and the 4.21 upgrade guide.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)