diff options
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" |
