From 0997e9207175be794312a5569c35d7dbf9d8c440 Mon Sep 17 00:00:00 2001 From: Pranav Date: Sun, 16 Apr 2023 16:24:40 +0530 Subject: [PATCH] chore: update index.theme theme name correctly fixes #90 Signed-off-by: Pranav --- scripts/create_theme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create_theme.py b/scripts/create_theme.py index e3c4032b..074dc430 100644 --- a/scripts/create_theme.py +++ b/scripts/create_theme.py @@ -6,7 +6,7 @@ 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.utils import replacetext, zip_multiple_folders from scripts.var import def_color_map, repo_dir, src_dir, theme_name, work_dir @@ -57,6 +57,7 @@ def create_theme(types: List[str], accents: List[str], dest: str, link: bool = F os.rename(dest + "/" + filename + '-xhdpi', new_filename + '-xhdpi') os.rename(dest + "/" + filename, new_filename) + replacetext(new_filename + '/index.theme', filename, new_filename.split("/")[-1]) print("Successfully renamed file") except Exception as e: print("Failed to rename the files due to:", e)