diff --git a/src/main_win.py b/src/main_win.py index 98f8462..e34e677 100644 --- a/src/main_win.py +++ b/src/main_win.py @@ -5,6 +5,7 @@ from theme_ctk_auto import generate_theme_json import tempfile import os +import threading def get_temp_folder(): # Get the current user's temporary directory @@ -24,9 +25,17 @@ def main_win(): col_background = None col_theme = None is_dark = None + + def theme_thread(): + nonlocal col_background, col_theme, is_dark + col_background, col_theme, is_dark = get_theme_win() + generate_theme_json(dow_path, col_theme, is_dark) + + theme_thread = threading.Thread(target=theme_thread) + theme_thread.start() get_deps_win(dow_path) - col_background, col_theme, is_dark = get_theme_win() - generate_theme_json(dow_path, col_theme, is_dark) + + theme_thread.join() run_installer(dow_path, is_dark) \ No newline at end of file