From 3ff04c95d54dea412ba1e6e4980797bdda8f8cde Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 15 Jul 2015 17:18:02 -0600 Subject: [PATCH] Minor tweaks --- imgui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index fab040f9..915c581a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -11107,6 +11107,7 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) filter.Draw("Filter colors", 200); ImGui::BeginChild("#colors", ImVec2(0, 300), true); + ImGui::PushItemWidth(-160); ImGui::ColorEditMode(edit_mode); for (int i = 0; i < ImGuiCol_COUNT; i++) { @@ -11122,6 +11123,7 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) } ImGui::PopID(); } + ImGui::PopItemWidth(); ImGui::EndChild(); ImGui::TreePop(); @@ -11293,7 +11295,7 @@ void ImGui::ShowTestWindow(bool* opened) if (ImGui::TreeNode("Logging")) { - ImGui::TextWrapped("The logging API redirects all text output of ImGui so you can easily capture the content of a window or a block. Tree nodes can be automatically expanded. You can also call ImGui::LogText() to output directly to the log without a visual output."); + ImGui::TextWrapped("The logging API redirects all text output so you can easily capture the content of a window or a block. Tree nodes can be automatically expanded. You can also call ImGui::LogText() to output directly to the log without a visual output."); ImGui::LogButtons(); ImGui::TreePop(); }