diff options
-rw-r--r-- | src/ui/GpgFrontendUIInit.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp index eca77b76..5d91c55e 100644 --- a/src/ui/GpgFrontendUIInit.cpp +++ b/src/ui/GpgFrontendUIInit.cpp @@ -106,6 +106,15 @@ void InitGpgFrontendUI(QApplication* /*app*/) { // init locale InitLocale(); +#ifdef WINDOWS + // support dark mode on windows + QApplication::setStyle("fusion"); +#endif + + // register meta types + qRegisterMetaType<QSharedPointer<GpgPassphraseContext> >( + "QSharedPointer<GpgPassphraseContext>"); + // init signal station UISignalStation::GetInstance(); @@ -172,9 +181,6 @@ void InitGpgFrontendUI(QApplication* /*app*/) { 0) { WaitEnvCheckingProcess(); } - - qRegisterMetaType<QSharedPointer<GpgPassphraseContext> >( - "QSharedPointer<GpgPassphraseContext>"); } auto RunGpgFrontendUI(QApplication* app) -> int { |