Improve alignment of background tasks circle animation.

This commit is contained in:
Bartosz Taudul 2024-09-28 01:30:18 +02:00
parent 52e0cf38b7
commit a34b058701
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -230,7 +230,7 @@ void View::DrawNotificationArea()
ImGui::SameLine(); ImGui::SameLine();
const auto pos = ImGui::GetCursorPos(); const auto pos = ImGui::GetCursorPos();
ImGui::TextUnformatted( " " ); ImGui::TextUnformatted( " " );
ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.75f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 ); ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.675f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 );
auto rmin = ImGui::GetItemRectMin(); auto rmin = ImGui::GetItemRectMin();
rmin.x -= ty * 0.5f; rmin.x -= ty * 0.5f;
const auto rmax = ImGui::GetItemRectMax(); const auto rmax = ImGui::GetItemRectMax();