diff --git a/src/patchcanvas.py b/src/patchcanvas.py index 831e8e8..0471eb2 100644 --- a/src/patchcanvas.py +++ b/src/patchcanvas.py @@ -2226,14 +2226,14 @@ class CanvasBox(QGraphicsItem): for port in port_list: if port.port_type == PORT_TYPE_AUDIO_JACK: if port.port_mode == PORT_MODE_INPUT: - port.widget.setPos(QPointF(1 + canvas.theme.port_offset, last_in_pos)) + port.widget.setPos(QPointF(canvas.theme.port_offset, last_in_pos)) port.widget.setPortWidth(max_in_width) last_in_pos += port_spacing last_in_type = port.port_type elif port.port_mode == PORT_MODE_OUTPUT: - port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 13, last_out_pos)) + port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 12, last_out_pos)) port.widget.setPortWidth(max_out_width) last_out_pos += port_spacing @@ -2246,7 +2246,7 @@ class CanvasBox(QGraphicsItem): if last_in_type != PORT_TYPE_NULL and port.port_type != last_in_type: last_in_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(1 + canvas.theme.port_offset, last_in_pos)) + port.widget.setPos(QPointF(canvas.theme.port_offset, last_in_pos)) port.widget.setPortWidth(max_in_width) last_in_pos += port_spacing @@ -2256,7 +2256,7 @@ class CanvasBox(QGraphicsItem): if last_out_type != PORT_TYPE_NULL and port.port_type != last_out_type: last_out_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 13, last_out_pos)) + port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 12, last_out_pos)) port.widget.setPortWidth(max_out_width) last_out_pos += port_spacing @@ -2269,7 +2269,7 @@ class CanvasBox(QGraphicsItem): if last_in_type != PORT_TYPE_NULL and port.port_type != last_in_type: last_in_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(1 + canvas.theme.port_offset, last_in_pos)) + port.widget.setPos(QPointF(canvas.theme.port_offset, last_in_pos)) port.widget.setPortWidth(max_in_width) last_in_pos += port_spacing @@ -2279,7 +2279,7 @@ class CanvasBox(QGraphicsItem): if last_out_type != PORT_TYPE_NULL and port.port_type != last_out_type: last_out_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 13, last_out_pos)) + port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 12, last_out_pos)) port.widget.setPortWidth(max_out_width) last_out_pos += port_spacing @@ -2292,7 +2292,7 @@ class CanvasBox(QGraphicsItem): if last_in_type != PORT_TYPE_NULL and port.port_type != last_in_type: last_in_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(1 + canvas.theme.port_offset, last_in_pos)) + port.widget.setPos(QPointF(canvas.theme.port_offset, last_in_pos)) port.widget.setPortWidth(max_in_width) last_in_pos += port_spacing @@ -2302,7 +2302,7 @@ class CanvasBox(QGraphicsItem): if last_out_type != PORT_TYPE_NULL and port.port_type != last_out_type: last_out_pos += canvas.theme.port_spacingT - port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 13, last_out_pos)) + port.widget.setPos(QPointF(self.p_width - max_out_width - canvas.theme.port_offset - 12, last_out_pos)) port.widget.setPortWidth(max_out_width) last_out_pos += port_spacing diff --git a/src/patchcanvas_theme.py b/src/patchcanvas_theme.py index 54e2da3..4fa6537 100644 --- a/src/patchcanvas_theme.py +++ b/src/patchcanvas_theme.py @@ -359,7 +359,7 @@ class Theme(object): self.port_midi_alsa_text_sel = self.port_text self.port_height = 14 - self.port_offset = -1 + self.port_offset = 0 self.port_spacing = 1 self.port_spacingT = 0 @@ -446,7 +446,7 @@ class Theme(object): # missing, ports 2 self.port_height = 19 - self.port_offset = -1 + self.port_offset = 0 self.port_spacing = 5 self.port_spacingT = 0