chiark / gitweb /
Fix the background of the load/prepare/print buttons. Fix the border around the previ...
authordaid303 <daid303@gmail.com>
Mon, 15 Oct 2012 11:12:56 +0000 (13:12 +0200)
committerdaid303 <daid303@gmail.com>
Mon, 15 Oct 2012 11:12:56 +0000 (13:12 +0200)
Cura/gui/mainWindow.py
Cura/gui/simpleMode.py

index 3da92975dca1a6ebafd037c57ca1e112cba457b4..8545c9b45427cc97586e865a016cc7337cda45db 100644 (file)
@@ -254,11 +254,14 @@ class mainWindow(configBase.configWindowBase):
 
                self.updateProfileToControls()
 
+               self.SetBackgroundColour(nb.GetBackgroundColour())
+
                self.Fit()
                if wx.Display().GetClientArea().GetWidth() < self.GetSize().GetWidth():
                        f = self.GetSize().GetWidth() - wx.Display().GetClientArea().GetWidth()
                        self.preview3d.SetMinSize(self.preview3d.GetMinSize().DecBy(f, 0))
                        self.Fit()
+               self.preview3d.Fit()
                self.SetMinSize(self.GetSize())
                self.Centre()
                self.Show(True)
index faf7dd311fa61b3167464393244870c1bcb50eb8..f6e9df5b1f0e31a81b2a5f1709bd3921e4900151 100644 (file)
@@ -124,12 +124,15 @@ class simpleModeWindow(configBase.configWindowBase):
                if len(self.filelist) > 0:
                        self.preview3d.loadModelFiles(self.filelist)
 
+               self.SetBackgroundColour(configPanel.GetBackgroundColour())
+
                self.updateProfileToControls()
 
                self.printTypeNormal.SetValue(True)
                self.printMaterialPLA.SetValue(True)
 
                self.Fit()
+               self.preview3d.Fit()
                self.SetMinSize(self.GetSize())
                self.Centre()
                self.Show(True)