Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNodeViewColorScheme::Private Struct Reference

Public Member Functions

 Private ()
 

Static Public Attributes

static QVector< QColor > colorLabels
 

Detailed Description

Definition at line 19 of file kis_node_view_color_scheme.cpp.

Constructor & Destructor Documentation

◆ Private()

KisNodeViewColorScheme::Private::Private ( )
inline

Definition at line 21 of file kis_node_view_color_scheme.cpp.

21 {
22 if (colorLabels.isEmpty()) {
23 colorLabels << Qt::transparent;
24 colorLabels << QColor(91,173,220);
25 colorLabels << QColor(151,202,63);
26 colorLabels << QColor(247,229,61);
27 colorLabels << QColor(255,170,63);
28 colorLabels << QColor(177,102,63);
29 colorLabels << QColor(238,50,51);
30 colorLabels << QColor(191,106,209);
31 colorLabels << QColor(118,119,114);
32
33 const QColor noLabelSetColor = qApp->palette().color(QPalette::Highlight);
34 for (auto it = colorLabels.begin(); it != colorLabels.end(); ++it) {
35 KisPaintingTweaks::dragColor(&(*it), noLabelSetColor, 0.35);
36 }
37 }
38 }
void dragColor(QColor *color, const QColor &baseColor, qreal threshold)

References KisPaintingTweaks::dragColor().

Member Data Documentation

◆ colorLabels

QVector< QColor > KisNodeViewColorScheme::Private::colorLabels
static

Definition at line 40 of file kis_node_view_color_scheme.cpp.


The documentation for this struct was generated from the following file: