From: Joel Holdsworth Date: Sun, 31 Mar 2013 08:29:30 +0000 (+0100) Subject: Set the colour of the ruler hover marker to the correct palette colour X-Git-Tag: pulseview-0.1.0~63 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ad1d8e2b737106c3210706a8ee8c537dbd438bfb;p=pulseview.git Set the colour of the ruler hover marker to the correct palette colour --- diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index adab57db..eb658e48 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -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[] = {