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 7e40f9c9ab
4 changed files with 6 additions and 7 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@ pkgs/
*-temp.scss
__pycache__
venv/
.venv
# Releases folder
releases

Submodule colloid updated: d8f0fbe207...f4dcfdac62

View File

@@ -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")

View File

@@ -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}")