From 76d1992a551886c397cdecc48bbc311bbd844ff8 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 13 Feb 2025 16:50:59 +0545 Subject: [PATCH] fix --- config/material-colors/generate.py | 29 ------------------- .../material-colors/templates/alacritty.toml | 10 ------- .../templates/svg/brightness-onPrimary.svg | 5 ---- .../templates/svg/dark-onPrimary.svg | 5 ---- 4 files changed, 49 deletions(-) delete mode 100644 config/material-colors/templates/alacritty.toml delete mode 100644 config/material-colors/templates/svg/brightness-onPrimary.svg delete mode 100644 config/material-colors/templates/svg/dark-onPrimary.svg diff --git a/config/material-colors/generate.py b/config/material-colors/generate.py index 5bd382b..5f43db1 100644 --- a/config/material-colors/generate.py +++ b/config/material-colors/generate.py @@ -262,28 +262,6 @@ def generate_templates( with open(new_path, "w") as f: f.write(template) - for file in ready_templates: - _template = "" - for color in vars(MaterialDynamicColors).keys(): - color_name = getattr(MaterialDynamicColors, color) - if hasattr(color_name, "get_hct"): - rgba = color_name.get_hct(scheme).to_rgba() - hex_color = rgb_to_hex(rgba) - rgb_color = rgba_to_rgb(rgba) - new_line = ready_templates[file].format( - name=color, hex=hex_color, rgb=rgb_color - ) - _template += new_line - if color in additional: - new_line = ready_templates[file].format( - name=additional[color], hex=hex_color, rgb=rgb_color - ) - _template += new_line - - new_path = join(output_folder, os.path.basename(file)) - with open(new_path, "w") as f: - f.write(_template) - def run_hooks(folder: str): if not os.path.exists(folder): @@ -365,13 +343,6 @@ def main( generate_templates( f"{script_dir}/templates", cache_path, scheme, color_scheme, image_path ) - generate_templates( - f"{script_dir}/templates/svg", - join(cache_path, "svg/"), - scheme, - color_scheme, - image_path, - ) if is_dark: subprocess.run(["sh", join(script_dir, "gtk-material.sh")]) diff --git a/config/material-colors/templates/alacritty.toml b/config/material-colors/templates/alacritty.toml deleted file mode 100644 index f62d701..0000000 --- a/config/material-colors/templates/alacritty.toml +++ /dev/null @@ -1,10 +0,0 @@ -[general] -import = [ - "/alacritty-.toml" -] -[font] -normal = { family = "MesloLGS NF", style = "Regular" } -bold = { family = "MesloLGS NF", style = "Bold" } -italic = { family = "MesloLGS NF", style = "Italic" } -bold_italic = { family = "MesloLGS NF", style = "Bold Italic" } -size = 12.0 diff --git a/config/material-colors/templates/svg/brightness-onPrimary.svg b/config/material-colors/templates/svg/brightness-onPrimary.svg deleted file mode 100644 index faa8d91..0000000 --- a/config/material-colors/templates/svg/brightness-onPrimary.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - \ No newline at end of file diff --git a/config/material-colors/templates/svg/dark-onPrimary.svg b/config/material-colors/templates/svg/dark-onPrimary.svg deleted file mode 100644 index 08a4400..0000000 --- a/config/material-colors/templates/svg/dark-onPrimary.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - \ No newline at end of file