From f85ec726b723db2ac5031c3c39bd3b250e85e63f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 13:02:54 +0200 Subject: 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 --- install.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index c2ff9d8..a40976b 100755 --- a/install.sh +++ b/install.sh @@ -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" -- cgit v1.2.3