X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewitem.cpp;h=a9c9b3dd8095673a8ef73717e965a2c4163ef13b;hb=dbf74f26f6bd9fd5277f090fea8e4f5506c19911;hp=1492d14d8d1d45851769dadb6f9af9278c50ae98;hpb=7708eb92ca87836f5d4987899e0fbb7a4e2335b4;p=pulseview.git diff --git a/pv/view/viewitem.cpp b/pv/view/viewitem.cpp index 1492d14d..a9c9b3dd 100644 --- a/pv/view/viewitem.cpp +++ b/pv/view/viewitem.cpp @@ -33,7 +33,7 @@ const QSizeF ViewItem::LabelPadding(4, 0); const int ViewItem::HighlightRadius = 3; ViewItem::ViewItem() : - context_parent_(NULL), + context_parent_(nullptr), drag_point_(INT_MIN, INT_MIN), selected_(false) { @@ -107,7 +107,7 @@ void ViewItem::paint_fore(QPainter &p, const ViewItemPaintParams &pp) QColor ViewItem::select_text_colour(QColor background) { - return (background.lightness() > 64) ? Qt::black : Qt::white; + return (background.lightness() > 110) ? Qt::black : Qt::white; } } // namespace view