Skip to content

Commit

Permalink
fix(StatusImageCropPanel) vertically align slider in ImageCropPanel (#…
Browse files Browse the repository at this point in the history
…829)

- change StatusSlider to be vertically centered

Needed for #6725
  • Loading branch information
faust4exe committed Aug 5, 2022
1 parent aea746f commit 0cfd2d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ui/StatusQ/src/StatusQ/Components/StatusImageCropPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -262,6 +263,7 @@ Item {
StatusIcon {
icon: "add-circle"

Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: 20
Layout.preferredHeight: 20
}
Expand Down
3 changes: 2 additions & 1 deletion ui/StatusQ/src/StatusQ/Controls/StatusSlider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Slider {
id: bgRect

x: root.leftPadding
y: root.topPadding
anchors.verticalCenter: root.verticalCenter

implicitWidth: 100
implicitHeight: bgHeight
width: root.availableWidth
Expand Down

0 comments on commit 0cfd2d6

Please sign in to comment.