92 QPalette::ColorRole surface_role = QPalette::Window,
93 QSize size = QSize(16, 16));
103 const QColor &explicit_background,
104 QSize size = QSize(16, 16));
112 QString path = QStringLiteral(
":/svg_icons/") + QLatin1String(name) + QStringLiteral(
".svg");
133 void setTokenColors(
const QHash<ThemeManager::ThemeToken, QColor> &colors);
139 QPalette::ColorRole surface_role,
140 const QColor &explicit_background,
void setTokenColors(const QHash< ThemeManager::ThemeToken, QColor > &colors)
Paint ws:map-token colours from colors instead of the live theme.
Definition contrast_adapt_icon.cpp:483
ContrastAdaptIcon(const char *name)
Convenience constructor for creating a contrast-adapted icon from a stock name.
Definition contrast_adapt_icon.h:111
void setPalette(const QPalette &palette)
Set a custom palette for drawing this icon instead of the application palette.
Definition contrast_adapt_icon.cpp:488
ContrastAdaptIcon(const QString &svg_resource_path, QPalette::ColorRole surface_role=QPalette::Window, QSize size=QSize(16, 16))
Definition contrast_adapt_icon.cpp:456
std::shared_ptr< QHash< ThemeManager::ThemeToken, QColor > > IconTokenColorsRef
Token colour overrides shared between a ContrastAdaptIcon and its engine, so that ContrastAdaptIcon::...
Definition token_palette.h:40
std::shared_ptr< std::optional< QPalette > > IconPaletteRef
Palette override shared between an icon object and its engine, so that ThemedIcon::setPalette() / Con...
Definition token_palette.h:28