Only highlight when selected
This commit is contained in:
parent
cdb32287e3
commit
916965488c
1 changed files with 2 additions and 2 deletions
|
|
@ -231,9 +231,9 @@ void SquareConnectionPainter::paint(
|
||||||
painter->drawPath(path);
|
painter->drawPath(path);
|
||||||
} else {
|
} else {
|
||||||
QColor base = selected ? style.selectedColor() : style.normalColor();
|
QColor base = selected ? style.selectedColor() : style.normalColor();
|
||||||
QColor color = activeColor(base);
|
QColor color = selected ? base : activeColor(base);
|
||||||
float width = style.lineWidth();
|
float width = style.lineWidth();
|
||||||
if (peakLevel > 0.005f)
|
if (!selected && peakLevel > 0.005f)
|
||||||
width += peakLevel * 1.5f;
|
width += peakLevel * 1.5f;
|
||||||
|
|
||||||
QPen pen;
|
QPen pen;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue