From f6ac2fd414bc81428e8084f6ef15375950718c29 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Wed, 3 Jun 2015 16:35:10 -0400 Subject: [PATCH] Add a nice border around panels in quickprint settings This makes it more pleasing and less annoying to the eyes with the padding around the widgets --- Cura/gui/simpleMode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/gui/simpleMode.py b/Cura/gui/simpleMode.py index d1efb6a1..a5b4a98e 100644 --- a/Cura/gui/simpleMode.py +++ b/Cura/gui/simpleMode.py @@ -71,7 +71,7 @@ class simpleModePanel(wx.Panel): for button in self._print_profile_options: boxsizer.Add(button) printTypePanel.SetSizer(wx.BoxSizer(wx.VERTICAL)) - printTypePanel.GetSizer().Add(boxsizer, flag=wx.EXPAND) + printTypePanel.GetSizer().Add(boxsizer, border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) sizer.Add(printTypePanel, (0,0), flag=wx.EXPAND) sb = wx.StaticBox(printMaterialPanel, label=_("Material:")) @@ -79,14 +79,14 @@ class simpleModePanel(wx.Panel): for button in self._print_material_options: boxsizer.Add(button) printMaterialPanel.SetSizer(wx.BoxSizer(wx.VERTICAL)) - printMaterialPanel.GetSizer().Add(boxsizer, flag=wx.EXPAND) + printMaterialPanel.GetSizer().Add(boxsizer, border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) sizer.Add(printMaterialPanel, (1,0), flag=wx.EXPAND) sb = wx.StaticBox(self, label=_("Other:")) boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL) for button in self._print_other_options: boxsizer.Add(button) - sizer.Add(boxsizer, (2,0), flag=wx.EXPAND) + sizer.Add(boxsizer, (2,0), border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) for button in self._print_profile_options: button.Bind(wx.EVT_RADIOBUTTON, self._update) -- 2.30.2