Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
chore: update index.theme theme name correctly
Browse files Browse the repository at this point in the history
fixes #90

Signed-off-by: Pranav <npv12@iitbbs.ac.in>
  • Loading branch information
npv12 committed Apr 16, 2023
1 parent d11e646 commit 0997e92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/create_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0997e92

Please sign in to comment.