From b9f3628298b495f9e9f9faabb8bd55c818fc27ea Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 4 Feb 2025 20:45:29 -0300 Subject: [PATCH] Restore button max widths. --- UnleashedRecomp/ui/installer_wizard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnleashedRecomp/ui/installer_wizard.cpp b/UnleashedRecomp/ui/installer_wizard.cpp index cf9920de..0578322f 100644 --- a/UnleashedRecomp/ui/installer_wizard.cpp +++ b/UnleashedRecomp/ui/installer_wizard.cpp @@ -1225,7 +1225,7 @@ static void DrawSourcePickers() std::list paths; if (g_currentPage == WizardPage::SelectGameAndUpdate || g_currentPage == WizardPage::SelectDLC) { - constexpr float ADD_BUTTON_MAX_TEXT_WIDTH = 124.0f; + constexpr float ADD_BUTTON_MAX_TEXT_WIDTH = 168.0f; const std::string &addFilesText = Localise("Installer_Button_AddFiles"); float squashRatio; ImVec2 textSize = ComputeTextSize(g_dfsogeistdFont, addFilesText.c_str(), 20.0f, squashRatio, ADD_BUTTON_MAX_TEXT_WIDTH); @@ -1367,7 +1367,7 @@ static void DrawNavigationButton() } float squashRatio; - constexpr float NAV_BUTTON_MAX_TEXT_WIDTH = 72.0f; + constexpr float NAV_BUTTON_MAX_TEXT_WIDTH = 90.0f; const char *nextButtonKey = "Installer_Button_Next"; if (skipButton) {