From 67cb08a8355091bf075bcb0051cd6c15f1969970 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 16 Mar 2023 15:03:05 +0100 Subject: [PATCH] qml: slider render voids --- electrum/gui/qml/components/SwapDialog.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/SwapDialog.qml b/electrum/gui/qml/components/SwapDialog.qml index 208f0661a..213a134d2 100644 --- a/electrum/gui/qml/components/SwapDialog.qml +++ b/electrum/gui/qml/components/SwapDialog.qml @@ -172,7 +172,7 @@ ElDialog { width: swapslider.availableWidth height: implicitHeight radius: 2 - color: Color.transparent(control.Material.accentColor, 0.33) + color: Color.transparent(Material.accentColor, 0.33) // full width somehow misaligns with handle, define rangeWidth property int rangeWidth: width - swapslider.leftPadding @@ -189,6 +189,15 @@ ElDialog { radius: 2 } + Rectangle { + x: - (swapslider.parent.width - 2 * constants.paddingXXLarge) * swaphelper.leftVoid + z: -1 + // width makes rectangle go outside the control, into the Layout margins + width: parent.width + (swapslider.parent.width - 2 * constants.paddingXXLarge) * swaphelper.rightVoid + height: parent.height + color: Material.sliderDisabledColor + } + Rectangle { x: swapslider.scenter * parent.rangeWidth y: -4