mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Demo: Added an extra test related to baseline and fixed an id collision.
This commit is contained in:
parent
2d859dee4e
commit
7c2926de17
1 changed files with 3 additions and 2 deletions
|
|
@ -811,7 +811,7 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||
}
|
||||
|
||||
ImGui::Text("Color button only:");
|
||||
ImGui::ColorButton("MyColor##3b", *(ImVec4*)&color, misc_flags, ImVec2(80,80));
|
||||
ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags, ImVec2(80,80));
|
||||
|
||||
ImGui::Text("Color picker:");
|
||||
static bool alpha = true;
|
||||
|
|
@ -1186,7 +1186,8 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||
ImGui::Text("Text aligned to Widget"); ImGui::SameLine();
|
||||
ImGui::Button("Widget##1"); ImGui::SameLine();
|
||||
ImGui::Text("Widget"); ImGui::SameLine();
|
||||
ImGui::SmallButton("Widget##2");
|
||||
ImGui::SmallButton("Widget##2"); ImGui::SameLine();
|
||||
ImGui::Button("Widget##3");
|
||||
|
||||
// Tree
|
||||
const float spacing = ImGui::GetStyle().ItemInnerSpacing.x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue