Use brush.MacSetTheme(kThemeBrushDialogBackgroundActive) for tabs bk (wxmac)

This commit is contained in:
HomeWorld
2010-12-03 15:46:32 +02:00
parent 69a8b85975
commit 6cdcc4277c

View File

@@ -986,10 +986,13 @@ class PFTabsContainer(wx.Panel):
# 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)
color = wx.Colour(0, 0, 0)
brush = wx.Brush(color)
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
else:
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
mdc.SetBackground (wx.Brush(color))
brush = wx.Brush(color)
mdc.SetBackground (brush)
# mdc.SetBackground (wx.Brush((66,113,202)))
mdc.Clear()