# HG changeset patch # User Santeri Piippo # Date 1387808205 -7200 # Node ID d3cf7a23bb59757f42cf7463f1911e07c9b126e1 # Parent 5c8437249177cb5493681508fa6eceb4ed214225 - "black edges" now actually mean white edges when the background is dark diff -r 5c8437249177 -r d3cf7a23bb59 changelog.txt --- a/changelog.txt Mon Dec 23 16:13:09 2013 +0200 +++ b/changelog.txt Mon Dec 23 16:16:45 2013 +0200 @@ -45,6 +45,7 @@ path now as well if necessary instead of just ignoring it and not adding the edgelines. - Added a configuration option for line anti-aliasing. - BFC red/green view and black edges no longer default to true. +- When the background is dark, the "black edges" option actually means "white edges" now. - If the vertex snapper finds a vertex closer than 4 pixels, it likely is the vertex being looked for and the algorithm can terminate early, hopefully this will save a few cycles on large parts. - The camera icons now draw real tooltips instead of emulated ones. diff -r 5c8437249177 -r d3cf7a23bb59 src/gldraw.cc --- a/src/gldraw.cc Mon Dec 23 16:13:09 2013 +0200 +++ b/src/gldraw.cc Mon Dec 23 16:16:45 2013 +0200 @@ -312,7 +312,7 @@ } if (obj->getColor() == edgecolor) - { qcol = luma (m_bgcolor) < 40 ? QColor (64, 64, 64) : Qt::black; + { qcol = (m_darkbg == false) ? Qt::black : Qt::white; LDColor* col; if (!gl_blackedges && obj->getParent() && (col = getColor (obj->getParent()->getColor())))