mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-06 22:15:07 +00:00
Style editor: colors list inside a scrolling region
This commit is contained in:
parent
f1dcd72e9f
commit
fd8752df8d
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue