Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-08-27 17:02:15 +0300
committerYuSanka <yusanka@gmail.com>2019-08-27 17:02:15 +0300
commit9730ec6fff61d9351a388392b7a14095e2a3f78c (patch)
treed8f1c90960fc66d1a6ca1e01fa6774824b30525b /src/slic3r/GUI/GUI_ObjectLayers.cpp
parente0e12063bfa901cc2a7da82f9dbbb35b4caff928 (diff)
Small LayersRange UI improvements
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectLayers.cpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectLayers.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectLayers.cpp b/src/slic3r/GUI/GUI_ObjectLayers.cpp
index 661e45e05..a11033e27 100644
--- a/src/slic3r/GUI/GUI_ObjectLayers.cpp
+++ b/src/slic3r/GUI/GUI_ObjectLayers.cpp
@@ -20,13 +20,12 @@ namespace GUI
ObjectLayers::ObjectLayers(wxWindow* parent) :
OG_Settings(parent, true)
{
- m_grid_sizer = new wxFlexGridSizer(3, 5, 5); // "Min Z", "Max Z", "Layer height" & buttons sizer
+ m_grid_sizer = new wxFlexGridSizer(3, 5, wxGetApp().em_unit()); // "Min Z", "Max Z", "Layer height" & buttons sizer
m_grid_sizer->SetFlexibleDirection(wxHORIZONTAL);
// Legend for object layers
for (const std::string col : { L("Start at height"), L("Stop at height"), L("Layer height") }) {
auto temp = new wxStaticText(m_parent, wxID_ANY, _(col), wxDefaultPosition, /*size*/wxDefaultSize, wxST_ELLIPSIZE_MIDDLE);
- temp->SetFont(Slic3r::GUI::wxGetApp().normal_font());
temp->SetBackgroundStyle(wxBG_STYLE_PAINT);
temp->SetFont(wxGetApp().bold_font());
@@ -132,6 +131,12 @@ wxSizer* ObjectLayers::create_layer(const t_layer_height_range& range)
auto sizer = new wxBoxSizer(wxHORIZONTAL);
sizer->Add(editor);
+
+ auto temp = new wxStaticText(m_parent, wxID_ANY, _(L("mm")));
+ temp->SetBackgroundStyle(wxBG_STYLE_PAINT);
+ temp->SetFont(wxGetApp().normal_font());
+ sizer->Add(temp, 0, wxLEFT|wxRIGHT, wxGetApp().em_unit());
+
m_grid_sizer->Add(sizer);
return sizer;