| | |
| | | |
| | | #include <QWKCore/qwindowkit_windows.h> |
| | | |
| | | #include <QtGui/QStyleHints> |
| | | #include <QtGui/QPalette> |
| | | |
| | | #include <QtCore/private/qsystemlibrary_p.h> |
| | | #include <QtCore/private/qwinregistry_p.h> |
| | | |
| | | #include <QtGui/QStyleHints> |
| | | #include <QtGui/QPalette> |
| | | |
| | | // Don't include this header in any header files. |
| | | |
| | |
| | | return result; |
| | | } |
| | | |
| | | static inline bool isWin101809OrGreater() { |
| | | static const bool result = IsWindows101809OrGreater_Real(); |
| | | return result; |
| | | } |
| | | |
| | | static inline bool isWin11OrGreater() { |
| | | static const bool result = IsWindows11OrGreater_Real(); |
| | | return result; |
| | |
| | | return value.first; |
| | | } |
| | | |
| | | static inline bool isHighContrastModeEnabled() { |
| | | HIGHCONTRASTW hc{}; |
| | | hc.cbSize = sizeof(hc); |
| | | ::SystemParametersInfoW(SPI_GETHIGHCONTRAST, sizeof(hc), &hc, FALSE); |
| | | return (hc.dwFlags & HCF_HIGHCONTRASTON); |
| | | } |
| | | |
| | | static inline bool isDarkThemeActive() { |
| | | #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) |
| | | return QGuiApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark; |