Set a better selection color for the wire item

This commit is contained in:
defnax 2020-04-23 01:03:23 +02:00
parent 2620663dac
commit 98389409f6
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ void WireGroupItem::setSelected(bool on)
// set color too
if (mSelected)
{
setBackground("red");
setBackground(QColor (65, 159, 217));
}
else
{
@ -122,7 +122,7 @@ void WireGroupItem::setSelected(bool on)
}
void WireGroupItem::setBackground(QString color)
void WireGroupItem::setBackground(QColor color)
{
QWidget *tocolor = this;
QPalette p = tocolor->palette();

View File

@ -62,7 +62,7 @@ protected:
private:
void setup();
void setGroupSet();
void setBackground(QString color);
void setBackground(QColor color);
WireGroupHolder *mHolder;
RsWireGroup mGroup;