Fixed minor display issues on Mac OS X including a silly hack

This commit is contained in:
Niklas Bölter
2010-11-20 21:49:42 +01:00
parent 19f537b12f
commit 36fcedde19
3 changed files with 14 additions and 7 deletions

View File

@@ -989,7 +989,14 @@ class PFTabsContainer(wx.Panel):
mdc.SelectObject(canvas)
selected = 0
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
# 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)))