Fix the background of the load/prepare/print buttons. Fix the border around the preview window toolbar.
parent
eab76a4566
commit
db1cfa0954
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue