diff --git a/src/native/mac/qgsmacnative.mm b/src/native/mac/qgsmacnative.mm index 34e695ffb583..88dedb5337a8 100644 --- a/src/native/mac/qgsmacnative.mm +++ b/src/native/mac/qgsmacnative.mm @@ -121,5 +121,9 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres bool QgsMacNative::hasDarkTheme() { - return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua ); + #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 + return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua ); + #else + return false; + #endif }