From 9ac9b2c23dcac814c6b81ddaf0d47d00d29a9b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 26 Oct 2026 22:05:46 +0100 Subject: [PATCH] Add a left-pointing chevron, more ChoiceGroup --- UI/RemoteISOScreen.cpp | 10 ++++++---- UI/UIAtlas.cpp | 1 + assets/ui_images/images.svg | 13 ++++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/UI/RemoteISOScreen.cpp b/UI/RemoteISOScreen.cpp index b64c669a69..f63d1ea349 100644 --- a/UI/RemoteISOScreen.cpp +++ b/UI/RemoteISOScreen.cpp @@ -361,16 +361,18 @@ void RemoteISOScreen::CreateConnectTab(UI::ViewGroup *tab) { firewallWarning_->SetTextColor(0xFF0000FF); firewallWarning_->SetVisibility(V_GONE); + ChoiceGroup *group = tab->Add(new ChoiceGroup()); + Choice *browseChoice = new Choice(ri->T("Browse Games")); - tab->Add(browseChoice)->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse); + group->Add(browseChoice)->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse); if (WebServerStopping(WebServerFlags::DISCS)) { - tab->Add(new Choice(ri->T("Stopping..")))->SetDisabledPtr(&serverStopping_); + group->Add(new Choice(ri->T("Stopping..")))->SetDisabledPtr(&serverStopping_); browseChoice->SetEnabled(false); } else if (!WebServerStopped(WebServerFlags::DISCS)) { - tab->Add(new Choice(ri->T("Stop Sharing")))->OnClick.Handle(this, &RemoteISOScreen::HandleStopServer); + group->Add(new Choice(ri->T("Stop Sharing")))->OnClick.Handle(this, &RemoteISOScreen::HandleStopServer); browseChoice->SetEnabled(false); } else { - tab->Add(new Choice(ri->T("Share Games (Server)")))->OnClick.Handle(this, &RemoteISOScreen::HandleStartServer); + group->Add(new Choice(ri->T("Share Games (Server)")))->OnClick.Handle(this, &RemoteISOScreen::HandleStartServer); browseChoice->SetEnabled(true); } } diff --git a/UI/UIAtlas.cpp b/UI/UIAtlas.cpp index 2951072730..0d7469c6c4 100644 --- a/UI/UIAtlas.cpp +++ b/UI/UIAtlas.cpp @@ -124,6 +124,7 @@ static const ImageMeta g_uiImageIDs[] = { {"I_ARROW_RIGHT", true}, {"I_ARROW_UP", true}, {"I_ARROW_DOWN", true}, + {"I_CHEVRON_LEFT", false}, {"I_CHEVRON_RIGHT", false}, {"I_SLIDERS", false}, {"I_THREE_DOTS", true}, diff --git a/assets/ui_images/images.svg b/assets/ui_images/images.svg index 3006a898a7..0870ff52fe 100644 --- a/assets/ui_images/images.svg +++ b/assets/ui_images/images.svg @@ -23,9 +23,9 @@ inkscape:pagecheckerboard="true" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="1.4142136" - inkscape:cx="596.09102" - inkscape:cy="196.22213" + inkscape:zoom="5.6568544" + inkscape:cx="181.63805" + inkscape:cy="75.041705" inkscape:window-width="3840" inkscape:window-height="2071" inkscape:window-x="-9" @@ -235,7 +235,7 @@ sodipodi:nodetypes="cccccccc" />