Skip to content

Commit

Permalink
feat: set alpha value of RubberBand
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Jan 29, 2024
1 parent ec2d828 commit 718480a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ def create_rubber_band(self):
self.rubber_band.reset()
route_layer = router.route_as_layer(self)
self.rubber_band = QgsRubberBand(self._iface.mapCanvas(), QgsWkbTypes.LineGeometry)
self.rubber_band.setStrokeColor(QColor(ROUTE_COLOR))
color = QColor(ROUTE_COLOR)
color.setAlpha(100)
self.rubber_band.setStrokeColor(color)
self.rubber_band.setWidth(5)

features = route_layer.getFeatures()
Expand Down

0 comments on commit 718480a

Please sign in to comment.