From db1cfa0954fa46657c3c5424b5fc13444c63e16b Mon Sep 17 00:00:00 2001 From: daid303 Date: Mon, 15 Oct 2012 13:12:56 +0200 Subject: [PATCH] Fix the background of the load/prepare/print buttons. Fix the border around the preview window toolbar. --- Cura/gui/mainWindow.py | 3 +++ Cura/gui/simpleMode.py | 3 +++ 2 files changed, 6 insertions(+) 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) -- 2.30.2