fusion style for windows for dark mode

This commit is contained in:
Nayla Hanegan 2023-06-30 20:02:18 -04:00
parent 56ad56a571
commit 206b2ab5c3
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D
213 changed files with 7 additions and 2223 deletions

View file

@ -42,6 +42,7 @@
#include "UICommon/CommandLineParse.h"
#include "UICommon/UICommon.h"
#include <qstylefactory.h>
static bool QtMsgAlertHandler(const char* caption, const char* text, bool yes_no,
Common::MsgType style)
@ -153,6 +154,12 @@ int main(int argc, char* argv[])
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));
#ifdef _WIN32
// The windowsvista style doesn't support dark mode (and the windows style looks bad), so default
// to fusion on windows. Qt on other OSs defaults to styles which support dark mode.
QApplication::setStyle(QStringLiteral("fusion"));
#endif
// MPN Lets inject our update code here
QProcess* process = new QProcess();
QString path = QStringLiteral("Updater\\UpdateSilent.bat");