From f04db7b595eb278ec9e7a55f1941dff1cb4ed5ef Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Mon, 30 Nov 2020 15:57:39 +0100 Subject: [PATCH] Fix Arrange dialog distance input field usability --- src/slic3r/GUI/GLCanvas3D.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a8221ce69..927110a3d 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3893,11 +3893,14 @@ bool GLCanvas3D::_render_arrange_menu(float pos_x) bool settings_changed = false; - if (imgui->slider_float(_L("Gap size"), &settings.distance, 0.f, 100.f)) { + if (ImGui::DragFloat(_L("Gal size").ToUTF8().data(), &settings.distance, .01f, 0.0f, 100.0f, "%5.2f")) { m_arrange_settings.distance = settings.distance; settings_changed = true; } + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("%s", _L("Use CTRL+Left mouse button to enter text edit mode.\nUse SHIFT key to increase stepping.").ToUTF8().data()); + if (imgui->checkbox(_L("Enable rotations (slow)"), settings.enable_rotation)) { m_arrange_settings.enable_rotation = settings.enable_rotation; settings_changed = true;