1
0

Merge pull request #10373 from accumulator/qml_helpdialog_styling

qml: improve HelpDialog styling
This commit is contained in:
ghost43
2025-12-22 17:29:57 +00:00
committed by GitHub

View File

@@ -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
}
} }
} }
} }