File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 51
51
#include < QThread>
52
52
#include < QTimer>
53
53
#include < QTranslator>
54
+ #include < QtGlobal>
54
55
55
56
#if defined(QT_STATICPLUGIN)
56
57
#include < QtPlugin>
@@ -466,6 +467,13 @@ int GuiMain(int argc, char* argv[])
466
467
QCoreApplication::setAttribute (Qt::AA_EnableHighDpiScaling);
467
468
#endif
468
469
470
+ #if (QT_VERSION <= QT_VERSION_CHECK(5, 9, 8)) && defined(Q_OS_MACOS)
471
+ const auto os_name = QSysInfo::prettyProductName ();
472
+ if (os_name.startsWith (" macOS 11" ) || os_name.startsWith (" macOS 10.16" )) {
473
+ QApplication::setStyle (" fusion" );
474
+ }
475
+ #endif
476
+
469
477
BitcoinApplication app;
470
478
471
479
// / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
You can’t perform that action at this time.
0 commit comments