diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 25d82d5..1dd04c3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,8 @@ Fixed * Double click to zoom an item and double-clicking again should now always correctly go back to the previous position +* The outline of the rubberband selection now stays the same size + regardless of zoom 0.1.0 - 2021-07-10 diff --git a/beeref/selection.py b/beeref/selection.py index 2c7effd..8c3fb1b 100644 --- a/beeref/selection.py +++ b/beeref/selection.py @@ -610,6 +610,10 @@ class RubberbandItem(BaseItemMixin, QtWidgets.QGraphicsRectItem): color = QtGui.QColor(SELECT_COLOR) color.setAlpha(40) self.setBrush(QtGui.QBrush(color)) + pen = QtGui.QPen(QtGui.QColor(0, 0, 0)) + pen.setWidth(1) + pen.setCosmetic(True) + self.setPen(pen) def __str__(self): return (f'RubberbandItem {self.width} x {self.height}')