src/dialogs/colorselector.cpp

changeset 1192
317f4ce38f3f
parent 1175
7cf1dbf97d90
child 1194
99085cfaeabd
equal deleted inserted replaced
1191:26b3f1e80a9c 1192:317f4ce38f3f
53 { 53 {
54 QColor faceColor = color.faceColor(); 54 QColor faceColor = color.faceColor();
55 55
56 if (color == MainColor) 56 if (color == MainColor)
57 { 57 {
58 faceColor = m_config->mainColor(); 58 faceColor = configuration().mainColor();
59 faceColor.setAlphaF(m_config->mainColorAlpha()); 59 faceColor.setAlphaF(configuration().mainColorAlpha());
60 } 60 }
61 61
62 QString edgeColor = luma(faceColor) < 80 ? "white" : "black"; 62 QString edgeColor = luma(faceColor) < 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