From 0eff1b09f2256afba8f59ef785f3c3bc00341b38 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 7 Aug 2023 11:37:06 +0300 Subject: [PATCH] Use NativeMacDarkThemeAvailable instead of NSNativeMacDarkThemeAvailable. --- src/libs/vmisc/theme/vtheme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vmisc/theme/vtheme.cpp b/src/libs/vmisc/theme/vtheme.cpp index 3e81b5944..ceb9519cc 100644 --- a/src/libs/vmisc/theme/vtheme.cpp +++ b/src/libs/vmisc/theme/vtheme.cpp @@ -168,7 +168,7 @@ auto NativeWindowsDarkThemeAvailable() -> bool //--------------------------------------------------------------------------------------------------------------------- #if defined(Q_OS_MACX) -auto NativeMacDarkThemeAvailable() -> bool +inline auto NativeMacDarkThemeAvailable() -> bool { return NSNativeMacDarkThemeAvailable(); } @@ -176,7 +176,7 @@ auto NativeMacDarkThemeAvailable() -> bool //--------------------------------------------------------------------------------------------------------------------- #if defined(Q_OS_LINUX) -auto NativeLinuxDarkThemeAvailable() -> bool +inline auto NativeLinuxDarkThemeAvailable() -> bool { // There is no way to check native support. Assume always available. return true; @@ -263,7 +263,7 @@ void VTheme::StoreDefaultThemeName(const QString &themeName) auto VTheme::NativeDarkThemeAvailable() -> bool { #if defined(Q_OS_MACX) - return NSNativeMacDarkThemeAvailable(); + return NativeMacDarkThemeAvailable(); #elif defined(Q_OS_WIN) return NativeWindowsDarkThemeAvailable(); #elif defined(Q_OS_LINUX)