Some layout fixes to toggle and slider
NSlider(withLabel): fix some small layout issues NToggle: fix vertical centering of the thumb
This commit is contained in:
parent
bb7f957e44
commit
11f6475b9f
3 changed files with 66 additions and 14 deletions
|
|
@ -54,6 +54,7 @@ RowLayout {
|
|||
border.color: root.checked ? Color.mSurface : Color.mSurface
|
||||
border.width: Math.max(1, Style.borderM * scaling)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.verticalCenterOffset: 0
|
||||
x: root.checked ? switcher.width - width - 3 * scaling : 3 * scaling
|
||||
|
||||
Behavior on x {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue