Skip to content

Commit

Permalink
Do not use system theme for ListCtrl under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Dec 9, 2023
1 parent 0ac6a14 commit 23f014c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 23f014c

Please sign in to comment.