forked from Shinonome/dots-hyprland
fix anchors formatting
This commit is contained in:
@@ -114,9 +114,7 @@ Slider {
|
|||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
required property real index
|
required property real index
|
||||||
anchors {
|
anchors.verticalCenter: background.verticalCenter
|
||||||
verticalCenter: background.verticalCenter
|
|
||||||
}
|
|
||||||
property real leftMargin: index > 0 ? root.dividerMargins : 0
|
property real leftMargin: index > 0 ? root.dividerMargins : 0
|
||||||
property real rightMargin: index < background.leftWidths.length - 1 ? root.dividerMargins : root.handleMargins
|
property real rightMargin: index < background.leftWidths.length - 1 ? root.dividerMargins : root.handleMargins
|
||||||
x: background.leftValues[index] * root.effectiveDraggingWidth + leftMargin + (index > 0 ? leftPadding : 0)
|
x: background.leftValues[index] * root.effectiveDraggingWidth + leftMargin + (index > 0 ? leftPadding : 0)
|
||||||
@@ -138,9 +136,7 @@ Slider {
|
|||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
required property int index
|
required property int index
|
||||||
anchors {
|
anchors.verticalCenter: background.verticalCenter
|
||||||
verticalCenter: background.verticalCenter
|
|
||||||
}
|
|
||||||
property real leftMargin: index > 0 ? root.dividerMargins : 0
|
property real leftMargin: index > 0 ? root.dividerMargins : 0
|
||||||
property real rightMargin: index < background.leftWidths.length - 1 ? root.dividerMargins : root.handleMargins
|
property real rightMargin: index < background.leftWidths.length - 1 ? root.dividerMargins : root.handleMargins
|
||||||
x: background.leftValues[index] * root.effectiveDraggingWidth + leftMargin + (index > 0 ? leftPadding : 0)
|
x: background.leftValues[index] * root.effectiveDraggingWidth + leftMargin + (index > 0 ? leftPadding : 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user