chore: update colloid

Signed-off-by: Pranav <npv12@iitbbs.ac.in>
This commit is contained in:
Pranav
2023-02-07 22:28:56 +05:30
parent 382e960588
commit 41d54ae759
3 changed files with 4 additions and 6 deletions

Submodule colloid updated: d8f0fbe207...eceba96893

View File

@@ -1,8 +1,7 @@
from catppuccin import Flavour from catppuccin import Flavour
from .utils import replacetext, replaceAllText from .utils import replacetext, replaceAllText
from .var import (def_accent_dark, def_accent_light, def_color_map, src_dir, from .var import (def_accent_dark, def_accent_light, def_color_map, src_dir, work_dir)
theme_name, work_dir)
def recolor_accent(flavor, accent: str = "blue"): def recolor_accent(flavor, accent: str = "blue"):
@@ -71,10 +70,9 @@ def recolor(flavor, accent: str):
Recolor the theme. currently hard code it frappe Recolor the theme. currently hard code it frappe
""" """
print("Recoloring to suit catppuccin theme") print("Recoloring to suit catppuccin theme")
replacetext(f"{work_dir}/install.sh", "Colloid", theme_name)
print("Recoloring accents") print("Recoloring accents")
recolor_accent(flavor, accent) recolor_accent(flavor, accent)
print("Recoloring firefox")
recolor_firefox(flavor, accent) recolor_firefox(flavor, accent)
print("MOD: Gtkrc.sh") print("MOD: Gtkrc.sh")

View File

@@ -25,7 +25,7 @@ def replacetext(filepath: str, search_text: str, replace_text: str) -> None:
f.seek(0) f.seek(0)
f.write(file) f.write(file)
f.truncate() f.truncate()
except Exception as e: except Exception:
print(f"Failed to recolor {filepath}") print(f"Failed to recolor {filepath}")