src/dialogs/colorselector.cpp

changeset 996
9ecc878c7dea
parent 984
a7b6f987d269
child 1010
969b48eddd6b
--- a/src/dialogs/colorselector.cpp	Sun Sep 06 20:45:51 2015 +0300
+++ b/src/dialogs/colorselector.cpp	Tue Sep 22 00:59:21 2015 +0300
@@ -59,7 +59,7 @@
 				color.setAlphaF (m_config->mainColorAlpha());
 			}
 
-			QString color2name (Luma (color) < 80 ? "white" : "black");
+			QString color2name (luma (color) < 80 ? "white" : "black");
 			button->setAutoFillBackground (true);
 			button->setStyleSheet (format ("background-color: rgba(%1, %2, %3, %4); color: %5",
 				color.red(), color.green(), color.blue(), color.alpha(), color2name));

mercurial