mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 14:28:34 +00:00
fusion style for windows for dark mode
This commit is contained in:
parent
56ad56a571
commit
206b2ab5c3
213 changed files with 7 additions and 2223 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue