Skip to content

Commit

Permalink
[Slider] Fixup view
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Feb 5, 2025
1 parent 8bede0e commit d2106c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/qml/Slider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Slider {

background: Rectangle {
x: control.leftPadding
implicitWidth: Theme.itemWidthLarge + Theme.itemWidthSmall
implicitWidth: Theme.itemWidthLarge + Theme.itemWidthSmall - Theme.itemHeightExtraSmall*0.4
implicitHeight: Theme.itemHeightExtraSmall / 2
width: control.availableWidth
height: implicitHeight
Expand All @@ -58,7 +58,7 @@ Slider {
}

handle: Rectangle {
x: control.leftPadding + control.visualPosition * (control.availableWidth - width)
x: control.leftPadding + control.visualPosition * (control.availableWidth - width) + Theme.itemHeightExtraSmall*0.2
y: control.topPadding + control.availableHeight / 2 - height / 2
implicitWidth: Theme.itemHeightExtraSmall
implicitHeight: Theme.itemHeightExtraSmall
Expand Down

0 comments on commit d2106c4

Please sign in to comment.