2026-07-23 23:11:08 +02:00
|
|
|
# UI Colors (extended)
|
2026-09-29 01:19:42 +02:00
|
|
|
accent = "#1793d1"
|
|
|
|
|
cursor = "#c0caf5"
|
2026-07-23 23:11:08 +02:00
|
|
|
|
|
|
|
|
# Primary colors
|
2026-09-29 01:19:42 +02:00
|
|
|
foreground = "#c0caf5"
|
|
|
|
|
background = "#1a1b26"
|
2026-07-23 23:11:08 +02:00
|
|
|
|
|
|
|
|
# Selection colors
|
|
|
|
|
selection_foreground = "#1a1b26"
|
|
|
|
|
selection_background = "#c0caf5"
|
|
|
|
|
|
|
|
|
|
# Normal colors (ANSI 0-7)
|
|
|
|
|
color0 = "#1a1b26"
|
|
|
|
|
color1 = "#f7768e"
|
|
|
|
|
color2 = "#a6e3a1"
|
|
|
|
|
color3 = "#f9e2af"
|
2026-09-29 01:19:42 +02:00
|
|
|
color4 = "#1793d1"
|
2026-07-23 23:11:08 +02:00
|
|
|
color5 = "#cba6f7"
|
|
|
|
|
color6 = "#89dceb"
|
|
|
|
|
color7 = "#c0caf5"
|
|
|
|
|
|
|
|
|
|
# Bright colors (ANSI 8-15)
|
|
|
|
|
color8 = "#565f89"
|
|
|
|
|
color9 = "#f7768e"
|
|
|
|
|
color10 = "#a6e3a1"
|
|
|
|
|
color11 = "#f9e2af"
|
2026-09-29 01:19:42 +02:00
|
|
|
color12 = "#7aa2f7"
|
2026-07-23 23:11:08 +02:00
|
|
|
color13 = "#cba6f7"
|
|
|
|
|
color14 = "#89dceb"
|
|
|
|
|
color15 = "#ffffff"
|
Theme presets, and make the bar itself actually re-theme (colors + opacity)
Presets (theme/presets.py): named snapshots of the whole palette, saved/loaded/
deleted from a new bookmark button on the theme widget. Stored outside the
repo in ~/.local/share/quickshell/theme-presets/ (JSON, per-machine data, same
precedent as the wallpaper history). A built-in Default entry can't be
overwritten or deleted.
Wiring that up exposed a real gap: the bar's own colors were hand-matched
hardcoded QML literals, not actually driven by theme/colors.toml, and opacity
wasn't themeable anywhere yet. Fixed both:
- colors.toml gains bar_color/pill_color/popup_color (paired with the existing
*_opacity floats) plus generic opacity support in render.py (--set now
accepts a 0-1 float, not just #rrggbb)
- Bar.qml now fetches the palette via render.py --dump and rebinds every
matching hardcoded hex literal (accent, foreground, color1/2/3/5/6/8/12,
the bar/pill/popup backgrounds, the logo tint and the bar's bottom border)
to it; kitty's background_opacity is template-driven instead of a second
hardcoded line fighting the themed one
- both the bar and the widget listen on their own Quickshell IPC target
(render.py/presets.py ping both after every change) so edits reload with no
restart, matching the "instant" promise the color editor already had
- the theme widget's color popup gained a slider + matching color swatch per
surface (Bar/Pills/Popups/Terminal) below the existing role list, and its
role labels now say what each color actually paints instead of "Color N"
(verified against the templates and Bar.qml's literals, not guessed) with
unused roles honestly marked as such
- the CPU pill's icon color is deliberately hardcoded again after this -
it coincidentally shared color12's hex value with the help icon/detail
text, so theming color12 was recoloring it too
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-09-28 22:45:09 +02:00
|
|
|
|
|
|
|
|
# Bar/pill/popup background colors (the terminal's is "background" above, already shared
|
|
|
|
|
# with mako) - each paired with the matching *_opacity float below for its transparency
|
|
|
|
|
bar_color = "#12131b"
|
2026-09-29 01:19:42 +02:00
|
|
|
pill_color = "#1a1b26"
|
|
|
|
|
popup_color = "#1a1b26"
|
Theme presets, and make the bar itself actually re-theme (colors + opacity)
Presets (theme/presets.py): named snapshots of the whole palette, saved/loaded/
deleted from a new bookmark button on the theme widget. Stored outside the
repo in ~/.local/share/quickshell/theme-presets/ (JSON, per-machine data, same
precedent as the wallpaper history). A built-in Default entry can't be
overwritten or deleted.
Wiring that up exposed a real gap: the bar's own colors were hand-matched
hardcoded QML literals, not actually driven by theme/colors.toml, and opacity
wasn't themeable anywhere yet. Fixed both:
- colors.toml gains bar_color/pill_color/popup_color (paired with the existing
*_opacity floats) plus generic opacity support in render.py (--set now
accepts a 0-1 float, not just #rrggbb)
- Bar.qml now fetches the palette via render.py --dump and rebinds every
matching hardcoded hex literal (accent, foreground, color1/2/3/5/6/8/12,
the bar/pill/popup backgrounds, the logo tint and the bar's bottom border)
to it; kitty's background_opacity is template-driven instead of a second
hardcoded line fighting the themed one
- both the bar and the widget listen on their own Quickshell IPC target
(render.py/presets.py ping both after every change) so edits reload with no
restart, matching the "instant" promise the color editor already had
- the theme widget's color popup gained a slider + matching color swatch per
surface (Bar/Pills/Popups/Terminal) below the existing role list, and its
role labels now say what each color actually paints instead of "Color N"
(verified against the templates and Bar.qml's literals, not guessed) with
unused roles honestly marked as such
- the CPU pill's icon color is deliberately hardcoded again after this -
it coincidentally shared color12's hex value with the help icon/detail
text, so theming color12 was recoloring it too
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-09-28 22:45:09 +02:00
|
|
|
|
2026-09-29 01:19:42 +02:00
|
|
|
# GTK file-selection highlight (Thunar's grid, etc.) - decoupled from `accent` so it can
|
|
|
|
|
# be set independently, defaults to matching it.
|
2026-10-11 01:31:14 +02:00
|
|
|
gtk_selection_color = "#1793d1"
|
2026-09-29 01:19:42 +02:00
|
|
|
|
|
|
|
|
# Opacity (0-1) for the bar itself, its pills, its popups, the terminal background, and
|
|
|
|
|
# the GTK file-selection highlight above
|
Theme presets, and make the bar itself actually re-theme (colors + opacity)
Presets (theme/presets.py): named snapshots of the whole palette, saved/loaded/
deleted from a new bookmark button on the theme widget. Stored outside the
repo in ~/.local/share/quickshell/theme-presets/ (JSON, per-machine data, same
precedent as the wallpaper history). A built-in Default entry can't be
overwritten or deleted.
Wiring that up exposed a real gap: the bar's own colors were hand-matched
hardcoded QML literals, not actually driven by theme/colors.toml, and opacity
wasn't themeable anywhere yet. Fixed both:
- colors.toml gains bar_color/pill_color/popup_color (paired with the existing
*_opacity floats) plus generic opacity support in render.py (--set now
accepts a 0-1 float, not just #rrggbb)
- Bar.qml now fetches the palette via render.py --dump and rebinds every
matching hardcoded hex literal (accent, foreground, color1/2/3/5/6/8/12,
the bar/pill/popup backgrounds, the logo tint and the bar's bottom border)
to it; kitty's background_opacity is template-driven instead of a second
hardcoded line fighting the themed one
- both the bar and the widget listen on their own Quickshell IPC target
(render.py/presets.py ping both after every change) so edits reload with no
restart, matching the "instant" promise the color editor already had
- the theme widget's color popup gained a slider + matching color swatch per
surface (Bar/Pills/Popups/Terminal) below the existing role list, and its
role labels now say what each color actually paints instead of "Color N"
(verified against the templates and Bar.qml's literals, not guessed) with
unused roles honestly marked as such
- the CPU pill's icon color is deliberately hardcoded again after this -
it coincidentally shared color12's hex value with the help icon/detail
text, so theming color12 was recoloring it too
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-09-28 22:45:09 +02:00
|
|
|
bar_opacity = 0.18
|
|
|
|
|
pill_opacity = 0.85
|
|
|
|
|
popup_opacity = 0.9
|
|
|
|
|
terminal_opacity = 0.85
|
2026-09-29 01:19:42 +02:00
|
|
|
gtk_selection_opacity = 0.5
|