Fixed a visual bug in mainFrame (CharSelection margins were set in the wrong place) - this caused artefacts on theme change
This commit is contained in:
@@ -32,15 +32,15 @@ class CharacterSelection(wx.Panel):
|
||||
mainSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
self.SetSizer(mainSizer)
|
||||
|
||||
mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Character: "), 0, wx.CENTER)
|
||||
mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Character: "), 0, wx.CENTER | wx.TOP | wx.RIGHT | wx.LEFT, 3)
|
||||
|
||||
self.charChoice = wx.Choice(self)
|
||||
mainSizer.Add(self.charChoice, 1, wx.ALIGN_CENTER_VERTICAL)
|
||||
mainSizer.Add(self.charChoice, 1, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.RIGHT | wx.LEFT, 3)
|
||||
|
||||
self.refreshCharacterList()
|
||||
|
||||
self.skillReqsStaticBitmap = wx.StaticBitmap(self)
|
||||
mainSizer.Add(self.skillReqsStaticBitmap, 0, wx.ALIGN_CENTER_VERTICAL)
|
||||
mainSizer.Add(self.skillReqsStaticBitmap, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.RIGHT | wx.LEFT, 3)
|
||||
|
||||
self.cleanSkills = bitmapLoader.getBitmap("skill_big", "icons")
|
||||
self.redSkills = bitmapLoader.getBitmap("skillRed_big", "icons")
|
||||
|
||||
@@ -112,7 +112,7 @@ class MainFrame(wx.Frame):
|
||||
cstatsSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
self.charSelection = CharacterSelection(self)
|
||||
cstatsSizer.Add(self.charSelection, 0, wx.EXPAND | wx.TOP | wx.RIGHT | wx.LEFT , 3)
|
||||
cstatsSizer.Add(self.charSelection, 0, wx.EXPAND)
|
||||
|
||||
self.statsPane = StatsPane(self)
|
||||
cstatsSizer.Add(self.statsPane, 0, wx.EXPAND)
|
||||
|
||||
Reference in New Issue
Block a user