Revert "Use default attribs (bg color) to draw tabs bk"

No luck with default visual attribs on GTK
This reverts commit f6af411942.
This commit is contained in:
HomeWorld
2010-12-03 10:12:55 +02:00
parent f6af411942
commit ead56706fc

View File

@@ -980,10 +980,14 @@ class PFTabsContainer(wx.Panel):
mdc.SelectObject(canvas)
selected = 0
vattr = self.GetDefaultAttributes()
color = vattr.colBg
# TODO
# This is a hack because on mac os the system colour constants are somehow wrong,
# additionally somehow the colors get changed when drawing (all RGB values are off by 4)
# TODO
if 'wxMac' in wx.PlatformInfo:
color = wx.Colour(232, 232, 232)
else:
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
mdc.SetBackground (wx.Brush(color))
# mdc.SetBackground (wx.Brush((66,113,202)))