From c7faac3480d2c52db7e952f638f7f162fb98eeec Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 23 Jan 2025 12:28:38 +0100 Subject: `mode` update --- .local/share/mode/plug.d/50_accent | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to '.local/share/mode/plug.d/50_accent') 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 -- cgit v1.2.3