Skip to content

Commit

Permalink
[Slider] Fixup view
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Jan 27, 2025
1 parent c2cf588 commit 202d55d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controls/qml/Slider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@ Slider {
property int valueFontSize: Theme.fontSizeTiny
property bool useSpecSlider: Theme.desktopMode ? false : true
property bool alwaysUp: false
height: Theme.itemHeightExtraSmall * 1.2

background: Rectangle {
x: control.leftPadding
y: control.topPadding + control.availableHeight / 2 - height / 2
implicitWidth: Theme.itemWidthLarge + Theme.itemWidthSmall
implicitHeight: Theme.itemHeightExtraSmall / 2
width: control.availableWidth
height: implicitHeight
color: Theme.fillDarkColor
clip: true
anchors{
verticalCenter: control.verticalCenter
}

Rectangle {
width: control.visualPosition * parent.width
Expand Down

0 comments on commit 202d55d

Please sign in to comment.