]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch from Dj Gilcrease to fix gradients.
authorRobin Dunn <robin@alldunn.com>
Thu, 26 Oct 2006 17:54:23 +0000 (17:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 26 Oct 2006 17:54:23 +0000 (17:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/flatnotebook.py

index 8d23496088af2604c05f1368dca936acba815f01..a177d5e265aa92dd22aeaabaf2f3f632dca3cb22 100644 (file)
@@ -2538,8 +2538,8 @@ class FNBRendererVC8(FNBRenderer):
             pc._colorTo   = LightColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE), 0) 
             pc._colorFrom = LightColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE), 60)
         
-        col2 = (pc.HasFlag(FNB_BOTTOM) and [pc._pParent.GetGradientColourTo()] or [pc._pParent.GetGradientColourFrom()])[0]
-        col1 = (pc.HasFlag(FNB_BOTTOM) and [pc._pParent.GetGradientColourFrom()] or [pc._pParent.GetGradientColourTo()])[0]
+        col2 = pc._pParent.GetGradientColourTo()
+        col1 = pc._pParent.GetGradientColourFrom()
 
         # If colorful tabs style is set, override the tab color
         if pc.HasFlag(FNB_COLORFUL_TABS):