Skip to content

fix(skins): per-skin status bar color overrides (salvage #1866) - #14015

Merged
teknium1 merged 3 commits into
mainfrom
hermes/hermes-b01943a2
Apr 22, 2026
Merged

fix(skins): per-skin status bar color overrides (salvage #1866)#14015
teknium1 merged 3 commits into
mainfrom
hermes/hermes-b01943a2

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Skins can now customize the CLI status bar palette independently of their banner palette via eight new color keys: status_bar_bg, status_bar_text, status_bar_strong, status_bar_dim, status_bar_good, status_bar_warn, status_bar_bad, status_bar_critical. Skins that don't set them keep current behavior (status bar falls back to banner_text/banner_title/banner_dim/ui_ok/ui_warn/ui_error).

Salvages #1866 (@kshitijk4poor) onto current main.

Changes

  • hermes_cli/skin_engine.py: per-skin status_bar_* blocks for ares, dragonflame (charizard), ghost (sisyphus), midnight (slate), nous (default), silver (mono), sunrise (poseidon); resolver reads new keys in get_prompt_toolkit_style_overrides().
  • Follow-up: dropped the status_bar_{text,strong,dim,good,warn,bad,critical} seeds from the default skin so _build_skin_config doesn't inherit silver text into light-mode skins (daylight, warm-lightmode). Dark skins render identically; light skins now use their own banner_text/etc. for readable contrast.
  • Tests: cover new keys in tests/hermes_cli/test_skin_engine.py and tests/test_cli_skin_integration.py.

Validation

Before After
daylight status-bar bg:#E5EDF8 #C0C0C0 (silver on light) bg:#E5EDF8 #111827 (dark on light)
warm-lightmode status-bar bg:#F5F0E8 #C0C0C0 bg:#F5F0E8 #2C1810
dark skins unchanged unchanged
scripts/run_tests.sh tests/hermes_cli/test_skin_engine.py tests/test_cli_skin_integration.py 44/44 passed

Closes #1866.

kshitijk4poor and others added 3 commits April 22, 2026 06:10
Route prompt_toolkit status bar colors through the skin engine so /skin updates the status bar alongside the rest of the interactive TUI.

Add regression coverage for the new status bar style override keys and CLI style composition.
Drop rebased test assumptions about theme-mode helpers removed on main and keep the status bar skin integration aligned with the current skin engine model.
The salvaged status-bar skin keys were seeded on the default skin, but
_build_skin_config merges default.colors into every skin — so daylight
and warm-lightmode silently inherited silver status_bar_text (#C0C0C0)
on their light backgrounds, rendering as low-contrast gray on gray.

Drop the seven status_bar_{text,strong,dim,good,warn,bad,critical}
entries from the default skin's colors and let get_prompt_toolkit_style
_overrides fall back to banner_text / banner_title / banner_dim /
ui_ok / ui_warn / ui_error. Dark skins keep their explicit overrides
and render identically; light skins now inherit their own dark banner
colors for readable status-bar text.
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 22, 2026
@teknium1
teknium1 merged commit 88564ad into main Apr 22, 2026
11 of 12 checks passed
@teknium1
teknium1 deleted the hermes/hermes-b01943a2 branch April 22, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants