mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
be more explicit when detecting dark theme on Mac
This commit is contained in:
parent
4295e0e8e2
commit
547fdb8292
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user