We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a622ce5 commit b766969Copy full SHA for b766969
src/native/mac/qgsmacnative.mm
@@ -122,7 +122,7 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres
122
bool QgsMacNative::hasDarkTheme()
123
{
124
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14
125
- if (@available(macOS 10.14, *)) {
+ if ([NSApp respondsToSelector:@selector(effectiveAppearance)]) {
126
// compiled on macos 10.14+ AND running on macos 10.14+
127
// check the settings of effective appearance of the user
128
NSAppearanceName appearanceName = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
0 commit comments