diff options
Diffstat (limited to '.local/share/mode/switch.d/chromium')
| -rwxr-xr-x | .local/share/mode/switch.d/chromium | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.local/share/mode/switch.d/chromium b/.local/share/mode/switch.d/chromium index 5ed07fc..0ea2caa 100755 --- a/.local/share/mode/switch.d/chromium +++ b/.local/share/mode/switch.d/chromium @@ -8,10 +8,12 @@ rm -f 'Cached Theme.pak' magick -size 100x100 "xc:$bg" 'bg.png' 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")" fg_alt="$(hex_to_rgb_array "$fg_alt")" + cat << EOF > 'manifest.json' { "description": "colorscheme generated by mode", @@ -20,11 +22,11 @@ cat << EOF > 'manifest.json' "theme": { "images": { "theme_frame": "bg.png" }, "colors": { - "frame": $bg, + "frame": $bg_alt, "button_background": $fg, "ntp_background": $bg, - "ntp_text": $bg, - "toolbar": $bg_alt, + "ntp_text": $bg_alt, + "toolbar": $bg, "toolbar_button_icon": $fg, "tab_background_text": $fg_alt, "tab_background_text_inactive": $fg_alt, |