Просмотр исходного кода

- adjusted the selection color transparency for the Legacy(2D) graphic mode because it was too transparent for the fill

Marius Stanciu 6 лет назад
Родитель
Сommit
14efe0fc34
2 измененных файлов с 7 добавлено и 2 удалено
  1. 6 2
      FlatCAMApp.py
  2. 1 0
      README.md

+ 6 - 2
FlatCAMApp.py

@@ -8786,8 +8786,12 @@ class App(QtCore.QObject):
             face = color[:-2] + str(hex(int(0.2 * 255)))[2:]
             outline = color[:-2] + str(hex(int(0.8 * 255)))[2:]
         else:
-            face = self.defaults['global_sel_fill'][:-2] + str(hex(int(0.2 * 255)))[2:]
-            outline = self.defaults['global_sel_line'][:-2] + str(hex(int(0.8 * 255)))[2:]
+            if self.is_legacy is False:
+                face = self.defaults['global_sel_fill'][:-2] + str(hex(int(0.2 * 255)))[2:]
+                outline = self.defaults['global_sel_line'][:-2] + str(hex(int(0.8 * 255)))[2:]
+            else:
+                face = self.defaults['global_sel_fill'][:-2] + str(hex(int(0.4 * 255)))[2:]
+                outline = self.defaults['global_sel_line'][:-2] + str(hex(int(1.0 * 255)))[2:]
 
         self.sel_objects_list.append(self.move_tool.sel_shapes.add(sel_rect,
                                                                    color=outline,

+ 1 - 0
README.md

@@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
 - the application workspace has now a lot more options selectable in the Edit -> Preferences -> General -> GUI Preferences
 - updated the drawing of the workspace such that the application overall start time is improved and after first turn on of the workspace, toggling it will have no performance penalty
 - updated the workspace functions to work in Legacy(@D) graphic mode
+- adjusted the selection color transparency for the Legacy(2D) graphic mode because it was too transparent for the fill
 
 26.11.2019