1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@ pkgs/
|
|||||||
*-temp.scss
|
*-temp.scss
|
||||||
__pycache__
|
__pycache__
|
||||||
venv/
|
venv/
|
||||||
|
.venv
|
||||||
|
|
||||||
# Releases folder
|
# Releases folder
|
||||||
releases
|
releases
|
||||||
|
2
colloid
2
colloid
Submodule colloid updated: d8f0fbe207...f4dcfdac62
@@ -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")
|
||||||
|
@@ -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}")
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user