Add ability to put icons on tabs

This commit is contained in:
Henrik Rydgård
2025-11-05 14:42:49 +01:00
parent 1246b2d131
commit 75020e2ed7
16 changed files with 45 additions and 38 deletions
+2 -2
View File
@@ -613,7 +613,7 @@ void RemoteISOBrowseScreen::CreateViews() {
scrollRecentGames->Add(tabRemoteGames);
gameBrowsers_.push_back(tabRemoteGames);
leftColumn->AddTab(ri->T("Remote Server"), scrollRecentGames);
leftColumn->AddTab(ri->T("Remote Server"), ImageID::invalid(), scrollRecentGames);
tabRemoteGames->OnChoice.Handle<MainScreen>(this, &MainScreen::OnGameSelectedInstant);
tabRemoteGames->OnHoldChoice.Handle<MainScreen>(this, &MainScreen::OnGameSelected);
tabRemoteGames->OnHighlight.Handle<MainScreen>(this, &MainScreen::OnGameHighlight);
@@ -623,7 +623,7 @@ void RemoteISOBrowseScreen::CreateViews() {
rightColumnItems->SetSpacing(0.0f);
rightColumn->Add(rightColumnItems);
rightColumnItems->Add(new Choice(di->T("Back"), "", false, new AnchorLayoutParams(150, WRAP_CONTENT, 10, NONE, NONE, 10)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
rightColumnItems->Add(new Choice(di->T("Back"), ImageID("I_NAVIGATE_BACK"), new AnchorLayoutParams(150, WRAP_CONTENT, 10, NONE, NONE, 10)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
if (portrait) {
root_ = new LinearLayout(ORIENT_VERTICAL);