From 6cdcc4277c64e2bf5fad8c9fcd1eb87ed1aa2fb3 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 15:46:32 +0200 Subject: [PATCH] Use brush.MacSetTheme(kThemeBrushDialogBackgroundActive) for tabs bk (wxmac) --- gui/chromeTabs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 38e5fed0e..33d6db318 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -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()