Commit dfa67d56 authored by Scott Petrovic's avatar Scott Petrovic Committed by Scott Petrovic
Browse files

make the "no color" X on the layer context menu theme-able and easier to see

Signed-off-by: Scott Petrovic's avatarScott Petrovic <>
parent 9c0b6591
......@@ -251,9 +251,11 @@ void drawToolButton(QWidget *widget, const QRect &rc, State state, const QColor
p.fillRect(colorBlobRect, fillColor);
} else {
// draw an X for no color for the first item
QRect crossRect = kisGrowRect(colorBlobRect, -offset);
QColor shade = opt.palette.dark().color();
QColor shade = opt.palette.text().color();
p.setPen(QPen(shade, 2));
p.drawLine(crossRect.topLeft(), crossRect.bottomRight());
p.drawLine(crossRect.bottomLeft(), crossRect.topRight());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment