Skip to content

Theme-appropriate panel titlebar severity palettes across all themes - #421

Merged
TheWitness merged 2 commits into
developfrom
fix/titlebar-theme-severity-palettes
Oct 9, 2026
Merged

TheWitness merged 2 commits into
developfrom
fix/titlebar-theme-severity-palettes

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Problem

The panel titlebar severity colors (green = good, orange/yellow = warning,
red = bad, grey = unknown) were supposed to be theme-appropriate per theme.
In practice a single generic palette was copy-pasted into almost every theme
file, so only deepness actually looked right. On modern and the rest the
titlebars were garish or off:

  • Green was either a neon kelly rgba(40,180,40) (modern, paw) or a drab
    olive rgba(148,179,107) (cacti, carrot, classic, dark, hollyberry,
    paper-plane, raspberry) - and in both cases used black text on a
    mid-green bar (low contrast).
  • Warning was a pure yellow on midwinter/sunrise.
  • Red/bubbles were the same generic values regardless of theme brightness.

Fix

Give each theme a legible, theme-appropriate severity palette while keeping
the semantics intact - green still reads green, orange reads orange/warning,
red reads red:

  • Light themes (cacti, carrot, classic, hollyberry, raspberry, modern,
    paw): forest green #2e7d32 with white text, red #c62828, warning
    #e08a1e.
  • Dark themes (dark, paper-plane, midwinter): deepened green #2e8b45,
    brick red #b3261e, amber #d9871a/#e0a81e, with brighter notification
    bubbles (#4caf79/#ff6b6b/#ff9e3d) so they pop against the dark panels.
  • sunrise: keeps its own #3C8A3C green, with the dark-theme red/amber
    treatment and a brighter green bubble.
  • Text contrast corrected (white on the deeper green/red bars; dark text on
    the lighter amber/grey bars).
  • Grey (unknown) stays neutral #a1a1a1 on every theme.
  • deepness is unchanged - it already had this treatment.

No markup, PHP, or JS changes - CSS only. Brace balance verified for every
edited file; deepness.css untouched.

The green/orange/red titlebar severity colors were a single generic set
copy-pasted into every theme file (garish kelly or drab olive green, black
text on mid-green, pure yellow on midwinter/sunrise), so only deepness looked
theme-appropriate. Tune each theme's green (good), orange (warning) and red
(bad) to legible, theme-matched tones with correct text contrast, deepened
for dark themes and brightened notification bubbles. Grey (unknown) stays
neutral; deepness is unchanged.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 9, 2026 20:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Green titlebars in four themes remain below the WCAG AA contrast threshold.

4 open findings
What changed in this PR

Updates severity titlebar and notification colors to better match each Cacti theme.

Changes:

  • Introduces distinct light, dark, and Sunrise severity palettes.
  • Improves titlebar text and notification-bubble visibility.
  • Documents the palette update.
File Description
CHANGELOG.md Documents the theme palette update.
css/​cacti.css Applies the light-theme palette.
css/​carrot.css Applies the light-theme palette.
css/​classic.css Applies the light-theme palette.
css/​dark.css Applies the dark-theme palette.
css/​hollyberry.css Applies the light-theme palette.
css/​midwinter.css Applies the dark-theme palette.
css/​modern.css Applies the light-theme palette.
css/​paper-plane.css Applies the dark-theme palette.
css/​paw.css Applies the light-theme palette.
css/​raspberry.css Applies the light-theme palette.
css/​sunrise.css Applies a Sunrise-specific palette.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread css/dark.css Outdated
Comment thread css/midwinter.css Outdated
Comment thread css/paper-plane.css Outdated
Comment thread css/sunrise.css
#2e8b45 (and sunrise #3C8A3C) gave only 4.29:1 against white title text.
Deepen to #2a8040 (4.93:1) for dark/midwinter/paper-plane and #348034
(4.90:1) for sunrise, keeping each theme's green hue.
@TheWitness
TheWitness merged commit 8f0f67d into develop Oct 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants