Browse Source

Restore original visible sizes, affected by border hinting

By shifting border inside of logical bound, free space around is
increased by one line weight.
tags/v1.9.11
Nikita Zlobin falkTX <falktx@gmail.com> 6 years ago
parent
commit
7e4348832c
2 changed files with 9 additions and 8 deletions
  1. +1
    -0
      source/patchcanvas.py
  2. +8
    -8
      source/patchcanvas_theme.py

+ 1
- 0
source/patchcanvas.py View File

@@ -2600,6 +2600,7 @@ class CanvasBox(QGraphicsItem):


last_out_pos += port_spacing last_out_pos += port_spacing
last_out_type = port.port_type last_out_type = port.port_type
self.p_height += canvas.theme.box_pen.widthF()


self.repaintLines(True) self.repaintLines(True)
self.update() self.update()


+ 8
- 8
source/patchcanvas_theme.py View File

@@ -118,9 +118,9 @@ class Theme(object):
self.port_parameter_text = self.port_text self.port_parameter_text = self.port_text
self.port_parameter_text_sel = self.port_text self.port_parameter_text_sel = self.port_text


self.port_height = 15
self.port_height = 16
self.port_offset = 0 self.port_offset = 0
self.port_spacing = 3
self.port_spacing = 2
self.port_spacingT = 2 self.port_spacingT = 2


# Lines # Lines
@@ -200,9 +200,9 @@ class Theme(object):
self.port_parameter_text = self.port_text self.port_parameter_text = self.port_text
self.port_parameter_text_sel = self.port_text self.port_parameter_text_sel = self.port_text


self.port_height = 11
self.port_height = 12
self.port_offset = 0 self.port_offset = 0
self.port_spacing = 2
self.port_spacing = 1
self.port_spacingT = 1 self.port_spacingT = 1


# Lines # Lines
@@ -282,9 +282,9 @@ class Theme(object):
self.port_parameter_text = self.port_text self.port_parameter_text = self.port_text
self.port_parameter_text_sel = self.port_text self.port_parameter_text_sel = self.port_text


self.port_height = 15
self.port_height = 16
self.port_offset = 0 self.port_offset = 0
self.port_spacing = 3
self.port_spacing = 2
self.port_spacingT = 2 self.port_spacingT = 2


# Lines # Lines
@@ -450,9 +450,9 @@ class Theme(object):
self.port_parameter_text_sel = self.port_parameter_pen_sel self.port_parameter_text_sel = self.port_parameter_pen_sel


# missing, ports 2 # missing, ports 2
self.port_height = 19
self.port_height = 21
self.port_offset = 1 self.port_offset = 1
self.port_spacing = 5
self.port_spacing = 3
self.port_spacingT = 0 self.port_spacingT = 0


# Lines # Lines


Loading…
Cancel
Save