From b7d959ed62cfd0ea93c4e867c77dcb1868b8bf66 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 14:49:50 +0200 Subject: [PATCH] Use the same font color for both active/inactive tabs text --- gui/chromeTabs.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 57e65bdc9..dfb005c85 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -485,19 +485,14 @@ class PFTabRenderer: else: break if count > 0: -# text = "%s%s" % (text[:count],".." if len(text)>count else "") text = "%s" % text[:count] tx,ty = mdc.GetTextExtent(text) - if self.selected: - mdc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT)) - else: - color = self.CalculateColor(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT), 0x20) - mdc.SetTextForeground(color) + + mdc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT)) mdc.DrawText(text, textStart + self.padding , height / 2 - ty / 2) -# mdc.DestroyClippingRegion() if self.closeButton: if self.closeBtnHovering: mdc.DrawBitmap(self.ctabCloseBmp,self.contentWidth+self.leftWidth - self.ctabCloseBmp.GetWidth()/2,(height - self.ctabCloseBmp.GetHeight())/2)