- "black edges" now actually mean white edges when the background is dark

Mon, 23 Dec 2013 16:16:45 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 23 Dec 2013 16:16:45 +0200
changeset 592
d3cf7a23bb59
parent 591
5c8437249177
child 593
108d7d21e155

- "black edges" now actually mean white edges when the background is dark

changelog.txt file | annotate | diff | comparison | revisions
src/gldraw.cc file | annotate | diff | comparison | revisions
--- 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.
--- 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())))

mercurial