From 9730ec6fff61d9351a388392b7a14095e2a3f78c Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 27 Aug 2019 16:02:15 +0200 Subject: [PATCH] Small LayersRange UI improvements --- src/slic3r/GUI/GUI_ObjectLayers.cpp | 9 +++++++-- 1 file 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;