mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 10:11:20 -08:00
Port citra-emu/citra#3610 to yuzu
This commit is contained in:
parent
b55dc9c85e
commit
1b7dc84132
@ -78,6 +78,9 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
|
|||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
statusBar()->hide();
|
statusBar()->hide();
|
||||||
|
|
||||||
|
default_theme_paths = QIcon::themeSearchPaths();
|
||||||
|
UpdateUITheme();
|
||||||
|
|
||||||
InitializeWidgets();
|
InitializeWidgets();
|
||||||
InitializeDebugWidgets();
|
InitializeDebugWidgets();
|
||||||
InitializeRecentFileMenuActions();
|
InitializeRecentFileMenuActions();
|
||||||
@ -95,9 +98,6 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
|
|||||||
|
|
||||||
game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);
|
game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);
|
||||||
|
|
||||||
default_theme_paths = QIcon::themeSearchPaths();
|
|
||||||
UpdateUITheme();
|
|
||||||
|
|
||||||
// Show one-time "callout" messages to the user
|
// Show one-time "callout" messages to the user
|
||||||
ShowCallouts();
|
ShowCallouts();
|
||||||
|
|
||||||
@ -860,6 +860,7 @@ void GMainWindow::UpdateUITheme() {
|
|||||||
QIcon::setThemeName(":/icons/default");
|
QIcon::setThemeName(":/icons/default");
|
||||||
}
|
}
|
||||||
QIcon::setThemeSearchPaths(theme_paths);
|
QIcon::setThemeSearchPaths(theme_paths);
|
||||||
|
emit UpdateThemedIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef main
|
#ifdef main
|
||||||
|
@ -64,6 +64,9 @@ signals:
|
|||||||
*/
|
*/
|
||||||
void EmulationStopping();
|
void EmulationStopping();
|
||||||
|
|
||||||
|
// Signal that tells widgets to update icons to use the current theme
|
||||||
|
void UpdateThemedIcons();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitializeWidgets();
|
void InitializeWidgets();
|
||||||
void InitializeDebugWidgets();
|
void InitializeDebugWidgets();
|
||||||
|
Loading…
Reference in New Issue
Block a user