From fd8752df8db7d08195a3c475902c6c085eec7e45 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 20 Nov 2014 11:33:40 +0000 Subject: [PATCH] Style editor: colors list inside a scrolling region --- imgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 804d509f..4b78e37d 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6353,6 +6353,8 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) static ImGuiTextFilter filter; filter.Draw("Filter colors", 200); + ImGui::BeginChild("#colors", ImVec2(0, 300), true); + ImGui::ColorEditMode(edit_mode); for (int i = 0; i < ImGuiCol_COUNT; i++) { @@ -6368,6 +6370,8 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) } ImGui::PopID(); } + ImGui::EndChild(); + ImGui::TreePop(); }