From 324358e069a24bda43f4a0903bd838463bd600a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 19 Jan 2026 18:54:28 +0100 Subject: [PATCH] Main screen: Shrink the text on dir buttons in grid view --- UI/MainScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index c7958f84b4..c2cc9819d7 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -480,6 +480,7 @@ void DirButton::Draw(UIContext &dc) { if (compact) { // No folder icon, except "up" dc.PushScissor(bounds_); + dc.SetFontStyle(*GetTextStyle(dc, UI::TextSize::Small)); if (image == ImageID("I_FOLDER") || image == ImageID("I_FOLDER_PINNED")) { dc.DrawTextRect(text, bounds_.Inset(5, 2), style.fgColor, ALIGN_VCENTER | FLAG_WRAP_TEXT); if (pinned_) { @@ -490,6 +491,7 @@ void DirButton::Draw(UIContext &dc) { } else { dc.Draw()->DrawImage(image, bounds_.centerX(), bounds_.centerY(), gridStyle_ ? g_Config.fGameGridScale : 1.0, style.fgColor, ALIGN_CENTER); } + dc.SetFontStyle(dc.GetTheme().uiFont); dc.PopScissor(); } else { bool scissor = false;