diff options
author | N00byKing <N00byKing@hotmail.de> | 2018-03-30 17:38:34 +0200 |
---|---|---|
committer | N00byKing <N00byKing@hotmail.de> | 2018-03-30 17:38:34 +0200 |
commit | 1b7dc84132b60ac08a062f618f4a3b075a250104 (patch) | |
tree | dccca31f07bcf1afde71d6feb080b4029617cf4a | |
parent | Remove whitespaces (diff) | |
download | yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar.gz yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar.bz2 yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar.lz yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar.xz yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.tar.zst yuzu-1b7dc84132b60ac08a062f618f4a3b075a250104.zip |
-rw-r--r-- | src/yuzu/main.cpp | 7 | ||||
-rw-r--r-- | src/yuzu/main.h | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 53ac1fd6a..265502c2a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -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 diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 292021938..20ff65314 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -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(); |