![]() |
Qt 6.x
The Qt SDK
|
#include <qwindowstheme.h>
Static Public Member Functions | |
static QWindowsTheme * | instance () |
static bool | useNativeMenus () |
static bool | queryDarkMode () |
static bool | queryHighContrast () |
static QPalette | systemPalette (Qt::ColorScheme) |
![]() | |
static QVariant | defaultThemeHint (ThemeHint hint) |
static QString | defaultStandardButtonText (int button) |
static QString | removeMnemonics (const QString &original) |
Static Public Attributes | |
static const char * | name = "windows" |
Definition at line 18 of file qwindowstheme.h.
QWindowsTheme::QWindowsTheme | ( | ) |
Definition at line 443 of file qwindowstheme.cpp.
References QPlatformTheme::NFonts, QPlatformTheme::NPalettes, and refresh().
|
override |
Definition at line 452 of file qwindowstheme.cpp.
Definition at line 48 of file qwindowstheme.h.
Referenced by QWindowsFileIconEngine::availableSizes().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 530 of file qwindowstheme.cpp.
References Qt::Dark, QWindowsContext::isDarkMode(), and Qt::Light.
Referenced by systemPalette().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 696 of file qwindowstheme.cpp.
References QWindowsDialogs::createHelper().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1119 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1129 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1113 of file qwindowstheme.cpp.
References qCDebug, and useNativeMenus().
|
inline |
Definition at line 46 of file qwindowstheme.h.
|
overridevirtual |
Return an icon for fileInfo, observing iconOptions.
This function is queried by QFileIconProvider and similar classes to obtain an icon for a file. If it does not return a non-null icon, fileIconPixmap() is queried for a specific size.
Reimplemented from QPlatformTheme.
Definition at line 1069 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 38 of file qwindowstheme.h.
|
inlinestatic |
Definition at line 25 of file qwindowstheme.h.
Referenced by QWindowsFileIconEngine::availableSizes(), QWindowsScreenManager::handleScreenChanges(), qDisplayChangeObserverWndProc(), and QWindowsContext::windowsProc().
|
inlineoverridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 36 of file qwindowstheme.h.
|
static |
Definition at line 1098 of file qwindowstheme.cpp.
References QWinRegistryKey::dwordValue(), and queryHighContrast().
Referenced by QWindowsContextPrivate::QWindowsContextPrivate(), and QWindowsContext::windowsProc().
|
static |
Definition at line 1108 of file qwindowstheme.cpp.
References booleanSystemParametersInfo().
Referenced by queryDarkMode().
void QWindowsTheme::refresh | ( | ) |
Definition at line 620 of file qwindowstheme.cpp.
References refreshFonts().
Referenced by QWindowsTheme(), QWindowsContext::windowsProc(), and windowsThemeChanged().
void QWindowsTheme::refreshFonts | ( | ) |
Definition at line 648 of file qwindowstheme.cpp.
References QGuiApplication::desktopSettingsAware(), QPlatformTheme::DockWidgetTitleFont, QPlatformTheme::FixedFont, QPlatformTheme::ItemViewFont, QWindowsFontDatabaseBase::LOGFONT_to_QFont(), QPlatformTheme::MdiSubWindowTitleFont, QPlatformTheme::MenuBarFont, QPlatformTheme::MenuFont, QPlatformTheme::MessageBoxFont, QWindowsContext::nonClientMetrics(), QFont::pointSize(), qCDebug, QStringLiteral, QFont::setStyleHint(), QPlatformTheme::StatusBarFont, QWindowsFontDatabaseBase::systemDefaultFont(), QPlatformTheme::SystemFont, QPlatformTheme::TipLabelFont, and QFont::TypeWriter.
Referenced by refresh().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 1135 of file qwindowstheme.cpp.
References qCDebug.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 752 of file qwindowstheme.cpp.
References QPlatformTheme::ComputerIcon, QPlatformTheme::DesktopIcon, QPlatformTheme::DirClosedIcon, QPlatformTheme::DirHomeIcon, QPlatformTheme::DirIcon, QPlatformTheme::DirLinkIcon, QPlatformTheme::DirLinkOpenIcon, QPlatformTheme::DirOpenIcon, QPainter::drawPixmap(), QPlatformTheme::DriveCDIcon, QPlatformTheme::DriveDVDIcon, QPlatformTheme::DriveFDIcon, QPlatformTheme::DriveHDIcon, QPlatformTheme::DriveNetIcon, QPlatformTheme::FileDialogNewFolder, QPlatformTheme::FileIcon, QPlatformTheme::FileLinkIcon, QSizeF::height(), loadIconFromShell32(), QPlatformTheme::MessageBoxCritical, QPlatformTheme::MessageBoxInformation, QPlatformTheme::MessageBoxQuestion, QPlatformTheme::MessageBoxWarning, painter, pixmap, Q_FALLTHROUGH, qt_pixmapFromWinHICON(), sp, QPlatformTheme::standardPixmap(), QPlatformTheme::TrashIcon, QPlatformTheme::VistaShield, and QSizeF::width().
|
static |
Definition at line 573 of file qwindowstheme.cpp.
References QPalette::AccentColor, QPalette::Base, QPalette::ButtonText, colorScheme(), Qt::Dark, QPalette::Disabled, disabled, QPalette::Highlight, QPalette::HighlightedText, QPalette::Inactive, Qt::Light, mixColors(), populateDarkSystemBasePalette(), populateLightSystemBasePalette(), qFatal, standardPalette(), QPalette::Text, QPalette::Window, and QPalette::WindowText.
Referenced by QWindowsApplication::populateLightSystemPalette().
Reimplemented from QPlatformTheme.
Definition at line 486 of file qwindowstheme.cpp.
References booleanSystemParametersInfo(), QPlatformTheme::ContextMenuOnMouseRelease, QPlatformTheme::DialogButtonBoxLayout, QPlatformTheme::DialogSnapToDefaultButton, QPlatformTheme::DropShadow, dWordSystemParametersInfo(), QVariant::fromValue(), hint(), QPlatformTheme::IconPixmapSizes, QPlatformTheme::IconThemeSearchPaths, iconThemeSearchPaths(), QWindowsContext::instance(), QPlatformTheme::KeyboardScheme, QPlatformTheme::MaximumScrollBarDragDistance, QPlatformTheme::MenuBarFocusOnAltPressRelease, QPlatformTheme::MouseDoubleClickDistance, qRound(), QPlatformTheme::StyleNames, styleNames(), QPlatformTheme::TextCursorWidth, QPlatformTheme::themeHint(), QPlatformTheme::UiEffects, uiEffects(), QPlatformTheme::UseFullScreenForPopupMenu, QPlatformTheme::WheelScrollLines, QPlatformTheme::WindowsKeyboardScheme, and QPlatformDialogHelper::WinLayout.
|
static |
Definition at line 1092 of file qwindowstheme.cpp.
References doUseNativeMenus().
Referenced by QWindowsSystemTrayIcon::createMenu(), createPlatformMenu(), createPlatformMenuBar(), and createPlatformMenuItem().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 691 of file qwindowstheme.cpp.
References QWindowsDialogs::useHelper().
Definition at line 708 of file qwindowstheme.cpp.
References QWindowSystemInterface::handleThemeChange(), refresh(), and window().
|
static |
Definition at line 62 of file qwindowstheme.h.
Referenced by QWindowsIntegration::createPlatformTheme(), and QWindowsIntegration::themeNames().