From bc71c379754e896681d61f8e1daf8db21c24d6ca Mon Sep 17 00:00:00 2001 From: Thomas-Hopkins <45148234+Thomas-Hopkins@users.noreply.github.com> Date: Wed, 20 Apr 2022 22:19:11 -0500 Subject: [PATCH] move submodule theme to resources --- .gitmodules | 4 ++-- resources/sun-valley-theme | 1 + source/gui/app.py | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 160000 resources/sun-valley-theme diff --git a/.gitmodules b/.gitmodules index aeede70..ffba865 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "source/gui/Sun-Valley-ttk-theme"] - path = source/gui/Sun-Valley-ttk-theme +[submodule "resources\\sun-valley-theme"] + path = resources\\sun-valley-theme url = https://github.com/rdbende/Sun-Valley-ttk-theme.git diff --git a/resources/sun-valley-theme b/resources/sun-valley-theme new file mode 160000 index 0000000..caada25 --- /dev/null +++ b/resources/sun-valley-theme @@ -0,0 +1 @@ +Subproject commit caada2504f8cc20d60a44baacc6c195cb7a178b3 diff --git a/source/gui/app.py b/source/gui/app.py index 2fe97ac..4cdc269 100644 --- a/source/gui/app.py +++ b/source/gui/app.py @@ -1,4 +1,3 @@ -from cgitb import enable import tkinter as tk import os from functools import partial @@ -9,7 +8,7 @@ from gui.help import HelpContext from localization import localizer -THEME_FILE = f"{os.getcwd()}\gui\Sun-Valley-ttk-theme\sun-valley.tcl" +THEME_FILE = "../resources/sun-valley-theme/sun-valley.tcl" DEFAULT_THEME = "light"