From 3f404af06942053a2b45600cb2f36ac9bdfc883e Mon Sep 17 00:00:00 2001 From: duan_j Date: Fri, 18 Sep 2026 15:09:09 +0200 Subject: [PATCH] style: have the cross hair not too long, just a small cross Anuschka and Katherine really need it --- src/aare/gui/widgets/camera_image.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aare/gui/widgets/camera_image.py b/src/aare/gui/widgets/camera_image.py index 93c820b9..bd6d417b 100644 --- a/src/aare/gui/widgets/camera_image.py +++ b/src/aare/gui/widgets/camera_image.py @@ -1455,12 +1455,12 @@ class SampleCameraImageLabel(QGraphicsView): ) ) if self._show_beam_crosshair: - # Same pen as the box so the crosshair follows the beam state color. - r = self.sceneRect() + # Anuschka and Katherine really want a crosshair at 10s + arm = 33 cx = int(self._geom.beam_location_pxl.x) cy = int(self._geom.beam_location_pxl.y) - painter.drawLine(int(r.left()), cy, int(r.right()), cy) - painter.drawLine(cx, int(r.top()), cx, int(r.bottom())) + painter.drawLine(cx - arm, cy, cx + arm, cy) + painter.drawLine(cx, cy - arm, cx, cy + arm) @staticmethod def _draw_circle(painter, coord: Coordinate, color: QColor, radius=10):