From 0250dc903ef234a98a8a92b7462d169d8562c9e7 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 2 Jul 2024 14:38:44 +0200 Subject: [PATCH] Demo: changed style editor inline block to its own window. --- imgui_demo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 6ea0e47d7..2f8aacf06 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -540,8 +540,9 @@ void ImGui::ShowDemoWindow(bool* p_open) IMGUI_DEMO_MARKER("Configuration/Style"); if (ImGui::TreeNode("Style")) { + ImGui::Checkbox("Style Editor", &show_tool_style_editor); + ImGui::SameLine(); HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); - ImGui::ShowStyleEditor(); ImGui::TreePop(); ImGui::Spacing(); }