From c2ca5dffe805b2cf1302378ddfe8e9fe05d50e80 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Tue, 4 Aug 2015 23:48:31 -0400 Subject: [PATCH] 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 --- gui/chromeTabs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index e6b248278..8e4c07aaa 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -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)