6#include <QtCore/QStringList>
7#include <QtCore/QVariant>
8#include <QtCore/private/qcore_mac_p.h>
11#include <QtGui/private/qcoregraphics_p.h>
13#include <QtGui/private/qcoretextfontdatabase_p.h>
14#include <QtGui/private/qguiapplication_p.h>
15#include <qpa/qplatformintegration.h>
17#include <UIKit/UIFont.h>
18#include <UIKit/UIInterface.h>
38 UIContentSizeCategoryDidChangeNotification, [] {
39 qCDebug(lcQpaFonts) <<
"Contents size category changed to" << UIApplication.sharedApplication.preferredContentSizeCategory;
73 if (@available(ios 15.0, *))
80 return &s_systemPalette;
153 UIUserInterfaceStyle appearance = UIScreen.mainScreen.traitCollection.userInterfaceStyle;
157 appearance =
static_cast<QUIWindow*
>(
window).traitCollection.userInterfaceStyle;
162 return appearance == UIUserInterfaceStyleDark
170 const auto *coreTextFontDatabase =
static_cast<QCoreTextFontDatabase *
>(platformIntegration->fontDatabase());
The QColor class provides colors based on RGB, HSV or CMYK values.
QFont * themeFont(QPlatformTheme::Font) const
static QPlatformIntegration * platformIntegration()
QPlatformMenu * createPlatformMenu() const override
const QFont * font(Font type=SystemFont) const override
QVariant themeHint(ThemeHint hint) const override
static void initializeSystemPalette()
Qt::ColorScheme colorScheme() const override
bool usePlatformNativeDialog(DialogType type) const override
QPlatformMenuItem * createPlatformMenuItem() const override
const QPalette * palette(Palette type=SystemPalette) const override
QPlatformDialogHelper * createPlatformDialogHelper(DialogType type) const override
The QPalette class contains color groups for each widget state.
void setBrush(ColorRole cr, const QBrush &brush)
Sets the brush for the given color role to the specified brush for all groups in the palette.
Combined button and popup list for selecting options.
bool qt_apple_isApplicationExtension()
AppleApplication * qt_apple_sharedApplication()
QBrush qt_mac_toQBrush(CGColorRef color)
#define qCDebug(category,...)
#define QStringLiteral(str)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)