From 861fbe9a2bef86ff40aacfaff280c2cc6d1fcde5 Mon Sep 17 00:00:00 2001 From: "Zhang Ch. N" Date: Sat, 30 Apr 2022 14:38:55 +0800 Subject: [PATCH] UX: Increase size of vertex controls around shape (#863) * Increase shape vertex control size * Increase canvas epsilon --- libs/canvas.py | 2 +- libs/shape.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/canvas.py b/libs/canvas.py index 1107b5fa..98deba62 100644 --- a/libs/canvas.py +++ b/libs/canvas.py @@ -31,7 +31,7 @@ class Canvas(QWidget): CREATE, EDIT = list(range(2)) - epsilon = 11.0 + epsilon = 24.0 def __init__(self, *args, **kwargs): super(Canvas, self).__init__(*args, **kwargs) diff --git a/libs/shape.py b/libs/shape.py index 361f2af8..55866c5b 100644 --- a/libs/shape.py +++ b/libs/shape.py @@ -34,7 +34,7 @@ class Shape(object): vertex_fill_color = DEFAULT_VERTEX_FILL_COLOR h_vertex_fill_color = DEFAULT_HVERTEX_FILL_COLOR point_type = P_ROUND - point_size = 8 + point_size = 16 scale = 1.0 label_font_size = 8