Skip to content

Commit

Permalink
Reduce the size of connection nodes (#11259)
Browse files Browse the repository at this point in the history
Changed the connection outline size from 2 to 1
  • Loading branch information
adeas31 committed Sep 27, 2023
1 parent 6e4fded commit c77f816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp
Expand Up @@ -757,7 +757,7 @@ void LineAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
painter->save();
painter->setPen(Qt::NoPen);
painter->setBrush(QBrush(mLineColor));
painter->drawEllipse(intersectionPoint, 1, 1);
painter->drawEllipse(intersectionPoint, 0.75, 0.75);
painter->restore();
}
}
Expand Down Expand Up @@ -791,10 +791,10 @@ void LineAnnotation::drawAnnotation(QPainter *painter, bool scene)

// draw highlight for connections
if (mLineType == LineAnnotation::ConnectionType) {
qreal strokeWidth = 2.0;
qreal strokeWidth = 1.0;
QColor strokeColor = Qt::white;
if (isSelected()) {
strokeWidth = 3.0;
strokeWidth = 2.0;
strokeColor = QColor(255, 255, 128);
}

Expand Down

0 comments on commit c77f816

Please sign in to comment.