forked from github_mirror/framelesshelper
macos: remove needless version check
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
f4f56498c2
commit
9343c7a088
|
@ -499,14 +499,9 @@ bool Utils::isTitleBarColorized()
|
||||||
|
|
||||||
bool Utils::shouldAppsUseDarkMode_macos()
|
bool Utils::shouldAppsUseDarkMode_macos()
|
||||||
{
|
{
|
||||||
#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_14)
|
const auto appearance = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames:
|
||||||
if (__builtin_available(macOS 10.14, *)) {
|
@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
|
||||||
const auto appearance = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames:
|
return [appearance isEqualToString:NSAppearanceNameDarkAqua];
|
||||||
@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
|
|
||||||
return [appearance isEqualToString:NSAppearanceNameDarkAqua];
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Utils::setBlurBehindWindowEnabled(const WId windowId, const BlurMode mode, const QColor &color)
|
bool Utils::setBlurBehindWindowEnabled(const WId windowId, const BlurMode mode, const QColor &color)
|
||||||
|
|
Loading…
Reference in New Issue