Disable system theme for listctrls on windows

This commit is contained in:
DarkPhoenix
2020-04-26 23:27:28 +03:00
parent 6dbf38dbb4
commit 42658a8167

View File

@@ -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 = []