diff options
| author | MaranBr <maranbr@outlook.com> | 2025-08-12 20:01:55 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-12 20:01:55 +0200 |
| commit | 234e41193ef25bf96d52817a5d9255d31cfeff6e (patch) | |
| tree | f6283edd8810d5dab6a0a0ef5bb6785b1a75c2bd /src | |
| parent | 1551387739959d4a0ba23767a21664ea9a860848 (diff) | |
[desktop] Fix Default theme on Windows 10 (#246)
This fixes the default theme on Windows 10. Regression introduced in commit: [3f02d77](https://git.eden-emu.dev/eden-emu/eden/commit/3f02d7713f1bfb36245486019bc014ecc49a1b19)
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/246
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: MaranBr <maranbr@outlook.com>
Co-committed-by: MaranBr <maranbr@outlook.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 6c522794e5..2ad8ed9720 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -444,7 +444,6 @@ GMainWindow::GMainWindow(bool has_broken_vulkan) ui->setupUi(this); statusBar()->hide(); - // Check dark mode before a theme is loaded startup_icon_theme = QIcon::themeName(); // fallback can only be set once, colorful theme icons are okay on both light/dark QIcon::setFallbackThemeName(QStringLiteral("colorful")); @@ -5475,6 +5474,10 @@ void GMainWindow::UpdateUITheme() { current_theme = default_theme; } +#ifdef _WIN32 + QIcon::setThemeName(current_theme); + AdjustLinkColor(); +#else if (current_theme == QStringLiteral("default") || current_theme == QStringLiteral("colorful")) { QIcon::setThemeName(current_theme == QStringLiteral("colorful") ? current_theme : startup_icon_theme); @@ -5487,6 +5490,7 @@ void GMainWindow::UpdateUITheme() { QIcon::setThemeSearchPaths(QStringList(QStringLiteral(":/icons"))); AdjustLinkColor(); } +#endif if (current_theme != default_theme) { QString theme_uri{QStringLiteral(":%1/style.qss").arg(current_theme)}; |
