Skip to content

feat(theme): make config panel and command palette overlays theme-aware#53

Open
roramirez wants to merge 1 commit into
mainfrom
feat/08-overlay-theme
Open

feat(theme): make config panel and command palette overlays theme-aware#53
roramirez wants to merge 1 commit into
mainfrom
feat/08-overlay-theme

Conversation

@roramirez

@roramirez roramirez commented Jun 30, 2026

Copy link
Copy Markdown
Owner

What

The overlays used ~13 hardcoded RGB constants, so the config panel, command palette, and screenshot-name prompt kept fixed dark colors regardless of the active theme.

Changes

  • Replace the constants with an OverlayColors set resolved from ResolvedTheme.
  • The two panel backgrounds become dedicated overlay_bg / overlay_bg_sel theme fields (derived from background + color8 when a theme omits them; default.toml keeps the original values).
  • Every other overlay color maps to an existing chrome field or palette slot.
  • Thread &ResolvedTheme through draw_config_panel / draw_command_palette / draw_screenshot_name_input.

Tests

  • Theme tests for the explicit-override and palette-derived paths.

Card

plan-todo/08-mant-overlays-tema.md

The overlays used ~13 hardcoded RGB constants, so the config panel,
command palette, and screenshot-name prompt kept fixed dark colors
regardless of the active theme. Replace the constants with an
`OverlayColors` set resolved from `ResolvedTheme`: the two panel
backgrounds become dedicated `overlay_bg` / `overlay_bg_sel` theme fields
(derived from background + color8 when a theme omits them; default.toml
keeps the original values), and every other overlay color maps to an
existing chrome field or palette slot. Thread `&ResolvedTheme` through
draw_config_panel / draw_command_palette / draw_screenshot_name_input.

Add theme tests for the explicit-override and palette-derived paths.
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