diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-23 12:28:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-23 12:30:14 +0100 |
commit | c7faac3480d2c52db7e952f638f7f162fb98eeec (patch) | |
tree | 32d112a9532bcf8391a47384b91f6ef4c729e88a /.local/share/mode/plug.d/50_accent | |
parent | 95db61081c2555c069c3287fd30d9c8a1757acb1 (diff) |
`mode` update
Diffstat (limited to '.local/share/mode/plug.d/50_accent')
-rw-r--r-- | .local/share/mode/plug.d/50_accent | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/.local/share/mode/plug.d/50_accent b/.local/share/mode/plug.d/50_accent index 2a8a113..ceb3209 100644 --- a/.local/share/mode/plug.d/50_accent +++ b/.local/share/mode/plug.d/50_accent @@ -4,13 +4,12 @@ # 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" -} +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 -export accent accent_text |