diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-07 10:33:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 10:33:45 +0200 |
| commit | ee2506147e5cb08f212663a1cad9c09df0ee6867 (patch) | |
| tree | 0da3af38e6c416b4a131530133e4139677d517db /lib/extensions/params.py | |
| parent | 1592e011b943f9c0abeb71901ca69eba722ab1bd (diff) | |
Improve simulator dark theme (#2969)
* add simulator dark theme buttons
* refresh simulator drawing panel on resize (important for windows)
Diffstat (limited to 'lib/extensions/params.py')
| -rw-r--r-- | lib/extensions/params.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py index 194f0cfd..ef4dc616 100644 --- a/lib/extensions/params.py +++ b/lib/extensions/params.py @@ -86,8 +86,11 @@ class ParamsTab(ScrolledPanel): self.pencil_icon = wx.Image(os.path.join(get_resource_dir( "icons"), "pencil_20x20.png")).ConvertToBitmap() - self.randomize_icon = wx.Image(os.path.join(get_resource_dir( - "icons"), "randomize_20x20.png")).ConvertToBitmap() + randomize_icon = 'randomize_20x20.png' + if wx.SystemSettings().GetAppearance().IsDark(): + randomize_icon = 'randomize_20x20_dark.png' + self.randomize_icon = wx.Image( + os.path.join(get_resource_dir("icons"), randomize_icon)).ConvertToBitmap() self.__set_properties() self.__do_layout() |
