Explorar el Código

Style editor: colors list inside a scrolling region

ocornut hace 10 años
padre
commit
fd8752df8d
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      imgui.cpp

+ 4 - 0
imgui.cpp

@@ -6353,6 +6353,8 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
         static ImGuiTextFilter filter;
         static ImGuiTextFilter filter;
         filter.Draw("Filter colors", 200);
         filter.Draw("Filter colors", 200);
 
 
+		ImGui::BeginChild("#colors", ImVec2(0, 300), true);
+
         ImGui::ColorEditMode(edit_mode);
         ImGui::ColorEditMode(edit_mode);
         for (int i = 0; i < ImGuiCol_COUNT; i++)
         for (int i = 0; i < ImGuiCol_COUNT; i++)
         {
         {
@@ -6368,6 +6370,8 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
             }
             }
             ImGui::PopID();
             ImGui::PopID();
         }
         }
+		ImGui::EndChild();
+
         ImGui::TreePop();
         ImGui::TreePop();
     }
     }