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 Michał Cieślak
parent a82d07db7a
commit 524f941401
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