]> sigrok.org Git - pulseview.git/commitdiff
Set the colour of ruler annotations to the correct palette colour
authorJoel Holdsworth <redacted>
Sun, 3 Mar 2013 09:55:03 +0000 (09:55 +0000)
committerUwe Hermann <redacted>
Sun, 3 Mar 2013 16:18:20 +0000 (17:18 +0100)
pv/view/ruler.cpp

index f4cbc1cab5a0cf1c3784b07b3570ff1b9f4b03d2..97a0d8f1d7b89c2c01cdae488715b2a4cf715f81 100644 (file)
@@ -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 =