From df5f581a6f8ef3e4374e348aaeef4f1028b46585 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 18 Nov 2010 14:57:59 +0200 Subject: [PATCH 1/3] Bad bad color --- gui/chromeTabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 9c8202565..093c5fdd4 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -957,7 +957,7 @@ class PFTabsContainer(wx.Panel): mdc.SelectObject(canvas) selected = 0 - color = self.GetBackgroundColour() + color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE) mdc.SetBackground (wx.Brush(color)) # mdc.SetBackground (wx.Brush((66,113,202))) From 35d4c4e10a5b197cdc99ef0da9692e61aa03ccc7 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 18 Nov 2010 15:18:28 +0200 Subject: [PATCH 2/3] Border fix --- gui/chromeTabs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 093c5fdd4..2048f309c 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -122,8 +122,8 @@ class PFNotebook(wx.Panel): bx, by = self.GetBorders() ww,wh = wsize - ww -= bx * 6 if 'wxMSW' in wx.PlatformInfo else 4 - wh -= by * 6 if 'wxMSW' in wx.PlatformInfo else 4 + ww -= bx * 4 if 'wxGTK' in wx.PlatformInfo else 6 + wh -= by * 4 if 'wxGTK' in wx.PlatformInfo else 6 page.SetSize((ww,wh)) page.SetPosition((bx,by)) @@ -197,8 +197,8 @@ class PFNotebook(wx.Panel): size = self.pageContainer.GetSize() bx, by = self.GetBorders() ww,wh = size - ww -= bx * 6 if 'wxMSW' in wx.PlatformInfo else 4 - wh -= by * 6 if 'wxMSW' in wx.PlatformInfo else 4 + ww -= bx * 4 if 'wxGTK' in wx.PlatformInfo else 6 + wh -= by * 4 if 'wxGTK' in wx.PlatformInfo else 6 self.activePage.SetSize((ww,wh)) self.activePage.SetPosition((bx,by)) self.activePage.Show() @@ -240,8 +240,8 @@ class PFNotebook(wx.Panel): size = self.pageContainer.GetSize() bx,by = self.GetBorders() ww,wh = size - ww -= bx * 6 if 'wxMSW' in wx.PlatformInfo else 4 - wh -= by * 6 if 'wxMSW' in wx.PlatformInfo else 4 + ww -= bx * 4 if 'wxGTK' in wx.PlatformInfo else 6 + wh -= by * 4 if 'wxGTK' in wx.PlatformInfo else 6 if self.activePage: self.activePage.SetSize((ww,wh)) From c13261cd150a33265fc97077719adb0de2043aed Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 18 Nov 2010 15:20:07 +0200 Subject: [PATCH 3/3] Debug print , bk/sys color --- gui/chromeTabs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/chromeTabs.py b/gui/chromeTabs.py index 2048f309c..5cab26677 100644 --- a/gui/chromeTabs.py +++ b/gui/chromeTabs.py @@ -958,6 +958,7 @@ class PFTabsContainer(wx.Panel): selected = 0 color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE) + print color, self.GetBackgroundColour() mdc.SetBackground (wx.Brush(color)) # mdc.SetBackground (wx.Brush((66,113,202)))