be more explicit when detecting dark theme on Mac

This commit is contained in:
Denis Rouzaud 2018-10-26 07:40:43 -04:00
parent 4295e0e8e2
commit 547fdb8292

View File

@ -121,9 +121,9 @@ QgsNative::NotificationResult QgsMacNative::showDesktopNotification( const QStri
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
}