diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-01-10 08:48:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 08:48:17 +0100 |
commit | 61144f7a219995fa29531683ed36e8e4002848b5 (patch) | |
tree | 0b56a4949c9fb64d38b805afac59a5bfecab2c2b /launcher/ui/themes | |
parent | ca9b2525c8e45c6dfe2911e895dcb25e0c9e5933 (diff) | |
parent | 78bbcac0eaf1bb9df1ac87dafffbef659116fd80 (diff) | |
download | PrismLauncher-61144f7a219995fa29531683ed36e8e4002848b5.tar.gz PrismLauncher-61144f7a219995fa29531683ed36e8e4002848b5.tar.bz2 PrismLauncher-61144f7a219995fa29531683ed36e8e4002848b5.zip |
Merge pull request #726 from TheLastRar/qt6-win-darkmode
Closes https://github.com/PrismLauncher/PrismLauncher/issues/158
Diffstat (limited to 'launcher/ui/themes')
-rw-r--r-- | launcher/ui/themes/ThemeManager.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/launcher/ui/themes/ThemeManager.cpp b/launcher/ui/themes/ThemeManager.cpp index 01a38a86..5a612472 100644 --- a/launcher/ui/themes/ThemeManager.cpp +++ b/launcher/ui/themes/ThemeManager.cpp @@ -28,14 +28,6 @@ #include "Application.h"
-#ifdef Q_OS_WIN
-#include <windows.h>
-// this is needed for versionhelpers.h, it is also included in WinDarkmode, but we can't rely on that.
-// Ultimately this should be included in versionhelpers, but that is outside of the project.
-#include "ui/WinDarkmode.h"
-#include <versionhelpers.h>
-#endif
-
ThemeManager::ThemeManager(MainWindow* mainWindow)
{
m_mainWindow = mainWindow;
@@ -140,15 +132,6 @@ void ThemeManager::setApplicationTheme(const QString& name, bool initial) auto& theme = themeIter->second;
themeDebugLog() << "applying theme" << theme->name();
theme->apply(initial);
-#ifdef Q_OS_WIN
- if (m_mainWindow && IsWindows10OrGreater()) {
- if (QString::compare(theme->id(), "dark") == 0) {
- WinDarkmode::setDarkWinTitlebar(m_mainWindow->winId(), true);
- } else {
- WinDarkmode::setDarkWinTitlebar(m_mainWindow->winId(), false);
- }
- }
-#endif
} else {
themeWarningLog() << "Tried to set invalid theme:" << name;
}
|