aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/plug.d/50_accent
blob: 2a8a1130b562b7d29d082d0ea54e1047ba5bd84f (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