File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 55from logbook import Logger
66pyfalog = Logger (__name__ )
77from service .settings import LocaleSettings , ThemeSettings
8+ from gui .utils .dark import enableWindowsDarkModwSupport
89
910
1011class 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments