- in Preferences General, Gerber, Geometry, Excellon, CNCJob sections made all the input fields of type SpinBox (where possible)

- updated the Distance Tool utility geometry color to adapt to the dark theme canvas
This commit is contained in:
Marius Stanciu
2019-10-08 04:17:08 +03:00
committed by Marius
parent 031a3a141e
commit 24723509f8
9 changed files with 335 additions and 124 deletions

View File

@@ -428,7 +428,17 @@ class Distance(FlatCAMTool):
# second draw the new shape of the utility geometry
meas_line = LineString([pos, self.points[0]])
color = '#000000FF'
settings = QtCore.QSettings("Open Source", "FlatCAM")
if settings.contains("theme"):
theme = settings.value('theme', type=str)
else:
theme = 'white'
if theme == 'white':
color = '#000000FF'
else:
color = '#FFFFFFFF'
self.sel_shapes.add(meas_line, color=color, update=True, layer=0, tolerance=None)
if self.app.is_legacy is True: