From 41d54ae759aea317562cc23eab7745da46e18c3d 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 --- colloid | 2 +- scripts/recolor.py | 6 ++---- scripts/utils.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/colloid b/colloid index d8f0fbe2..eceba968 160000 --- a/colloid +++ b/colloid @@ -1 +1 @@ -Subproject commit d8f0fbe20755128839aabaf3f4e034ef239d8892 +Subproject commit eceba96893973146c3092a2db417c0904b91a7a5 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}")