7#include <QtCore/QCache>
8#include <QtCore/QJsonArray>
9#include <QtCore/QJsonDocument>
10#include <QtCore/QJsonObject>
12#include <QtCore/QString>
13#include <QtGui/QGuiApplication>
14#include <QtGui/QPalette>
16#include <qpa/qplatformtheme.h>
The QGtk3Interface class centralizes communication with the GTK3 library.
static QLatin1String fromColorGroup(QPalette::ColorGroup group)
static QLatin1String fromWidgetType(QGtk3Interface::QGtkWidget widgetType)
static QLatin1String fromColorRole(QPalette::ColorRole role)
static constexpr QLatin1StringView cePalette
static constexpr QLatin1StringView ceColorGroup
static constexpr QLatin1StringView ceGreen
static constexpr QLatin1StringView ceBrush
static constexpr QLatin1StringView ceWidth
static GtkStateFlags toGtkState(const QString &type)
static QPalette::ColorRole toColorRole(const QString &role)
static constexpr QLatin1StringView ceBlue
static QPalette::ColorGroup toColorGroup(const QString &group)
static constexpr QLatin1StringView ceHeight
static constexpr QLatin1StringView ceColorScheme
static bool save(const QGtk3Storage::PaletteMap &map, const QString &fileName, QJsonDocument::JsonFormat format=QJsonDocument::Indented)
static constexpr QLatin1StringView ceColor
static constexpr QLatin1StringView ceGtkWidget
static constexpr QLatin1StringView ceLighter
static constexpr QLatin1StringView ceSourceType
static bool load(QGtk3Storage::PaletteMap &map, const QString &fileName)
static const QJsonDocument save(const QGtk3Storage::PaletteMap &map)
static constexpr QLatin1StringView ceData
static QLatin1String fromGdkSource(QGtk3Interface::QGtkColorSource source)
static QGtk3Interface::QGtkColorSource toGdkSource(const QString &source)
static constexpr QLatin1StringView cePalettes
static QLatin1String fromSourceType(QGtk3Storage::SourceType sourceType)
static constexpr QLatin1StringView ceRed
static QGtk3Storage::SourceType toSourceType(const QString &sourceType)
static constexpr QLatin1StringView ceColorRole
static QPlatformTheme::Palette toPalette(const QString &palette)
static QColor toColor(const QString &Color)
static QGtk3Interface::QGtkWidget toWidgetType(const QString &widgetType)
static Qt::ColorScheme toColorScheme(const QString &colorScheme)
static constexpr QLatin1StringView ceBrushes
static QLatin1String fromColorScheme(Qt::ColorScheme colorScheme)
static QLatin1String fromGtkState(GtkStateFlags type)
static constexpr QLatin1StringView ceGdkSource
static constexpr QLatin1StringView ceGtkState
static QLatin1String fromColor(const QColor &Color)
QFlatMap< QPlatformTheme::Palette, BrushMap > PaletteMap
QFlatMap< TargetBrush, Source > BrushMap
SourceType
This enum represents the type of a color source.
#define GETINT(obj, key, var)
QColor toColor(const QStringView &color)
QLatin1String fromColor(const QColor &color)