diff --git a/shell/main.cpp b/shell/main.cpp index ea251ee52..870bd2468 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -27,6 +27,15 @@ int main(int argc, char **argv) { + /** + * enable dark mode for title bar on Windows + */ +#if defined(Q_OS_WIN) + if (!qEnvironmentVariableIsSet("QT_QPA_PLATFORM")) { + qputenv("QT_QPA_PLATFORM", "windows:darkmode=1"); + } +#endif + /** * enable high dpi support */