diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-08-17 07:26:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-17 07:26:28 +0200 |
| commit | 2f3737e3cf190df40be149dee4e5de17d2cc76b8 (patch) | |
| tree | 2a2078fd3a60f082086ca4ee5f2ced6ed2784e71 /lib/gui/simulator/control_panel.py | |
| parent | 51c27ae75c9d90f37c31da138a06c9953ef7961e (diff) | |
Disable darkmode symbols for windows (#3144)
* disable darkmode symbols for windows
* Simulator slider also ignores dark mode for Windows
---------
Co-authored-by: CapellanCitizen <thecapellancitizen@gmail.com>
Diffstat (limited to 'lib/gui/simulator/control_panel.py')
| -rw-r--r-- | lib/gui/simulator/control_panel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gui/simulator/control_panel.py b/lib/gui/simulator/control_panel.py index a359fe64..e0efcd79 100644 --- a/lib/gui/simulator/control_panel.py +++ b/lib/gui/simulator/control_panel.py @@ -3,6 +3,7 @@ # Copyright (c) 2024 Authors # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. import os +from sys import platform import wx from wx.lib.intctrl import IntCtrl @@ -194,7 +195,7 @@ class ControlPanel(wx.Panel): return wx.SystemSettings().GetAppearance().IsDark() def load_icon(self, icon_name): - if self.is_dark_theme(): + if self.is_dark_theme() and platform != "win32": icon = wx.Image(os.path.join(self.icons_dir, f"{icon_name}_dark.png")) else: icon = wx.Image(os.path.join(self.icons_dir, f"{icon_name}.png")) |
