Skip to content

Fix close session dialog not respecting theme#233

Merged
StephaneDelcroix merged 2 commits intomainfrom
fix/the-close-session-dialog-is-not-themed-20260227-0735
Feb 28, 2026
Merged

Fix close session dialog not respecting theme#233
StephaneDelcroix merged 2 commits intomainfrom
fix/the-close-session-dialog-is-not-themed-20260227-0735

Conversation

@StephaneDelcroix
Copy link
Copy Markdown
Collaborator

Bug

The close session confirmation dialog used hardcoded dark-theme colors instead of CSS theme variables, making it look wrong in light themes.

Fix

Replace hardcoded colors with theme variables in app.css:

  • background: #2a2a3evar(--bg-secondary)
  • border: rgba(124,92,252,...)var(--border-accent)
  • box-shadow: removed hardcoded purple glow, uses var(--border-accent)
  • title color: #fffvar(--text-bright)
  • close button: #ff6b6bvar(--accent-error)

Tests

Added CloseDialogThemeTests.cs (5 tests) that scan app.css to verify the dialog styles use theme variables and don't contain hardcoded colors.

StephaneDelcroix and others added 2 commits February 28, 2026 10:17
Replace hardcoded dark-theme colors in the JS-rendered close session
dialog with CSS theme variables so it looks correct in all themes
(polypilot-light, solarized-light, solarized-dark, etc.):

- background: #2a2a3e → var(--bg-secondary)
- border: rgba(124,92,252,0.6) → var(--border-accent)
- box-shadow: hardcoded purple → var(--border-accent)
- title color: #fff → var(--text-bright)
- close button: #ff6b6b → var(--accent-error)

Add regression tests to verify the dialog CSS uses theme variables.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Change color: #fff to color: var(--text-bright) on .js-close-dialog-btn
for consistent theming and better contrast in light themes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@StephaneDelcroix StephaneDelcroix force-pushed the fix/the-close-session-dialog-is-not-themed-20260227-0735 branch from b559291 to dbd3da3 Compare February 28, 2026 09:18
@StephaneDelcroix
Copy link
Copy Markdown
Collaborator Author

✅ Multi-Model Review: Ready to Merge

5-model consensus review found one issue — color: #fff left hardcoded on .js-close-dialog-btn — which has been fixed in a follow-up commit:

  • Changed to color: var(--text-bright) for consistent theming
  • Added test assertion verifying no hardcoded #fff remains on the button

Post-fix re-review (5 models): All confirmed the fix. No remaining consensus issues.

All CSS variables (--bg-secondary, --border-accent, --text-bright, --accent-error) are defined across all 4 themes. Tests pass (5/5).

@StephaneDelcroix StephaneDelcroix merged commit 73f7c9e into main Feb 28, 2026
@StephaneDelcroix StephaneDelcroix deleted the fix/the-close-session-dialog-is-not-themed-20260227-0735 branch February 28, 2026 09:42
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.

1 participant