Kirigami2
imagecolors.h
78 * Note that an Item's color palette will only be extracted once unless you * call `update()`, regardless of how the item hanges.
88 * * `contrastingColor`: The color from the source image that's closest to the inverse of `color`.
94 * \note K-means clustering is used to extract these colors; see https://en.wikipedia.org/wiki/K-means_clustering.
104 Q_PROPERTY(ColorUtils::Brightness paletteBrightness READ paletteBrightness NOTIFY paletteChanged FINAL)
122 * Suggested "contrasting" color to the dominant one. It's the color in the palette nearest to the negative of the dominant
172 Q_PROPERTY(QVariantList fallbackPalette MEMBER m_fallbackPalette NOTIFY fallbackPaletteChanged FINAL)
178 Q_PROPERTY(ColorUtils::Brightness fallbackPaletteBrightness MEMBER m_fallbackPaletteBrightness NOTIFY fallbackPaletteBrightnessChanged FINAL)
190 Q_PROPERTY(QColor fallbackDominant MEMBER m_fallbackDominant NOTIFY fallbackDominantChanged FINAL)
196 Q_PROPERTY(QColor fallbackDominantContrasting MEMBER m_fallbackDominantContrasting NOTIFY fallbackDominantContrastingChanged FINAL)
202 Q_PROPERTY(QColor fallbackHighlight MEMBER m_fallbackHighlight NOTIFY fallbackHighlightChanged FINAL)
208 Q_PROPERTY(QColor fallbackForeground MEMBER m_fallbackForeground NOTIFY fallbackForegroundChanged FINAL)
214 Q_PROPERTY(QColor fallbackBackground MEMBER m_fallbackBackground NOTIFY fallbackBackgroundChanged FINAL)
Utilities for processing items to obtain colors and information useful for UIs that need to adjust to...
Definition colorutils.h:21
Extracts the dominant colors from an element or an image and exports it to a color palette.
Definition imagecolors.h:66
QColor fallbackDominant
The value to return when dominant is not available, e.g.
Definition imagecolors.h:190
ColorUtils::Brightness fallbackPaletteBrightness
The value to return when paletteBrightness is not available, e.g.
Definition imagecolors.h:178
QML_ELEMENTQVariant source
The source from which colors should be extracted from.
Definition imagecolors.h:80
QColor foreground
A color suitable for rendering text and other foreground over the source image.
Definition imagecolors.h:145
QVariantList fallbackPalette
The value to return when palette is not available, e.g.
Definition imagecolors.h:172
QColor fallbackAverage
The value to return when average is not available, e.g.
Definition imagecolors.h:184
QColor fallbackBackground
The value to return when background is not available, e.g.
Definition imagecolors.h:214
QColor fallbackForeground
The value to return when foreground is not available, e.g.
Definition imagecolors.h:208
QColor dominantContrast
Suggested "contrasting" color to the dominant one.
Definition imagecolors.h:124
ColorUtils::Brightness paletteBrightness
Information whether the palette is towards a light or dark color scheme, possible values are:
Definition imagecolors.h:104
QColor fallbackDominantContrasting
The value to return when dominantContrasting is not available, e.g.
Definition imagecolors.h:196
QColor background
A color suitable for rendering a background behind the source image.
Definition imagecolors.h:156
QColor fallbackHighlight
The value to return when highlight is not available, e.g.
Definition imagecolors.h:202
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
T qobject_cast(QObject *object)
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.