Skip to content

Commit

Permalink
be more explicit when detecting dark theme on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 26, 2018
1 parent 4295e0e commit 547fdb8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/native/mac/qgsmacnative.mm
Expand Up @@ -121,9 +121,9 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres

bool QgsMacNative::hasDarkTheme()
{
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
#else
return false;
#endif
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
return ( NSApp.effectiveAppearance.name == NSAppearanceNameDarkAqua );
#else
return false;
#endif
}

0 comments on commit 547fdb8

Please sign in to comment.