qml: unify dialog headers
This commit is contained in:
@@ -14,6 +14,7 @@ ElDialog {
|
||||
property string text_help
|
||||
|
||||
title: ''
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
@@ -25,19 +26,19 @@ ElDialog {
|
||||
color: "#aa000000"
|
||||
}
|
||||
|
||||
header: RowLayout {
|
||||
width: dialog.width
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: dialog.title
|
||||
visible: dialog.title
|
||||
elide: Label.ElideRight
|
||||
padding: constants.paddingXLarge
|
||||
bottomPadding: 0
|
||||
font.bold: true
|
||||
font.pixelSize: constants.fontSizeMedium
|
||||
}
|
||||
}
|
||||
// header: RowLayout {
|
||||
// width: dialog.width
|
||||
// Label {
|
||||
// Layout.fillWidth: true
|
||||
// text: dialog.title
|
||||
// visible: dialog.title
|
||||
// elide: Label.ElideRight
|
||||
// padding: constants.paddingXLarge
|
||||
// bottomPadding: 0
|
||||
// font.bold: true
|
||||
// font.pixelSize: constants.fontSizeMedium
|
||||
// }
|
||||
// }
|
||||
|
||||
Flickable {
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in New Issue
Block a user