Skip to content

Commit 66bfc4b

Browse files
committed
Achievements: Increase padding for leaderboard loading indicator
1 parent bd1b660 commit 66bfc4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/fullscreenui_achievements.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,17 +2640,17 @@ void FullscreenUI::DrawLeaderboardLoadingIndicator(float pos_y, float avail_heig
26402640

26412641
// position in right side of screen if short text, center otherwise
26422642
const ImVec2 pos = short_text ?
2643-
ImVec2((display_width - total_width) - LayoutScale(25.0f),
2644-
pos_y + avail_height - font_size - LayoutScale(10.0f)) :
2643+
ImVec2((display_width - total_width) - LayoutScale(40.0f),
2644+
pos_y + avail_height - font_size - LayoutScale(25.0f)) :
26452645
ImVec2((display_width - total_width) * 0.5f, pos_y + (avail_height - font_size) * 0.5f);
26462646

26472647
// for short text, draw a background box
26482648
if (short_text)
26492649
{
2650-
const ImVec2 padding = ImVec2(LayoutScale(10.0f), LayoutScale(6.0f));
2650+
const ImVec2 padding = ImVec2(LayoutScale(16.0f), LayoutScale(12.0f));
26512651
ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(pos.x - padding.x, pos.y - padding.y),
26522652
ImVec2(pos.x + total_width + padding.x, pos.y + font_size + padding.y),
2653-
ImGui::GetColorU32(ModAlpha(UIStyle.PopupBackgroundColor, 0.8f)),
2653+
ImGui::GetColorU32(ModAlpha(UIStyle.PopupBackgroundColor, 0.5f)),
26542654
LayoutScale(LAYOUT_MENU_ITEM_BORDER_ROUNDING));
26552655
}
26562656

0 commit comments

Comments
 (0)