From 1b6ea20220b17017962a50d047c17443220a840a Mon Sep 17 00:00:00 2001 From: Marius Kriegerowski Date: Tue, 8 May 2018 16:21:43 +0200 Subject: [PATCH] marker: more alpha for center box in extended marker uncertainty --- src/gui/marker.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/marker.py b/src/gui/marker.py index 6f0ccc82c..9bd901566 100644 --- a/src/gui/marker.py +++ b/src/gui/marker.py @@ -719,8 +719,8 @@ def draw_trace(self, viewer, p, tr, time_projection, track_projection, color = self.select_color(self.color_b) - def draw_box(tmin, tmax): - fill_brush = qg.QBrush(qg.QColor(*color + (50, ))) + def draw_box(tmin, tmax, alpha=50): + fill_brush = qg.QBrush(qg.QColor(*color + (alpha, ))) p.setBrush(fill_brush) dvmin, dvmax = track_projection.get_out_range() dtmin = time_projection.clipped(tmin) @@ -729,7 +729,9 @@ def draw_box(tmin, tmax): p.fillRect(rect, fill_brush) if self._uncertainty: - draw_box(self.tmin-self._uncertainty, self.tmax+self._uncertainty) + draw_box(self.tmin, self.tmin - self._uncertainty) + draw_box(self.tmax, self.tmax + self._uncertainty) + draw_box(self.tmin, self.tmax, alpha=35) Marker.draw_trace( self, viewer, p, tr, time_projection, track_projection, gain,