Fix background color of panels behind buttons

This commit is contained in:
DarkPhoenix
2019-10-04 01:25:38 +03:00
parent f384b32ed6
commit ec21f93d3c
4 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ class ItemParams(wx.Panel):
def __init__(self, parent, stuff, item, context=None):
# Had to manually set the size here, otherwise column widths couldn't be calculated correctly. See #1878
wx.Panel.__init__(self, parent, size=(1000, 1000))
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
mainSizer = wx.BoxSizer(wx.VERTICAL)
self.paramList = wx.lib.agw.hypertreelist.HyperTreeList(self, wx.ID_ANY, agwStyle=wx.TR_HIDE_ROOT | wx.TR_NO_LINES | wx.TR_FULL_ROW_HIGHLIGHT | wx.TR_HAS_BUTTONS)