aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/switch.d/chromium
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/mode/switch.d/chromium')
-rwxr-xr-x.local/share/mode/switch.d/chromium6
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/share/mode/switch.d/chromium b/.local/share/mode/switch.d/chromium
index fb701a5..5ed07fc 100755
--- a/.local/share/mode/switch.d/chromium
+++ b/.local/share/mode/switch.d/chromium
@@ -1,11 +1,13 @@
#!/bin/sh
+[ $no_cfg -eq 1 ] && return
+
mkcd "$XDG_CACHE_HOME/mode/chromium"
rm -f 'Cached Theme.pak'
magick -size 100x100 "xc:$bg" 'bg.png'
-bg_alt=$(mix_rgb $color7 $bg 0.20)
-fg_alt=$(mix_rgb $color15 $fg 0.60)
+bg_alt=$(mix_rgb $bg $color0 0.65)
+fg_alt=$(mix_rgb $fg $color15 0.35)
bg="$(hex_to_rgb_array "$bg")"
fg="$(hex_to_rgb_array "$fg")"
bg_alt="$(hex_to_rgb_array "$bg_alt")"