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:
@@ -1076,13 +1076,12 @@ class PFTabsContainer(wx.Panel):
|
|||||||
|
|
||||||
selected = 0
|
selected = 0
|
||||||
|
|
||||||
if 'wxMac' in wx.PlatformInfo:
|
if 'wxMac' in wx.PlatformInfo and wx.VERSION < (3,0):
|
||||||
color = wx.Colour(0, 0, 0)
|
color = wx.Colour(0, 0, 0)
|
||||||
brush = wx.Brush(color)
|
brush = wx.Brush(color)
|
||||||
|
|
||||||
from Carbon.Appearance import kThemeBrushDialogBackgroundActive
|
from Carbon.Appearance import kThemeBrushDialogBackgroundActive
|
||||||
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
|
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
|
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
|
||||||
brush = wx.Brush(color)
|
brush = wx.Brush(color)
|
||||||
|
|||||||
Reference in New Issue
Block a user