From ead56706fc847cc42fe3c9c99483f711ffef5ffb Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 10:12:55 +0200 Subject: [PATCH] Revert "Use default attribs (bg color) to draw tabs bk" No luck with default visual attribs on GTK This reverts commit f6af41194211bbea199c379853923b44a252d785. --- gui/chromeTabs.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 55f9d2973..1e04d1e37 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -980,10 +980,14 @@ class PFTabsContainer(wx.Panel): mdc.SelectObject(canvas) selected = 0 - - vattr = self.GetDefaultAttributes() - color = vattr.colBg - + # 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)))