src/dialogs/colorselector.cpp

changeset 1323
05b3e173c900
parent 1319
39d7a9642eea
child 1326
69a90bd2dba2
equal deleted inserted replaced
1322:d8935cdb24c0 1323:05b3e173c900
51 { 51 {
52 QColor faceColor = color.faceColor(); 52 QColor faceColor = color.faceColor();
53 53
54 if (color == MainColor) 54 if (color == MainColor)
55 { 55 {
56 faceColor = ::config->mainColor(); 56 faceColor = config::mainColor();
57 faceColor.setAlphaF(::config->mainColorAlpha()); 57 faceColor.setAlphaF(config::mainColorAlpha());
58 } 58 }
59 59
60 QString edgeColor = luma(faceColor) < 80 ? "white" : "black"; 60 QString edgeColor = luma(faceColor) < 80 ? "white" : "black";
61 button->setAutoFillBackground(true); 61 button->setAutoFillBackground(true);
62 button->setStyleSheet(format( 62 button->setStyleSheet(format(

mercurial