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

View File

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