We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4e7488 commit 77b4bfeCopy full SHA for 77b4bfe
1 file changed
gui_utils.py
@@ -1,3 +1,4 @@
1
+import ctypes
2
from typing import Callable, Any
3
4
import PySimpleGUI as sg
@@ -48,6 +49,10 @@ def init_theme():
48
49
titlebar_font=("Tahoma", 12),
50
icon=app_abs_path("img/inversion_manager.png"),
51
)
52
+ # Tell Windows that this is dark theme app
53
+ # So.. use dark menus, like dark system tray etc.
54
+ # More info here: https://gist.github.com/rounk-ctrl/b04e5622e30e0d62956870d5c22b7017
55
+ ctypes.windll['uxtheme.dll'][135](1)
56
57
58
def get_title(title: str):
0 commit comments