From 8a1f11a408893dbeaf4dcfffd93d954f3aaaba54 Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 18 Jan 2023 07:58:27 +0530 Subject: [PATCH] chore: hardcode dark colors with mocha for latte themes * fixes #67 --- scripts/recolor.py | 51 +++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/scripts/recolor.py b/scripts/recolor.py index 623c3c20..625522a0 100644 --- a/scripts/recolor.py +++ b/scripts/recolor.py @@ -33,26 +33,45 @@ def recolor(flavor, accent: str): print("MOD: Gtkrc.sh") replacetext(f"{work_dir}/gtkrc.sh", "background_light='#FFFFFF'", f"background_light='#{Flavour.latte().base.hex}'") # use latte_base for background_light - replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#0F0F0F'", - f"background_dark='#{flavor.base.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#121212'", - f"background_darker='#{flavor.mantle.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", - "background_alt='#212121'", f"background_alt='#{flavor.crust.hex}'") replacetext(f"{work_dir}/gtkrc.sh", "titlebar_light='#F2F2F2'", f"titlebar_light='#{Flavour.latte().crust.hex}'") # use latte_crust for titlebar_light - replacetext(f"{work_dir}/gtkrc.sh", "titlebar_dark='#030303'", - f"titlebar_dark='#{flavor.crust.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#2C2C2C'", - f"background_dark='#{flavor.base.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#3C3C3C'", - f"background_darker='#{flavor.mantle.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", - "background_alt='#464646'", f"background_alt='#{flavor.crust.hex}'") replacetext(f"{work_dir}/gtkrc.sh", "titlebar_light='#F2F2F2'", f"titlebar_light='#{Flavour.latte().crust.hex}'") - replacetext(f"{work_dir}/gtkrc.sh", - "titlebar_dark='#242424'", f"titlebar_dark='#{flavor.crust.hex}'") + + if flavor == Flavour.latte(): + replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#0F0F0F'", + f"background_dark='#{Flavour.mocha().base.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#121212'", + f"background_darker='#{Flavour.mocha().mantle.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "background_alt='#212121'", f"background_alt='#{Flavour.mocha().crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "titlebar_dark='#030303'", + f"titlebar_dark='#{Flavour.mocha().crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#2C2C2C'", + f"background_dark='#{Flavour.mocha().base.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#3C3C3C'", + f"background_darker='#{Flavour.mocha().mantle.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "background_alt='#464646'", f"background_alt='#{Flavour.mocha().crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "titlebar_dark='#242424'", f"titlebar_dark='#{Flavour.mocha().crust.hex}'") + else: + replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#0F0F0F'", + f"background_dark='#{flavor.base.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#121212'", + f"background_darker='#{flavor.mantle.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "background_alt='#212121'", f"background_alt='#{flavor.crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "titlebar_dark='#030303'", + f"titlebar_dark='#{flavor.crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_dark='#2C2C2C'", + f"background_dark='#{flavor.base.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", "background_darker='#3C3C3C'", + f"background_darker='#{flavor.mantle.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "background_alt='#464646'", f"background_alt='#{flavor.crust.hex}'") + replacetext(f"{work_dir}/gtkrc.sh", + "titlebar_dark='#242424'", f"titlebar_dark='#{flavor.crust.hex}'") print("Mod SASS Color_Palette_default")