aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendUIInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-30 17:33:21 +0000
committersaturneric <[email protected]>2024-07-30 17:33:21 +0000
commit02edad4c989f60e248657bb7854253f8297db583 (patch)
tree0fa307c34d270f42ba1ad90da819c259d744f283 /src/ui/GpgFrontendUIInit.cpp
parentfeat: should check build capability at dev branch (diff)
downloadGpgFrontend-02edad4c989f60e248657bb7854253f8297db583.tar.gz
GpgFrontend-02edad4c989f60e248657bb7854253f8297db583.zip
fix: use standard os detection macro
Diffstat (limited to 'src/ui/GpgFrontendUIInit.cpp')
-rw-r--r--src/ui/GpgFrontendUIInit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp
index c720d3df..f7ebfd29 100644
--- a/src/ui/GpgFrontendUIInit.cpp
+++ b/src/ui/GpgFrontendUIInit.cpp
@@ -120,7 +120,7 @@ void InitGpgFrontendUI(QApplication* /*app*/) {
auto settings = GlobalSettingStation::GetInstance().GetSettings();
auto theme = settings.value("appearance/theme").toString();
-#ifdef WINDOWS
+#if defined(_WIN32) || defined(WIN32)
if (theme.isEmpty()) {
// support dark mode on windows
QApplication::setStyle(QStyleFactory::create("Fusion"));