diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledSlider.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledSlider.qml index b17afd86b..66c6ee0af 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/StyledSlider.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledSlider.qml @@ -176,9 +176,7 @@ Slider { Rectangle { required property int index - anchors { - verticalCenter: background.verticalCenter - } + anchors.verticalCenter: background.verticalCenter property real leftMargin: index > 0 ? root.dividerMargins : root.handleMargins property real rightMargin: index < background.rightWidths.length - 1 ? root.dividerMargins : 0 x: background.rightValues[index] * root.effectiveDraggingWidth + leftMargin + (index === 0 ? handleWidth / 2 : 0) + leftPadding @@ -208,7 +206,7 @@ Slider { implicitWidth: root.handleWidth implicitHeight: root.handleHeight - x: leftPadding + (root.visualPosition * root.effectiveDraggingWidth) - (root.handleWidth / 2) + x: root.leftPadding + (root.visualPosition * root.effectiveDraggingWidth) - (root.handleWidth / 2) anchors.verticalCenter: parent.verticalCenter radius: Appearance.rounding.full color: root.handleColor