Skip to content
Snippets Groups Projects
Commit 1b7dc841 authored by N00byKing's avatar N00byKing
Browse files

Port citra-emu/citra#3610 to yuzu

parent b55dc9c8
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
ui.setupUi(this);
statusBar()->hide();
default_theme_paths = QIcon::themeSearchPaths();
UpdateUITheme();
InitializeWidgets();
InitializeDebugWidgets();
InitializeRecentFileMenuActions();
......@@ -95,9 +98,6 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);
default_theme_paths = QIcon::themeSearchPaths();
UpdateUITheme();
// Show one-time "callout" messages to the user
ShowCallouts();
......@@ -860,6 +860,7 @@ void GMainWindow::UpdateUITheme() {
QIcon::setThemeName(":/icons/default");
}
QIcon::setThemeSearchPaths(theme_paths);
emit UpdateThemedIcons();
}
#ifdef main
......
......@@ -64,6 +64,9 @@ signals:
*/
void EmulationStopping();
// Signal that tells widgets to update icons to use the current theme
void UpdateThemedIcons();
private:
void InitializeWidgets();
void InitializeDebugWidgets();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment