From 23f014c32e3c5412b71db5421e8612553d47165e Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 9 Dec 2023 17:46:31 +0600 Subject: [PATCH] Do not use system theme for ListCtrl under windows --- gui/display.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/display.py b/gui/display.py index 6c67de1442..907060f245 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) + wx.ListCtrl.__init__(self) + self.EnableSystemTheme(False) + self.Create(parent, size=size, style=wx.LC_REPORT | style) self.imageList = CachingImageList(16, 16) self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL) self.activeColumns = []