parent
85a3fe1b2f
commit
8ab8822448
|
@ -116,7 +116,7 @@ QT_END_NAMESPACE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// QLatin1StringView can't be constexpr until Qt6?
|
// QLatin1StringView can't be constexpr until Qt6?
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0))
|
||||||
# define Q_STRING_CONSTEXPR constexpr
|
# define Q_STRING_CONSTEXPR constexpr
|
||||||
#else
|
#else
|
||||||
# define Q_STRING_CONSTEXPR
|
# define Q_STRING_CONSTEXPR
|
||||||
|
|
|
@ -49,9 +49,9 @@
|
||||||
# include <QtGui/private/qguiapplication_p.h>
|
# include <QtGui/private/qguiapplication_p.h>
|
||||||
# endif // (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
# endif // (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||||
# include <QtGui/qpa/qplatformwindow.h>
|
# include <QtGui/qpa/qplatformwindow.h>
|
||||||
# if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
# if (QT_VERSION < QT_VERSION_CHECK(6, 2, 0))
|
||||||
# include <QtGui/qpa/qplatformnativeinterface.h>
|
# include <QtGui/qpa/qplatformnativeinterface.h>
|
||||||
# else // (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
# else // (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
|
||||||
# include <QtGui/qpa/qplatformwindow_p.h>
|
# include <QtGui/qpa/qplatformwindow_p.h>
|
||||||
# endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
# endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
#endif
|
#endif
|
||||||
|
@ -2305,7 +2305,7 @@ bool Utils::shouldAppsUseDarkMode_windows()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if FRAMELESSHELPER_CONFIG(private_qt)
|
#if FRAMELESSHELPER_CONFIG(private_qt)
|
||||||
# if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
# if (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
|
||||||
if (const auto app = qApp->nativeInterface<QNativeInterface::Private::QWindowsApplication>()) {
|
if (const auto app = qApp->nativeInterface<QNativeInterface::Private::QWindowsApplication>()) {
|
||||||
return app->isDarkMode();
|
return app->isDarkMode();
|
||||||
} else {
|
} else {
|
||||||
|
@ -2320,7 +2320,7 @@ bool Utils::shouldAppsUseDarkMode_windows()
|
||||||
# else // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
|
# else // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
|
||||||
// Qt gained the ability to detect the system dark mode setting only since 5.15.
|
// Qt gained the ability to detect the system dark mode setting only since 5.15.
|
||||||
// We should detect it ourself on versions below that.
|
// We should detect it ourself on versions below that.
|
||||||
# endif // (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
# endif // (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
|
||||||
#endif // FRAMELESSHELPER_CONFIG(private_qt)
|
#endif // FRAMELESSHELPER_CONFIG(private_qt)
|
||||||
// Starting from Windows 10 1903, "ShouldAppsUseDarkMode()" (exported by UXTHEME.DLL,
|
// Starting from Windows 10 1903, "ShouldAppsUseDarkMode()" (exported by UXTHEME.DLL,
|
||||||
// ordinal number 132) always return "TRUE" (actually, a random non-zero number at
|
// ordinal number 132) always return "TRUE" (actually, a random non-zero number at
|
||||||
|
|
Loading…
Reference in New Issue