Merge pull request #15464 from iota97/theme-atlas

Allow to change atlas per theme
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-04-24 00:45:15 +02:00
commit 13fcff328c
6 files changed
+81 -42

No files matched your search

+2 -2
View File
@@ -885,9 +885,9 @@ void GameSettingsScreen::CreateViews() {
backgroundChoice_->OnClick.Handle(this, &GameSettingsScreen::OnChangeBackground);
}
PopupMultiChoiceDynamic *theme = systemSettings->Add(new PopupMultiChoiceDynamic(&g_Config.sThemeName, sy->T("Color Theme"), GetThemeInfoNames(), th->GetName(), screenManager()));
PopupMultiChoiceDynamic *theme = systemSettings->Add(new PopupMultiChoiceDynamic(&g_Config.sThemeName, sy->T("Theme"), GetThemeInfoNames(), th->GetName(), screenManager()));
theme->OnChoice.Add([=](EventParams &e) {
UpdateTheme();
UpdateTheme(screenManager()->getUIContext());
return UI::EVENT_CONTINUE;
});