From: daid303 Date: Mon, 15 Oct 2012 11:12:56 +0000 (+0200) Subject: Fix the background of the load/prepare/print buttons. Fix the border around the previ... X-Git-Tag: 13.03~246 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=db1cfa0954fa46657c3c5424b5fc13444c63e16b;p=cura.git Fix the background of the load/prepare/print buttons. Fix the border around the preview window toolbar. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 3da92975..8545c9b4 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -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) diff --git a/Cura/gui/simpleMode.py b/Cura/gui/simpleMode.py index faf7dd31..f6e9df5b 100644 --- a/Cura/gui/simpleMode.py +++ b/Cura/gui/simpleMode.py @@ -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)