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:
PavelS 2022-08-05 16:53:55 +03:00 committed by GitHub
parent 25e3c5526a
commit 2a377533f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -242,13 +242,14 @@ Item {
StatusIcon {
icon: "remove-circle"
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: 20
Layout.preferredHeight: 20
}
StatusSlider {
Layout.fillWidth: true
Layout.topMargin: 20
Layout.bottomMargin: 25
Layout.bottomMargin: 20
Layout.alignment: Qt.AlignVCenter
enabled: root.interactive
@ -262,6 +263,7 @@ Item {
StatusIcon {
icon: "add-circle"
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: 20
Layout.preferredHeight: 20
}

View File

@ -31,7 +31,8 @@ Slider {
id: bgRect
x: root.leftPadding
y: root.topPadding
anchors.verticalCenter: root.verticalCenter
implicitWidth: 100
implicitHeight: bgHeight
width: root.availableWidth