Sepecifies which colors will be used when recoloring icons as its stylesheet.
More...
#include <kiconcolors.h>
|
| KIconColors () |
| Will fill the colors based on the default QPalette() constructor.
|
|
| KIconColors (const KIconColors &other) |
|
| KIconColors (const QColor &colors) |
| Makes all the color property be colors .
|
|
| KIconColors (const QPalette &palette) |
| Uses @palette to define text, highlight, highlightedText and background.
|
|
QColor | activeText () const |
|
QColor | background () const |
|
QColor | highlight () const |
|
QColor | highlightedText () const |
|
QColor | negativeText () const |
|
QColor | neutralText () const |
|
KIconColors | operator= (const KIconColors &other) |
|
QColor | positiveText () const |
|
void | setActiveText (const QColor &color) |
|
void | setBackground (const QColor &color) |
|
void | setHighlight (const QColor &color) |
|
void | setHighlightedText (const QColor &color) |
|
void | setNegativeText (const QColor &color) |
|
void | setNeutralText (const QColor &color) |
|
void | setPositiveText (const QColor &color) |
|
void | setText (const QColor &color) |
|
QColor | text () const |
|
Sepecifies which colors will be used when recoloring icons as its stylesheet.
KIconLoader supports re-coloring svg icons based on a set of colors. This class will define them.
- See also
- KIconEngine
-
KDE::icon
◆ KIconColors() [1/3]
KIconColors::KIconColors |
( |
| ) |
|
Will fill the colors based on the default QPalette() constructor.
◆ KIconColors() [2/3]
KIconColors::KIconColors |
( |
const QColor & |
colors | ) |
|
|
explicit |
Makes all the color property be colors
.
◆ KIconColors() [3/3]
KIconColors::KIconColors |
( |
const QPalette & |
palette | ) |
|
|
explicit |
Uses @palette to define text, highlight, highlightedText and background.
The rest being positiveText, negativeText and neutralText are filled from KColorScheme(QPalette::Active, KColorScheme::Window);
◆ stylesheet()
- Returns
- a CSS stylesheet to be used SVG icon files.
- Parameters
-
state | defines the state we are rendering the stylesheet for |
Specifies: .ColorScheme-Text, .ColorScheme-Background, .ColorScheme-Highlight, .ColorScheme-HighlightedText, .ColorScheme-PositiveText, .ColorScheme-NeutralText .ColorScheme-NegativeText, .ColorScheme-ActiveText, .ColorScheme-Complement, .ColorScheme-Contrast