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

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

[ "$mode" == "light" ] && {
	accent="$color15"
	accent_text="$color0"
}
[ "$mode" == "dark" ] && {
	accent="$(mix_rgb $bg $color0 0.5)"
	accent_text="$fg"
}

export accent accent_text