diff -r 1d03dc1173cd -r 08dc62e03a6d src/gl/compiler.cpp --- a/src/gl/compiler.cpp Sun Feb 02 00:49:32 2020 +0200 +++ b/src/gl/compiler.cpp Sun Feb 02 00:50:57 2020 +0200 @@ -224,7 +224,7 @@ else if (polygon.color == ldraw::edgeColor) { // Edge color is black, unless we have a dark background, in which case lines need to be bright. - color = Qt::black; //luma(config::backgroundColor()) > 40 ? Qt::black : Qt::white; + color = luma(preferences.backgroundColor) > (40.0 / 256.0) ? Qt::black : Qt::white; } else {