Преглед изворни кода

- fixed a small GUI issue in Excellon UI when Basic mode is active

Marius Stanciu пре 6 година
родитељ
комит
02cfd96715
3 измењених фајлова са 10 додато и 3 уклоњено
  1. 2 2
      FlatCAMApp.py
  2. 4 1
      FlatCAMObj.py
  3. 4 0
      README.md

+ 2 - 2
FlatCAMApp.py

@@ -524,8 +524,8 @@ class App(QtCore.QObject):
             "global_cursor_type": "small",
             "global_cursor_size": 20,
             "global_cursor_width": 2,
-            "global_cursor_color": '#000000',
-            "global_cursor_color_enabled": False,
+            "global_cursor_color": '#FF0000',
+            "global_cursor_color_enabled": True,
 
             # Gerber General
             "gerber_plot": True,

+ 4 - 1
FlatCAMObj.py

@@ -2638,7 +2638,10 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
         horizontal_header.setDefaultSectionSize(70)
         horizontal_header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed)
         horizontal_header.resizeSection(0, 20)
-        horizontal_header.setSectionResizeMode(1, QtWidgets.QHeaderView.ResizeToContents)
+        if self.app.defaults["global_app_level"] == 'b':
+            horizontal_header.setSectionResizeMode(1, QtWidgets.QHeaderView.Stretch)
+        else:
+            horizontal_header.setSectionResizeMode(1, QtWidgets.QHeaderView.ResizeToContents)
         horizontal_header.setSectionResizeMode(2, QtWidgets.QHeaderView.ResizeToContents)
         horizontal_header.setSectionResizeMode(3, QtWidgets.QHeaderView.ResizeToContents)
         horizontal_header.setSectionResizeMode(4, QtWidgets.QHeaderView.Stretch)

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+13.01.2020
+
+- fixed a small GUI issue in Excellon UI when Basic mode is active
+
 12.01.2020
 
 - improved the circle approximation resolution