| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QGTK3THEME_H |
| 5 | #define QGTK3THEME_H |
| 6 | |
| 7 | #include <private/qtguiglobal_p.h> |
| 8 | #include <private/qgenericunixthemes_p.h> |
| 9 | #include "qgtk3storage_p.h" |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | class QGtk3Theme : public QGnomeTheme |
| 14 | { |
| 15 | public: |
| 16 | QGtk3Theme(); |
| 17 | |
| 18 | virtual QVariant themeHint(ThemeHint hint) const override; |
| 19 | virtual QString gtkFontName() const override; |
| 20 | |
| 21 | Qt::ColorScheme colorScheme() const override; |
| 22 | |
| 23 | bool usePlatformNativeDialog(DialogType type) const override; |
| 24 | QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; |
| 25 | |
| 26 | const QPalette *palette(Palette type = SystemPalette) const override; |
| 27 | const QFont *font(Font type = SystemFont) const override; |
| 28 | QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override; |
| 29 | QIcon fileIcon(const QFileInfo &fileInfo, |
| 30 | QPlatformTheme::IconOptions iconOptions = { }) const override; |
| 31 | |
| 32 | static const char *name; |
| 33 | private: |
| 34 | static bool useNativeFileDialog(); |
| 35 | std::unique_ptr<QGtk3Storage> m_storage; |
| 36 | }; |
| 37 | |
| 38 | QT_END_NAMESPACE |
| 39 | |
| 40 | #endif // QGTK3THEME_H |
| 41 |
