From d2caed8d652ded997255a881bbe246ee68235448 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 3 Mar 2013 09:55:03 +0000 Subject: [PATCH] Set the colour of ruler annotations to the correct palette colour --- pv/view/ruler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.30.2