From ff35e213fb7d86d81bcf149e6c037dee7be18144 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 15:10:24 +0200 Subject: [PATCH] Do not use alpha channel for inactive tabs in pfnotebook --- gui/chromeTabs.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index dfb005c85..2dcf2c1af 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -997,8 +997,7 @@ class PFTabsContainer(wx.Panel): selected = None selpos = 0 selWidth = selHeight = 0 - selColor = self.CalculateColor(wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW), 0x66) - startColor = self.leftColor = self.CalculateColor(wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW), 0x50) + tabsWidth = 0 @@ -1015,17 +1014,13 @@ class PFTabsContainer(wx.Panel): width = tab.tabWidth - 6 posx, posy = tab.GetPosition() if not tab.IsSelected(): -# if not 'wxMac' in wx.PlatformInfo: mdc.DrawBitmap(self.efxBmp, posx, posy, True ) - img = tab.Render().ConvertToImage() - img = img.AdjustChannels(1, 1, 1, 0.8) - bmp = wx.BitmapFromImage(img) + bmp = tab.Render() mdc.DrawBitmap(bmp, posx, posy, True) else: selected = tab if selected: posx, posy = selected.GetPosition() -# if not 'wxMac' in wx.PlatformInfo: mdc.DrawBitmap(self.efxBmp, posx, posy, True) bmp = selected.Render() if self.dragging: @@ -1043,8 +1038,6 @@ class PFTabsContainer(wx.Panel): offset = 0 r1 = wx.Rect(0,self.containerHeight -1,selpos,1) r2 = wx.Rect(0, self.containerHeight -1 , self.width,1) -# mdc.GradientFillLinear(r1, startColor, selColor, wx.EAST) -# mdc.GradientFillLinear(r2, selColor, startColor, wx.EAST) def OnErase(self, event): pass