From: Joel Holdsworth Date: Sun, 3 Mar 2013 09:55:03 +0000 (+0000) Subject: Set the colour of ruler annotations to the correct palette colour X-Git-Tag: pulseview-0.1.0~117 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=d2caed8d652ded997255a881bbe246ee68235448 Set the colour of ruler annotations to the correct palette colour --- diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index f4cbc1ca..97a0d8f1 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -88,7 +88,7 @@ void Ruler::paintEvent(QPaintEvent*) Qt::AlignLeft | Qt::AlignTop, "8").height(); // Draw the tick marks - p.setPen(Qt::black); + p.setPen(palette().color(foregroundRole())); const double minor_tick_period = tick_period / MinorTickSubdivision; const double first_major_division =