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 | QPlatformMenu* createPlatformMenu() const override; |
27 | QPlatformMenuItem* createPlatformMenuItem() const override; |
28 | |
29 | const QPalette *palette(Palette type = SystemPalette) const override; |
30 | const QFont *font(Font type = SystemFont) const override; |
31 | QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override; |
32 | QIcon fileIcon(const QFileInfo &fileInfo, |
33 | QPlatformTheme::IconOptions iconOptions = { }) const override; |
34 | |
35 | static const char *name; |
36 | private: |
37 | static bool useNativeFileDialog(); |
38 | std::unique_ptr<QGtk3Storage> m_storage; |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // QGTK3THEME_H |
44 |