mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
Set a better selection color for the wire item
This commit is contained in:
parent
2620663dac
commit
98389409f6
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user