diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 20:09:37 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 20:09:37 +0100 |
| commit | 74748ae725ca3cdcc450473ea0ccd245ab36533d (patch) | |
| tree | 4cf69b3d2cb99219651c38683d1c1c6cddbcc7a4 /libs/imgui/imgui.cpp | |
| parent | c011cfe0cb4b2b29c2e1d48b5bfd6db1d7fdc6d8 (diff) | |
ai import ui improvements
Diffstat (limited to 'libs/imgui/imgui.cpp')
| -rw-r--r-- | libs/imgui/imgui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/imgui/imgui.cpp b/libs/imgui/imgui.cpp index e42993c..a4c7e56 100644 --- a/libs/imgui/imgui.cpp +++ b/libs/imgui/imgui.cpp @@ -16680,7 +16680,7 @@ void ImGui::DebugBreakButtonTooltip(bool keyboard_only, const char* description_ // From https://github.com/ocornut/imgui/issues/1901#issuecomment-444929973 void ImGui::LoadingIndicatorCircle(const float indicator_radius, const ImVec4& main_color, const ImVec4& backdrop_color, - const int circle_count, const float speed) { + const int circle_count, const float speed, float circle_radius = 0.0f) { ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) { return; @@ -16690,7 +16690,7 @@ void ImGui::LoadingIndicatorCircle(const float indicator_radius, //const ImGuiID id = window->GetID(label); const ImVec2 pos = window->DC.CursorPos; - const float circle_radius = indicator_radius / 12.0f; + if (circle_radius == 0.0f) circle_radius = indicator_radius / 12.0f; const float updated_indicator_radius = indicator_radius - 4.0f * circle_radius; const ImRect bb(pos, ImVec2(pos.x + indicator_radius * 2.0f, pos.y + indicator_radius * 2.0f)); //ItemSize(bb); |
