Kirigami2
imagecolors.h
100 * * `contrastingColor`: The color from the source image that's closest to the inverse of `color`.
106 * \note K-means clustering is used to extract these colors; see https://en.wikipedia.org/wiki/K-means_clustering.
116 Q_PROPERTY(ColorUtils::Brightness paletteBrightness READ paletteBrightness NOTIFY paletteChanged FINAL)
134 * Suggested "contrasting" color to the dominant one. It's the color in the palette nearest to the negative of the dominant
184 Q_PROPERTY(QList<PaletteSwatch> fallbackPalette MEMBER m_fallbackPalette NOTIFY fallbackPaletteChanged FINAL)
190 Q_PROPERTY(ColorUtils::Brightness fallbackPaletteBrightness MEMBER m_fallbackPaletteBrightness NOTIFY fallbackPaletteBrightnessChanged FINAL)
202 Q_PROPERTY(QColor fallbackDominant MEMBER m_fallbackDominant NOTIFY fallbackDominantChanged FINAL)
208 Q_PROPERTY(QColor fallbackDominantContrasting MEMBER m_fallbackDominantContrasting NOTIFY fallbackDominantContrastingChanged FINAL)
214 Q_PROPERTY(QColor fallbackHighlight MEMBER m_fallbackHighlight NOTIFY fallbackHighlightChanged FINAL)
220 Q_PROPERTY(QColor fallbackForeground MEMBER m_fallbackForeground NOTIFY fallbackForegroundChanged FINAL)
226 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:77
QColor fallbackDominant
The value to return when dominant is not available, e.g.
Definition imagecolors.h:202
ColorUtils::Brightness fallbackPaletteBrightness
The value to return when paletteBrightness is not available, e.g.
Definition imagecolors.h:190
QML_ELEMENTQVariant source
The source from which colors should be extracted from.
Definition imagecolors.h:92
QColor foreground
A color suitable for rendering text and other foreground over the source image.
Definition imagecolors.h:157
QColor fallbackAverage
The value to return when average is not available, e.g.
Definition imagecolors.h:196
QColor fallbackBackground
The value to return when background is not available, e.g.
Definition imagecolors.h:226
QList< PaletteSwatch > palette
A list of colors and related information about then.
Definition imagecolors.h:108
QColor fallbackForeground
The value to return when foreground is not available, e.g.
Definition imagecolors.h:220
QColor dominantContrast
Suggested "contrasting" color to the dominant one.
Definition imagecolors.h:136
ColorUtils::Brightness paletteBrightness
Information whether the palette is towards a light or dark color scheme, possible values are:
Definition imagecolors.h:116
QColor fallbackDominantContrasting
The value to return when dominantContrasting is not available, e.g.
Definition imagecolors.h:208
QColor background
A color suitable for rendering a background behind the source image.
Definition imagecolors.h:168
QList< PaletteSwatch > fallbackPalette
The value to return when palette is not available, e.g.
Definition imagecolors.h:184
QColor fallbackHighlight
The value to return when highlight is not available, e.g.
Definition imagecolors.h:214
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.