--- a/src/GLCompiler.cc Mon Mar 10 00:53:39 2014 +0200 +++ b/src/GLCompiler.cc Mon Mar 10 01:02:51 2014 +0200 @@ -9,6 +9,8 @@ #include "GLRenderer.h" #include "Dialogs.h" +cfg (String, gl_selectcolor, "#0080FF") + struct GLErrorInfo { GLenum value; @@ -165,12 +167,11 @@ if (topobj->isSelected()) { - // Brighten it up if selected. - const int add = 51; - - qcol.setRed (min (qcol.red() + add, 255)); - qcol.setGreen (min (qcol.green() + add, 255)); - qcol.setBlue (min (qcol.blue() + add, 255)); + // Brighten it up for the select list. + QColor selcolor (gl_selectcolor); + qcol.setRed ((qcol.red() + selcolor.red()) / 2); + qcol.setGreen ((qcol.green() + selcolor.green()) / 2); + qcol.setBlue ((qcol.blue() + selcolor.blue()) / 2); } return qcol;