// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QIOSTHEME_H #define QIOSTHEME_H #include #include #include #include QT_BEGIN_NAMESPACE class QIOSTheme : public QPlatformTheme { public: QIOSTheme(); ~QIOSTheme(); const QPalette *palette(Palette type = SystemPalette) const override; QVariant themeHint(ThemeHint hint) const override; Qt::ColorScheme colorScheme() const override; #if !defined(Q_OS_TVOS) && !defined(Q_OS_VISIONOS) QPlatformMenuItem* createPlatformMenuItem() const override; QPlatformMenu* createPlatformMenu() const override; #endif bool usePlatformNativeDialog(DialogType type) const override; QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; const QFont *font(Font type = SystemFont) const override; QIconEngine *createIconEngine(const QString &iconName) const override; static const char *name; static void initializeSystemPalette(); private: static QPalette s_systemPalette; QMacNotificationObserver m_contentSizeCategoryObserver; }; QT_END_NAMESPACE #endif