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

This commit is contained in:
Marius Stanciu
2019-11-28 00:18:10 +02:00
committed by Marius
parent 599cfb8d51
commit 14efe0fc34
2 changed files with 7 additions and 2 deletions

View File

@@ -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,