@@ -96,7 +96,7 @@ def paint(self, painter, option, widget):
9696 if not self ._active :
9797 pen .setColor (QtGui .QColor (* PipeEnum .DISABLED_COLOR .value ))
9898 pen .setStyle (PIPE_STYLES .get (PipeEnum .DRAW_TYPE_DOTTED .value ))
99- pen .setWidth (pen . width () * 1.25 )
99+ pen .setWidth (3 )
100100
101101 painter .setPen (pen )
102102 painter .setBrush (self .brush ())
@@ -416,11 +416,11 @@ def viewer_layout_direction(self):
416416 if viewer :
417417 return viewer .get_layout_direction ()
418418
419- def set_pipe_styling (self , color , width = 0.5 , style = 0 ):
419+ def set_pipe_styling (self , color , width = 2 , style = 0 ):
420420 """
421421 Args:
422422 color (list or tuple): (r, g, b, a) values 0-255
423- width (float ): pipe width.
423+ width (int ): pipe width.
424424 style (int): pipe style.
425425 """
426426 pen = self .pen ()
@@ -444,7 +444,7 @@ def activate(self):
444444 self ._active = True
445445 self .set_pipe_styling (
446446 color = PipeEnum .ACTIVE_COLOR .value ,
447- width = 2.5 ,
447+ width = 3 ,
448448 style = PipeEnum .DRAW_TYPE_DEFAULT .value
449449 )
450450
@@ -455,7 +455,7 @@ def highlight(self):
455455 self ._highlight = True
456456 self .set_pipe_styling (
457457 color = PipeEnum .HIGHLIGHT_COLOR .value ,
458- width = 2.5 ,
458+ width = 2 ,
459459 style = PipeEnum .DRAW_TYPE_DEFAULT .value
460460 )
461461
@@ -468,7 +468,7 @@ def reset(self):
468468 """
469469 self ._active = False
470470 self ._highlight = False
471- self .set_pipe_styling (color = self .color , width = 1. 2 , style = self .style )
471+ self .set_pipe_styling (color = self .color , width = 2 , style = self .style )
472472 self ._draw_direction_pointer ()
473473
474474 def set_connections (self , port1 , port2 ):
@@ -555,7 +555,7 @@ def __init__(self):
555555
556556 self .color = PipeEnum .ACTIVE_COLOR .value
557557 self .style = PipeEnum .DRAW_TYPE_DASHED .value
558- self .set_pipe_styling (color = self .color , width = 2.8 , style = self .style )
558+ self .set_pipe_styling (color = self .color , width = 3 , style = self .style )
559559
560560 self .shift_selected = False
561561
0 commit comments