diff --git a/radiant/main.cpp b/radiant/main.cpp index 54aec697..d040f3f0 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -451,14 +451,7 @@ int main( int argc, char* argv[] ){ #endif glwidget_setDefaultFormat(); // must go before QApplication instantiation -#ifdef WIN32 - std::vector args( argv, argv + argc ); - args.push_back( string_clone( "-platform" ) ); - args.push_back( string_clone( "windows:darkmode=1" ) ); - args.push_back( nullptr ); - argc += 2; - argv = args.data(); -#endif + QApplication qapplication( argc, argv ); setlocale( LC_NUMERIC, "C" ); qInstallMessageHandler( qute_messageHandler ); diff --git a/setup/data/tools/qt.conf b/setup/data/tools/qt.conf new file mode 100644 index 00000000..a9801052 --- /dev/null +++ b/setup/data/tools/qt.conf @@ -0,0 +1,2 @@ +[Platforms] +WindowsArguments = darkmode=1 \ No newline at end of file