Skip to content
Permalink
Browse files

be more explicit when detecting dark theme on Mac

  • Loading branch information
3nids committed Oct 26, 2018
1 parent 4295e0e commit 547fdb8292a904daac68cd0557eba48e2b3aea42
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/native/mac/qgsmacnative.mm
@@ -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.
You can’t perform that action at this time.