Fix background color of auxiliary windows on Windows

This commit is contained in:
DarkPhoenix
2019-08-20 18:29:29 +03:00
parent 847f4e343e
commit 4ca737281d
4 changed files with 2 additions and 9 deletions

View File

@@ -42,6 +42,8 @@ class AuxiliaryFrame(wx.Frame):
if name is not None:
kwargs['name'] = name
super().__init__(**kwargs)
if 'wxMSW' in wx.PlatformInfo:
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
@classmethod
def openOne(cls, parent):

View File

@@ -163,8 +163,6 @@ class CharacterEditor(AuxiliaryFrame):
# self.disableWin = wx.WindowDisabler(self)
sFit = Fit.getInstance()
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
mainSizer = wx.BoxSizer(wx.VERTICAL)
self.entityEditor = CharacterEntityEditor(self)

View File

@@ -80,9 +80,6 @@ class ErrorFrame(AuxiliaryFrame):
self.SetSizeHints(wx.DefaultSize, wx.DefaultSize)
if 'wxMSW' in wx.PlatformInfo:
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
mainSizer = wx.BoxSizer(wx.VERTICAL)
headSizer = wx.BoxSizer(wx.HORIZONTAL)

View File

@@ -27,8 +27,6 @@ class EveFittings(AuxiliaryFrame):
parent, id=wx.ID_ANY, title="Browse EVE Fittings", pos=wx.DefaultPosition,
size=wx.Size(750, 450), style=wx.RESIZE_BORDER)
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
self.mainFrame = parent
mainSizer = wx.BoxSizer(wx.VERTICAL)
@@ -209,7 +207,6 @@ class ExportToEve(AuxiliaryFrame):
size=wx.Size(400, 120) if "wxGTK" in wx.PlatformInfo else wx.Size(350, 100), style=wx.RESIZE_BORDER)
self.mainFrame = parent
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
mainSizer = wx.BoxSizer(wx.VERTICAL)
hSizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -315,7 +312,6 @@ class SsoCharacterMgmt(AuxiliaryFrame):
size=wx.Size(550, 250), style=wx.RESIZE_BORDER)
self.mainFrame = parent
mainSizer = wx.BoxSizer(wx.HORIZONTAL)
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
self.lcCharacters = wx.ListCtrl(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LC_REPORT)