diff options
Diffstat (limited to 'src')
| -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) { | |||
| 78 | ui.setupUi(this); | 78 | ui.setupUi(this); |
| 79 | statusBar()->hide(); | 79 | statusBar()->hide(); |
| 80 | 80 | ||
| 81 | default_theme_paths = QIcon::themeSearchPaths(); | ||
| 82 | UpdateUITheme(); | ||
| 83 | |||
| 81 | InitializeWidgets(); | 84 | InitializeWidgets(); |
| 82 | InitializeDebugWidgets(); | 85 | InitializeDebugWidgets(); |
| 83 | InitializeRecentFileMenuActions(); | 86 | InitializeRecentFileMenuActions(); |
| @@ -95,9 +98,6 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 95 | 98 | ||
| 96 | game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan); | 99 | game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan); |
| 97 | 100 | ||
| 98 | default_theme_paths = QIcon::themeSearchPaths(); | ||
| 99 | UpdateUITheme(); | ||
| 100 | |||
| 101 | // Show one-time "callout" messages to the user | 101 | // Show one-time "callout" messages to the user |
| 102 | ShowCallouts(); | 102 | ShowCallouts(); |
| 103 | 103 | ||
| @@ -860,6 +860,7 @@ void GMainWindow::UpdateUITheme() { | |||
| 860 | QIcon::setThemeName(":/icons/default"); | 860 | QIcon::setThemeName(":/icons/default"); |
| 861 | } | 861 | } |
| 862 | QIcon::setThemeSearchPaths(theme_paths); | 862 | QIcon::setThemeSearchPaths(theme_paths); |
| 863 | emit UpdateThemedIcons(); | ||
| 863 | } | 864 | } |
| 864 | 865 | ||
| 865 | #ifdef main | 866 | #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: | |||
| 64 | */ | 64 | */ |
| 65 | void EmulationStopping(); | 65 | void EmulationStopping(); |
| 66 | 66 | ||
| 67 | // Signal that tells widgets to update icons to use the current theme | ||
| 68 | void UpdateThemedIcons(); | ||
| 69 | |||
| 67 | private: | 70 | private: |
| 68 | void InitializeWidgets(); | 71 | void InitializeWidgets(); |
| 69 | void InitializeDebugWidgets(); | 72 | void InitializeDebugWidgets(); |