Merge pull request #15464 from iota97/theme-atlas
Allow to change atlas per theme
This commit is contained in:
commit
13fcff328c
6 changed files with 81 additions and 42 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue