diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-10-12 21:38:25 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-12-02 15:57:11 +0100 |
commit | 4ca8a6840842d5ff948f4c6e24cabe2e227062e3 (patch) | |
tree | 405d9dd4732ad51ab57f4a1659aba0f3122b61f3 /src/plugins/platformthemes/gtk3/qgtk3theme.h | |
parent | 96628b1254233456e542d60672b96fe6a65a0797 (diff) |
Re-implement palette, standardPixmap, file icons, fonts in QGtk3Theme
Read theme colors from GTK3 style context and build platform theme
palettes in Qt.
React to runtime theme changes.
Re-implement methods to retrieve GTK3 styled standardPixmaps, fonts
and file icons.
Task-number: QTBUG-62510
Change-Id: Ib58d1614850764f2e88cca33883fd6c426b35aee
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'src/plugins/platformthemes/gtk3/qgtk3theme.h')
-rw-r--r-- | src/plugins/platformthemes/gtk3/qgtk3theme.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.h b/src/plugins/platformthemes/gtk3/qgtk3theme.h index ca78f9c709..0071df9cea 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.h +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.h @@ -6,6 +6,7 @@ #include <private/qtguiglobal_p.h> #include <private/qgenericunixthemes_p.h> +#include "qgtk3storage_p.h" QT_BEGIN_NAMESPACE @@ -25,9 +26,16 @@ public: QPlatformMenu* createPlatformMenu() const override; QPlatformMenuItem* createPlatformMenuItem() const override; + const QPalette *palette(Palette type = SystemPalette) const override; + const QFont *font(Font type = SystemFont) const override; + QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override; + QIcon fileIcon(const QFileInfo &fileInfo, + QPlatformTheme::IconOptions iconOptions = { }) const override; + static const char *name; private: static bool useNativeFileDialog(); + std::unique_ptr<QGtk3Storage> m_storage; }; QT_END_NAMESPACE |