From 7e40f9c9abc6f909aa9b611d382410009a536d5b Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 7 Feb 2023 22:28:56 +0530 Subject: [PATCH] chore: update colloid Signed-off-by: Pranav --- .gitignore | 3 ++- colloid | 2 +- scripts/recolor.py | 6 ++---- scripts/utils.py | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 25115b2f..67d22485 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,8 @@ pkgs/ *-temp.scss __pycache__ venv/ +.venv # Releases folder releases -chrome \ No newline at end of file +chrome diff --git a/colloid b/colloid index d8f0fbe2..f4dcfdac 160000 --- a/colloid +++ b/colloid @@ -1 +1 @@ -Subproject commit d8f0fbe20755128839aabaf3f4e034ef239d8892 +Subproject commit f4dcfdac62ded4bf1b0623503266e35020480e5e diff --git a/scripts/recolor.py b/scripts/recolor.py index b01d4e76..5d671feb 100644 --- a/scripts/recolor.py +++ b/scripts/recolor.py @@ -1,8 +1,7 @@ from catppuccin import Flavour from .utils import replacetext, replaceAllText -from .var import (def_accent_dark, def_accent_light, def_color_map, src_dir, - theme_name, work_dir) +from .var import (def_accent_dark, def_accent_light, def_color_map, src_dir, work_dir) def recolor_accent(flavor, accent: str = "blue"): @@ -71,10 +70,9 @@ def recolor(flavor, accent: str): Recolor the theme. currently hard code it frappe """ print("Recoloring to suit catppuccin theme") - replacetext(f"{work_dir}/install.sh", "Colloid", theme_name) - print("Recoloring accents") recolor_accent(flavor, accent) + print("Recoloring firefox") recolor_firefox(flavor, accent) print("MOD: Gtkrc.sh") diff --git a/scripts/utils.py b/scripts/utils.py index 032de688..2d92eb2e 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -25,7 +25,7 @@ def replacetext(filepath: str, search_text: str, replace_text: str) -> None: f.seek(0) f.write(file) f.truncate() - except Exception as e: + except Exception: print(f"Failed to recolor {filepath}")