From b84efca01eea164f7cd4cf6848c9ef12c76d87fa Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 3 Nov 2020 15:14:04 +0100 Subject: [PATCH] Degree sign in FDM supports gizmo dialog: The sign is used insted of 'deg' and it was moved into the slider, to make it consistent with sliders in SLA gizmos. --- src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp index ed8043d2a..6b0e757db 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp @@ -232,9 +232,12 @@ void GLGizmoFdmSupports::on_render_input_window(float x, float y, float bottom_l else { m_imgui->begin(_L("Autoset custom supports"), ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse); ImGui::AlignTextToFramePadding(); - m_imgui->text(_L("Threshold:") + " " + _L("deg")); + m_imgui->text(_L("Threshold:")); + std::string format_str = std::string("%.f") + I18N::translate_utf8("°", + "Degree sign to use in the respective slider in FDM supports gizmo," + "placed after the number with no whitespace in between."); ImGui::SameLine(); - if (m_imgui->slider_float("", &m_angle_threshold_deg, 0.f, 90.f, "%.f")) + if (m_imgui->slider_float("", &m_angle_threshold_deg, 0.f, 90.f, format_str.data())) m_parent.set_slope_normal_angle(90.f - m_angle_threshold_deg); if (m_imgui->button(_L("Enforce"))) select_facets_by_angle(m_angle_threshold_deg, false);