aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/udt-palette11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/udt-palette b/bin/udt-palette
index 04451f7..f603899 100755
--- a/bin/udt-palette
+++ b/bin/udt-palette
@@ -145,6 +145,12 @@ ROFI_NAMES = [
("overlay0", "fg_faint"), ("overlay1", "mid_low"), ("overlay2", "mid_high"),
("red", "critical"), ("green", "success"), ("yellow", "warning"),
("teal", "info"), ("blue", "border_active"), ("lavender", "accent"),
+ # Not referenced by any rofi theme. Here because palette.rasi is also
+ # what udt-accent forwards to quickshell, whose keybind reminder draws
+ # the macropad's orange, purple and blue keycaps in them. "blue" above is
+ # the active border, which is magenta under candy-night; termblue is the
+ # terminal's blue, a real blue in every scheme but Dracula, which has none.
+ ("peach", "peach"), ("mauve", "highlight"), ("termblue", "blue"),
]
@@ -192,11 +198,10 @@ def gen_waybar(res, scheme, palette):
palette_rows = "\n".join(f"@define-color {k:<12}{v};"
for k, v in sorted(palette.items()))
- # The names the hand-edited stylesheets reference. ROFI_NAMES already maps
- # most of them; mauve is the one waybar uses and rofi does not.
+ # The names the hand-edited stylesheets reference, all in ROFI_NAMES.
compat_rows = "\n".join(
f"@define-color {name:<12}{rgba(res[role])};"
- for name, role in [*ROFI_NAMES, ("mauve", "highlight")])
+ for name, role in ROFI_NAMES)
def emit(role, css_name=None):
c = res[role]