]> sigrok.org Git - pulseview.git/commitdiff
Set the colour of the ruler hover marker to the correct palette colour
authorJoel Holdsworth <redacted>
Sun, 31 Mar 2013 08:29:30 +0000 (09:29 +0100)
committerJoel Holdsworth <redacted>
Sun, 31 Mar 2013 08:29:30 +0000 (09:29 +0100)
pv/view/ruler.cpp

index adab57dbed21344dab3cf39a072492a40950e82f..eb658e484bb4af8ec9f522a34869731144005230 100644 (file)
@@ -223,7 +223,7 @@ void Ruler::draw_hover_mark(QPainter &p)
                return;
 
        p.setPen(QPen(Qt::NoPen));
-       p.setBrush(QBrush(QColor(Qt::black)));
+       p.setBrush(QBrush(palette().color(foregroundRole())));
 
        const int b = height() - 1;
        const QPointF points[] = {