- added ability to change the mouse cursor color on the fly

- in Distance Plugin made sure that the 'big cursor' (when is used) is black in color (visible in most situations)
- in Distance Plugin, for the 2D graphic mode activated the utility line
This commit is contained in:
Marius Stanciu
2022-03-29 02:14:44 +03:00
committed by Marius
parent aefd66f02b
commit a3f9d7c248
13 changed files with 145 additions and 84 deletions

View File

@@ -5741,7 +5741,7 @@ class App(QtCore.QObject):
if self.grid_status():
# Update cursor
self.app_cursor.set_data(np.asarray([(location[0], location[1])]),
symbol='++', edge_color=self.cursor_color_3D,
symbol='++', edge_color=self.plotcanvas.cursor_color,
edge_width=self.options["global_cursor_width"],
size=self.options["global_cursor_size"])
@@ -5857,7 +5857,7 @@ class App(QtCore.QObject):
if self.grid_status():
# Update cursor
self.app_cursor.set_data(np.asarray([(location[0], location[1])]),
symbol='++', edge_color=self.cursor_color_3D,
symbol='++', edge_color=self.plotcanvas.cursor_color,
edge_width=self.options["global_cursor_width"],
size=self.options["global_cursor_size"])
@@ -7394,7 +7394,7 @@ class App(QtCore.QObject):
# Update cursor
self.app_cursor.set_data(np.asarray([(pos[0], pos[1])]),
symbol='++', edge_color=self.cursor_color_3D,
symbol='++', edge_color=self.plotcanvas.cursor_color,
edge_width=self.options["global_cursor_width"],
size=self.options["global_cursor_size"])
else: