- added new setting for the color of the Project Tree items; it helps in providing contrast when using dark theme like the one in MacOS

This commit is contained in:
Marius Stanciu
2019-04-30 23:34:35 +03:00
parent b53c08f1e5
commit eda4202952
6 changed files with 115 additions and 26 deletions

View File

@@ -2875,8 +2875,12 @@ class FlatCAMGeoEditor(QtCore.QObject):
def gridx_changed(goption, gentry):
entry2option(option=goption, entry=gentry)
# if the grid link is checked copy the value in the GridX field to GridY
try:
val = float(self.app.ui.grid_gap_x_entry.get_value())
except ValueError:
return
if self.app.ui.grid_gap_link_cb.isChecked():
self.app.ui.grid_gap_y_entry.set_value(self.app.ui.grid_gap_x_entry.get_value())
self.app.ui.grid_gap_y_entry.set_value(val)
self.app.ui.grid_gap_x_entry.setValidator(QtGui.QDoubleValidator())
self.app.ui.grid_gap_x_entry.textChanged.connect(