qml: improve HelpDialog styling
remove misalignment between pane and dialog, add bottom padding
This commit is contained in:
@@ -7,6 +7,7 @@ ElDialog {
|
|||||||
id: dialog
|
id: dialog
|
||||||
|
|
||||||
header: Item { }
|
header: Item { }
|
||||||
|
footer: Item { }
|
||||||
|
|
||||||
property string text
|
property string text
|
||||||
property string heading
|
property string heading
|
||||||
@@ -18,20 +19,27 @@ ElDialog {
|
|||||||
padding: 0
|
padding: 0
|
||||||
needsSystemBarPadding: false
|
needsSystemBarPadding: false
|
||||||
|
|
||||||
width: rootPane.width
|
width: parent.width * 4/5
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Rectangle {
|
||||||
color: "#55000000"
|
color: "#aa000000"
|
||||||
|
}
|
||||||
|
|
||||||
|
background: Rectangle {
|
||||||
|
color: "transparent"
|
||||||
}
|
}
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
id: rootPane
|
id: rootPane
|
||||||
width: rootLayout.width + leftPadding + rightPadding
|
width: parent.width
|
||||||
|
implicitHeight: rootLayout.height + topPadding + bottomPadding
|
||||||
padding: constants.paddingLarge
|
padding: constants.paddingLarge
|
||||||
|
background: Rectangle {
|
||||||
|
color: constants.lighterBackground
|
||||||
|
}
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: rootLayout
|
id: rootLayout
|
||||||
width: dialog.parent.width * 3/4
|
width: parent.width
|
||||||
spacing: constants.paddingLarge
|
spacing: constants.paddingLarge
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@@ -59,6 +67,9 @@ ElDialog {
|
|||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item {
|
||||||
|
height: constants.paddingLarge
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user