aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-07-03 18:37:53 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-07-03 18:37:53 +0200
commit31b2d83b8703971452a5200abf02a1353bef2a81 (patch)
treebec103a73d283eddd47824e9a3911ff4f2a05ee2 /.local/share/mode
parent38a2ee83e398bfe63328b5ac38fca69f032cde0d (diff)
work updateHEADmaster
Diffstat (limited to '.local/share/mode')
-rwxr-xr-x.local/share/mode/switch.d/chromium8
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,