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 | |
| 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>
| -rw-r--r-- | lib/gui/simulator/control_panel.py | 3 | ||||
| -rw-r--r-- | lib/gui/simulator/simulator_slider.py | 2 |
2 files changed, 3 insertions, 2 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")) diff --git a/lib/gui/simulator/simulator_slider.py b/lib/gui/simulator/simulator_slider.py index 9d0b2537..fe86e1e6 100644 --- a/lib/gui/simulator/simulator_slider.py +++ b/lib/gui/simulator/simulator_slider.py @@ -129,7 +129,7 @@ class SimulatorSlider(wx.Panel): gc.DrawRectangle(start_x, height * self.color_bar_start, end_x - start_x, height * self.color_bar_thickness) - if self.control_panel.is_dark_theme(): + if self.is_dark_theme() and sys.platform != "win32": gc.SetPen(wx.Pen(wx.Colour(0, 0, 0), 1)) gc.SetBrush(wx.Brush(wx.Colour(255, 255, 255))) else: |
