feat: introduce assets for xfwm4.

* patches assets were taken from ddf996b0a4

Signed-off-by: Pranav <npv12@iitbbs.ac.in>
This commit is contained in:
Pranav
2023-02-22 20:22:10 +05:30
parent 7e40f9c9ab
commit 68167565f7
19 changed files with 23184 additions and 2 deletions

View File

@@ -4,13 +4,14 @@ import subprocess
from typing import List
from scripts.ctp_colors import ctp_colors
from scripts.patches import recreate_xfwm4_assets
from scripts.recolor import recolor
from scripts.utils import zip_multiple_folders
from scripts.var import def_color_map, repo_dir, src_dir, theme_name, work_dir
def create_theme(types: List[str], accents: List[str], dest: str, link: bool = False,
name: str = theme_name, size: str = "standard", tweaks=[], zip = False) -> None:
name: str = theme_name, size: str = "standard", tweaks=[], zip = False, recreate_assets = True) -> None:
try:
os.makedirs(dest) # Create our destination directory
@@ -21,6 +22,8 @@ def create_theme(types: List[str], accents: List[str], dest: str, link: bool = F
for accent in accents:
# Recolor colloid wrt our selection like mocha. latte
recolor(ctp_colors[type], accent)
if recreate_assets:
recreate_xfwm4_assets(type)
theme_style: str = "light" if type == "latte" else "dark"
install_cmd: str = f"./install.sh -c {theme_style} -s {size} -n {name} -d {dest} -t {def_color_map[accent]}"
if tweaks: