Kirigami2
imagecolors.h
77 * Note that an Item's color palette will only be extracted once unless you * call `update()`, regardless of how the item hanges.
87 * * `contrastingColor`: The color from the source image that's closest to the inverse of `color`.
93 * \note K-means clustering is used to extract these colors; see https://en.wikipedia.org/wiki/K-means_clustering.
103 Q_PROPERTY(ColorUtils::Brightness paletteBrightness READ paletteBrightness NOTIFY paletteChanged)
121 * Suggested "contrasting" color to the dominant one. It's the color in the palette nearest to the negative of the dominant
177 Q_PROPERTY(ColorUtils::Brightness fallbackPaletteBrightness MEMBER m_fallbackPaletteBrightness NOTIFY fallbackPaletteBrightnessChanged)
195 Q_PROPERTY(QColor fallbackDominantContrasting MEMBER m_fallbackDominantContrasting NOTIFY fallbackDominantContrastingChanged)
207 Q_PROPERTY(QColor fallbackForeground MEMBER m_fallbackForeground NOTIFY fallbackForegroundChanged)
213 Q_PROPERTY(QColor fallbackBackground MEMBER m_fallbackBackground NOTIFY fallbackBackgroundChanged)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QColor fallbackDominant
The value to return when dominant is not available, e.g.
Definition: imagecolors.h:189
QColor fallbackAverage
The value to return when average is not available, e.g.
Definition: imagecolors.h:183
Utilities for processing items to obtain colors and information useful for UIs that need to adjust to...
Definition: colorutils.h:18
QColor fallbackBackground
The value to return when background is not available, e.g.
Definition: imagecolors.h:213
QColor fallbackDominantContrasting
The value to return when dominantContrasting is not available, e.g.
Definition: imagecolors.h:195
QColor dominantContrast
Suggested "contrasting" color to the dominant one.
Definition: imagecolors.h:123
QVariantList fallbackPalette
The value to return when palette is not available, e.g.
Definition: imagecolors.h:171
Extracts the dominant colors from an element or an image and exports it to a color palette.
Definition: imagecolors.h:65
QColor background
A color suitable for rendering a background behind the source image.
Definition: imagecolors.h:155
Q_INVOKABLEQ_INVOKABLE
Q_SIGNALSQ_SIGNALS
QColor foreground
A color suitable for rendering text and other foreground over the source image.
Definition: imagecolors.h:144
QColor fallbackForeground
The value to return when foreground is not available, e.g.
Definition: imagecolors.h:207
ColorUtils::Brightness paletteBrightness
Information whether the palette is towards a light or dark color scheme, possible values are:
Definition: imagecolors.h:103
ColorUtils::Brightness fallbackPaletteBrightness
The value to return when paletteBrightness is not available, e.g.
Definition: imagecolors.h:177
QColor fallbackHighlight
The value to return when highlight is not available, e.g.
Definition: imagecolors.h:201
QVariantList palette
A list of colors and related information about then.
Definition: imagecolors.h:95
QObject * parent() const const
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:14:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:14:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.