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
a82d07db7a
commit
524f941401
|
@ -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
|
||||
}
|
||||
|
|
|
@ -31,7 +31,8 @@ Slider {
|
|||
id: bgRect
|
||||
|
||||
x: root.leftPadding
|
||||
y: root.topPadding
|
||||
anchors.verticalCenter: root.verticalCenter
|
||||
|
||||
implicitWidth: 100
|
||||
implicitHeight: bgHeight
|
||||
width: root.availableWidth
|
||||
|
|
Loading…
Reference in New Issue