src/widgets/colorbutton.cpp

changeset 1396
3442a59ab05c
parent 1395
23551de3da36
equal deleted inserted replaced
1395:23551de3da36 1396:3442a59ab05c
53 [&](LDColor) 53 [&](LDColor)
54 { 54 {
55 if (_color.isValid()) 55 if (_color.isValid())
56 { 56 {
57 setFlat(true); 57 setFlat(true);
58 setText(_color.name()); 58 setText(format("[%1] %2", _color.indexString(), _color.name()));
59 setStyleSheet(format( 59 setStyleSheet(format(
60 "background-color: %1; color: %2; border:none;", 60 "background-color: %1; color: %2; border:none;",
61 _color.hexcode(), 61 _color.hexcode(),
62 _color.edgeColor().name() 62 _color.edgeColor().name()
63 )); 63 ));

mercurial