FullscreenUI: Use horizotal layout for about dialog

This commit is contained in:
Stenzek 2025-06-14 14:10:29 +10:00
parent e19817c7f9
commit 3a7cbc20d9
No known key found for this signature in database

View File

@ -170,6 +170,9 @@ using ImGuiFullscreen::ShowToast;
using ImGuiFullscreen::ThreeWayToggleButton; using ImGuiFullscreen::ThreeWayToggleButton;
using ImGuiFullscreen::ToggleButton; using ImGuiFullscreen::ToggleButton;
using ImGuiFullscreen::WantsToCloseMenu; using ImGuiFullscreen::WantsToCloseMenu;
using ImGuiFullscreen::BeginHorizontalMenuButtons;
using ImGuiFullscreen::EndHorizontalMenuButtons;
using ImGuiFullscreen::HorizontalMenuButton;
#ifndef __ANDROID__ #ifndef __ANDROID__
@ -8771,7 +8774,7 @@ void FullscreenUI::CopyTextToClipboard(std::string title, std::string_view text)
void FullscreenUI::DrawAboutWindow() void FullscreenUI::DrawAboutWindow()
{ {
if (!BeginFixedPopupDialog(LayoutScale(LAYOUT_LARGE_POPUP_PADDING), LayoutScale(LAYOUT_LARGE_POPUP_ROUNDING), if (!BeginFixedPopupDialog(LayoutScale(LAYOUT_LARGE_POPUP_PADDING), LayoutScale(LAYOUT_LARGE_POPUP_ROUNDING),
LayoutScale(1020.0f, 600.0f))) LayoutScale(1100.0f, 0.0f)))
{ {
return; return;
} }
@ -8802,20 +8805,20 @@ void FullscreenUI::DrawAboutWindow()
ImGui::NewLine(); ImGui::NewLine();
BeginMenuButtons(); BeginHorizontalMenuButtons(4);
if (MenuButtonWithoutSummary(FSUI_ICONVSTR(ICON_FA_GLOBE, "GitHub Repository"))) if (HorizontalMenuButton(FSUI_ICONVSTR(ICON_FA_GLOBE, "GitHub Repository")))
ExitFullscreenAndOpenURL("https://github.com/stenzek/duckstation/"); ExitFullscreenAndOpenURL("https://github.com/stenzek/duckstation/");
if (MenuButtonWithoutSummary(FSUI_ICONVSTR(ICON_FA_COMMENT, "Discord Server"))) if (HorizontalMenuButton(FSUI_ICONVSTR(ICON_FA_COMMENT, "Discord Server")))
ExitFullscreenAndOpenURL("https://www.duckstation.org/discord.html"); ExitFullscreenAndOpenURL("https://www.duckstation.org/discord.html");
if (MenuButtonWithoutSummary(FSUI_ICONVSTR(ICON_FA_PEOPLE_CARRY, "Contributor List"))) if (HorizontalMenuButton(FSUI_ICONVSTR(ICON_FA_PEOPLE_CARRY, "Contributor List")))
ExitFullscreenAndOpenURL("https://github.com/stenzek/duckstation/blob/master/CONTRIBUTORS.md"); ExitFullscreenAndOpenURL("https://github.com/stenzek/duckstation/blob/master/CONTRIBUTORS.md");
if (MenuButtonWithoutSummary(FSUI_ICONVSTR(ICON_FA_WINDOW_CLOSE, "Close")) || WantsToCloseMenu()) if (HorizontalMenuButton(FSUI_ICONVSTR(ICON_FA_WINDOW_CLOSE, "Close")) || WantsToCloseMenu())
CloseFixedPopupDialog(); CloseFixedPopupDialog();
else else
SetStandardSelectionFooterText(true); SetStandardSelectionFooterText(true);
EndMenuButtons(); EndHorizontalMenuButtons();
EndFixedPopupDialog(); EndFixedPopupDialog();
} }