Change how colors are defined and used

This commit is contained in:
DarkPhoenix
2024-02-21 00:28:21 +06:00
parent f89a8a9f87
commit 465e43ed45
4 changed files with 34 additions and 28 deletions

10
gui/utils/dark.py Normal file
View File

@@ -0,0 +1,10 @@
import wx
def isDark():
try:
return wx.SystemSettings.GetAppearance().IsDark()
except (KeyboardInterrupt, SystemExit):
raise
except:
return False