]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewitem.cpp
ViewItem: Adjust the threshold between dark and light colors
[pulseview.git] / pv / view / viewitem.cpp
index 55243860c0f4b342c86238fb9bae3f07968acf29..a9c9b3dd8095673a8ef73717e965a2c4163ef13b 100644 (file)
@@ -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