Fixed a bunch of border.width who used to have inverted logic (math.min vs max)
This commit is contained in:
parent
ff2bbe60a4
commit
c7a07127d8
11 changed files with 15 additions and 17 deletions
|
|
@ -43,7 +43,7 @@ RowLayout {
|
|||
radius: height * 0.5
|
||||
color: value ? Colors.accentPrimary : Colors.surfaceVariant
|
||||
border.color: value ? Colors.accentPrimary : Colors.outline
|
||||
border.width: Math.min(1, Style.borderMedium * scaling)
|
||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||
|
||||
Rectangle {
|
||||
width: (Style.baseWidgetSize - 4) * scaling
|
||||
|
|
@ -51,7 +51,7 @@ RowLayout {
|
|||
radius: height * 0.5
|
||||
color: Colors.surface
|
||||
border.color: hovering ? Colors.textDisabled : Colors.outline
|
||||
border.width: Math.min(1, Style.borderMedium * scaling)
|
||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||
y: 2 * scaling
|
||||
x: value ? switcher.width - width - 2 * scaling : 2 * scaling
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue