src/dialogs/colorselector.cpp

changeset 1017
fc1c13db9618
parent 1014
f0a8ecb6a357
child 1072
9ce9496427f2
equal deleted inserted replaced
1016:3b279b5e57d3 1017:fc1c13db9618
53 { 53 {
54 QColor color (ldcolor.faceColor()); 54 QColor color (ldcolor.faceColor());
55 55
56 if (ldcolor == MainColor) 56 if (ldcolor == MainColor)
57 { 57 {
58 color = QColor (Config->mainColor()); 58 color = QColor (m_config->mainColor());
59 color.setAlphaF (Config->mainColorAlpha()); 59 color.setAlphaF (m_config->mainColorAlpha());
60 } 60 }
61 61
62 QString color2name (luma (color) < 80 ? "white" : "black"); 62 QString color2name (luma (color) < 80 ? "white" : "black");
63 button->setAutoFillBackground (true); 63 button->setAutoFillBackground (true);
64 button->setStyleSheet (format ("background-color: rgba(%1, %2, %3, %4); color: %5", 64 button->setStyleSheet (format ("background-color: rgba(%1, %2, %3, %4); color: %5",

mercurial