Disable darkmode symbols for windows ()

* disable darkmode symbols for windows

* Simulator slider also ignores dark mode for Windows

---------

Co-authored-by: CapellanCitizen <thecapellancitizen@gmail.com>
pull/3147/head
Kaalleen 2024-08-17 07:26:28 +02:00 zatwierdzone przez GitHub
rodzic 51c27ae75c
commit 2f3737e3cf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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"))

Wyświetl plik

@ -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: