Merge pull request #15464 from iota97/theme-atlas

Allow to change atlas per theme
This commit is contained in:
Henrik Rydgård 2022-04-24 00:45:15 +02:00 committed by GitHub
commit 13fcff328c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 42 deletions

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;
});