aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/plug.d/50_accent
blob: ceb3209cacd0f027900aa54cf711d96651657ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# create accent color differently for dark/light mode

# do not generate accent color if already explicitly defined by theme
[ -n "$accent" ] && return

if [ "$mode" = "light" ] ; then
	themevar accent "$color15"
	themevar accent_text "$color0"
fi
if [ "$mode" = "dark" ] ; then
	themevar accent "$(mix_rgb $bg $color0 0.5)"
	themevar accent_text "$fg"
fi