11void initDashedStyle(
const QColor &baseColor,
const QColor &handleFill,
KisHandleStyle *style) {
16 ants.setColor(baseColor);
21 QPen handlePen(baseColor);
22 handlePen.setWidth(2);
23 handlePen.setCosmetic(
true);
24 handlePen.setJoinStyle(Qt::RoundJoin);
29static const QColor primaryColor(0, 0, 90, 180);
30static const QColor secondaryColor(0, 0, 255, 127);
31static const QColor gradientFillColor(255, 197, 39);
32static const QColor highlightColor(255, 100, 100);
33static const QColor highlightOutlineColor(155, 0, 0);
34static const QColor selectionColor(164, 227, 243);
41 static QScopedPointer<KisHandleStyle> style;
54 static QScopedPointer<KisHandleStyle> style;
58 initDashedStyle(primaryColor, Qt::white, style.data());
66 static QScopedPointer<KisHandleStyle> style;
70 initDashedStyle(secondaryColor, Qt::white, style.data());
78 static QScopedPointer<KisHandleStyle> style;
82 initDashedStyle(primaryColor, gradientFillColor, style.data());
96 static QScopedPointer<KisHandleStyle> style;
100 initDashedStyle(highlightOutlineColor, highlightColor, style.data());
108 static QScopedPointer<KisHandleStyle> style;
112 QPen h = QPen(highlightOutlineColor, 2);
115 QPen l = QPen(highlightOutlineColor, 1);
117 l.setJoinStyle(Qt::RoundJoin);
126 static QScopedPointer<KisHandleStyle> style;
130 initDashedStyle(highlightOutlineColor, selectionColor, style.data());
138 static QScopedPointer<KisHandleStyle> style;
142 initDashedStyle(primaryColor, selectionColor, style.data());
static KisHandleStyle & inheritStyle()
static KisHandleStyle & gradientHandles()
static KisHandleStyle & highlightedPrimaryHandlesWithSolidOutline()
static KisHandleStyle & highlightedPrimaryHandles()
static KisHandleStyle & gradientArrows()
static KisHandleStyle & selectedPrimaryHandles()
QVector< IterationStyle > lineIterations
static KisHandleStyle & partiallyHighlightedPrimaryHandles()
static KisHandleStyle & secondarySelection()
static KisHandleStyle & primarySelection()
QVector< IterationStyle > handleIterations
void initAntsPen(QPen *antsPen, QPen *outlinePen, int antLength, int antSpace)