Fix incorrect bitmap rendering of OSX-wx3. MacSetTheme was removed, but it's still required for 2.8 otherwise we get an off-color background

This commit is contained in:
blitzmann
2015-08-04 23:48:31 -04:00
parent e5e7311748
commit c2ca5dffe8

View File

@@ -1076,13 +1076,12 @@ class PFTabsContainer(wx.Panel):
selected = 0
if 'wxMac' in wx.PlatformInfo:
if 'wxMac' in wx.PlatformInfo and wx.VERSION < (3,0):
color = wx.Colour(0, 0, 0)
brush = wx.Brush(color)
from Carbon.Appearance import kThemeBrushDialogBackgroundActive
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
else:
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
brush = wx.Brush(color)