fix(StatusImageCropPanel) vertically align slider in ImageCropPanel (#829)
- change StatusSlider to be vertically centered Needed for https://github.com/status-im/status-desktop/issues/6725
This commit is contained in:
parent
25e3c5526a
commit
2a377533f8
|
@ -242,13 +242,14 @@ Item {
|
||||||
StatusIcon {
|
StatusIcon {
|
||||||
icon: "remove-circle"
|
icon: "remove-circle"
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.preferredWidth: 20
|
Layout.preferredWidth: 20
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 20
|
||||||
}
|
}
|
||||||
StatusSlider {
|
StatusSlider {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.bottomMargin: 25
|
Layout.bottomMargin: 20
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
enabled: root.interactive
|
enabled: root.interactive
|
||||||
|
@ -262,6 +263,7 @@ Item {
|
||||||
StatusIcon {
|
StatusIcon {
|
||||||
icon: "add-circle"
|
icon: "add-circle"
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.preferredWidth: 20
|
Layout.preferredWidth: 20
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 20
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,8 @@ Slider {
|
||||||
id: bgRect
|
id: bgRect
|
||||||
|
|
||||||
x: root.leftPadding
|
x: root.leftPadding
|
||||||
y: root.topPadding
|
anchors.verticalCenter: root.verticalCenter
|
||||||
|
|
||||||
implicitWidth: 100
|
implicitWidth: 100
|
||||||
implicitHeight: bgHeight
|
implicitHeight: bgHeight
|
||||||
width: root.availableWidth
|
width: root.availableWidth
|
||||||
|
|
Loading…
Reference in New Issue