forked from qt-creator/qt-creator
Utils: Fix compile on macOS 10.13
Change-Id: I63b44dbc17211dab7d7115959a046437a0430c77 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -51,7 +51,7 @@ void forceMacOSLightAquaApperance()
|
|||||||
|
|
||||||
bool currentAppearanceIsDark()
|
bool currentAppearanceIsDark()
|
||||||
{
|
{
|
||||||
#if __has_builtin(__builtin_available)
|
#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_14)
|
||||||
if (__builtin_available(macOS 10.14, *)) {
|
if (__builtin_available(macOS 10.14, *)) {
|
||||||
auto appearance = [NSApp.effectiveAppearance
|
auto appearance = [NSApp.effectiveAppearance
|
||||||
bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
|
bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
|
||||||
|
Reference in New Issue
Block a user