diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-15 13:02:54 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-15 13:02:54 +0200 |
| commit | f85ec726b723db2ac5031c3c39bd3b250e85e63f (patch) | |
| tree | 35445f4ec2baca276de35920dcbedeb05ec809d6 /install.sh | |
| parent | 1c9fc8369f639ec6a8d061c3ff0b9b17f9d25118 (diff) | |
| download | waybar-theme-udt-f85ec726b723db2ac5031c3c39bd3b250e85e63f.tar.gz waybar-theme-udt-f85ec726b723db2ac5031c3c39bd3b250e85e63f.zip | |
fix: make the launcher mark visible on its own pill
The mark was tinted with the accent and then drawn on the accent pill, so it
rendered lavender on lavender and the pill looked empty. It takes the bar's
background colour now, which is the contrast the pill was always missing.
The pill also sized to its icon rather than to text, which made it a circle
among capsules; its horizontal padding now matches its neighbours' shape.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -101,11 +101,13 @@ done sed -e "s|@ICONS@|$icons|g" -e "s|@CONFIG@|$target|g" \ "$repo/styles/modules.css" > "$target/styles/modules.css" -# The flags ship as they are; the Slackware mark is monochrome, so it takes -# the accent. Read from the generated palette rather than restated here. -accent="$(sed -n 's/^@define-color accent *\(.*\);$/\1/p' "$target/styles/theme.css" | head -1)" -accent="${accent:-#b7bdf8}" -sed "s|@ACCENT@|$accent|" "$repo/icons/slackware.svg" > "$target/slackware.svg" +# The flags ship as they are; the Slackware mark is monochrome, so it is +# tinted here. It sits ON the accent pill, so it takes the bar's background +# colour rather than the accent: filled with the accent it would be invisible +# against its own pill, which is exactly what the first version did. +mark="$(sed -n 's/^@define-color main-bg *\(.*\);$/\1/p' "$target/styles/theme.css" | head -1)" +mark="${mark:-#24273a}" +sed "s|@ACCENT@|$mark|" "$repo/icons/slackware.svg" > "$target/slackware.svg" install -Dm644 "$repo/icons/flag-it.svg" "$target/flag-it.svg" install -Dm644 "$repo/icons/flag-gb.svg" "$target/flag-gb.svg" |
