From 42658a8167ba9a1ad1223cdf8311df0931da9dbf Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sun, 26 Apr 2020 23:27:28 +0300 Subject: [PATCH] Disable system theme for listctrls on windows --- gui/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/display.py b/gui/display.py index 6c67de144..590ff0798 100644 --- a/gui/display.py +++ b/gui/display.py @@ -29,8 +29,9 @@ class Display(wx.ListCtrl): DEFAULT_COLS = None def __init__(self, parent, size=wx.DefaultSize, style=0): - wx.ListCtrl.__init__(self, parent, size=size, style=wx.LC_REPORT | style) + # See https://github.com/wxWidgets/Phoenix/issues/1609 + self.EnableSystemTheme(False) self.imageList = CachingImageList(16, 16) self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL) self.activeColumns = []