From a3e368a4771a2fd7786bf0e08bcd95f1ec133184 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 17 Jan 2015 17:19:07 +0000 Subject: [PATCH] Fixed alignment of ColorEdit4() label --- imgui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index d15bdb9c..1e909fbc 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5448,9 +5448,13 @@ bool ImGui::ColorEdit4(const char* label, float col[4], bool alpha) // Don't set local copy of 'edit_mode' right away! g.ColorEditModeStorage.SetInt(id, (edit_mode + 1) % 3); } + ImGui::SameLine(); + } + else + { + ImGui::SameLine(0, (int)style.ItemInnerSpacing.x); } - ImGui::SameLine(); ImGui::TextUnformatted(label, FindTextDisplayEnd(label)); // Convert back