From 9343c7a088d2347ac0c996341a49808d0c8718af Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 3 Aug 2022 09:41:29 +0800 Subject: [PATCH] macos: remove needless version check Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/utils_mac.mm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/core/utils_mac.mm b/src/core/utils_mac.mm index f49ab3a..3279f02 100644 --- a/src/core/utils_mac.mm +++ b/src/core/utils_mac.mm @@ -499,14 +499,9 @@ bool Utils::isTitleBarColorized() bool Utils::shouldAppsUseDarkMode_macos() { -#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_14) - if (__builtin_available(macOS 10.14, *)) { - const auto appearance = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames: - @[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]]; - return [appearance isEqualToString:NSAppearanceNameDarkAqua]; - } -#endif - return false; + const auto appearance = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames: + @[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]]; + return [appearance isEqualToString:NSAppearanceNameDarkAqua]; } bool Utils::setBlurBehindWindowEnabled(const WId windowId, const BlurMode mode, const QColor &color)