Skip to content

Commit d5e7227

Browse files
committed
refac: fix inline import and minor rename
1 parent c333f01 commit d5e7227

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

gui/app.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from logbook import Logger
66
pyfalog = Logger(__name__)
77
from service.settings import LocaleSettings, ThemeSettings
8+
from gui.utils.dark import enableWindowsDarkModwSupport
89

910

1011
class PyfaApp(wx.App):
@@ -18,10 +19,7 @@ def OnInit(self):
1819

1920
# Initialize theme settings early so isDark() works correctly
2021
ThemeSettings.getInstance()
21-
22-
# Enable Windows dark mode for menus and system UI if applicable
23-
from gui.utils.dark import setWindowsDarkMode
24-
setWindowsDarkMode()
22+
enableWindowsDarkModwSupport()
2523

2624
#------------
2725

gui/utils/dark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def isDark():
8080
return usePyfaDark()
8181

8282

83-
def setWindowsDarkMode():
83+
def enableWindowsDarkModwSupport():
8484
"""
8585
Enable dark mode for the entire application on Windows 10/11.
8686
This affects the menu bar, context menus, and other system UI elements.

0 commit comments

Comments
 (0)