1
0

qml: styling

This commit is contained in:
Sander van Grieken
2023-02-10 17:24:14 +01:00
parent d7f48c8805
commit 8a8703d5ea
2 changed files with 7 additions and 20 deletions

View File

@@ -59,7 +59,7 @@ Pane {
text: listview.sectionLabels[section] text: listview.sectionLabels[section]
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.topMargin: constants.paddingLarge Layout.topMargin: constants.paddingLarge
font.pixelSize: constants.fontSizeLarge font.pixelSize: constants.fontSizeMedium
color: Material.accentColor color: Material.accentColor
} }
} }
@@ -76,8 +76,7 @@ Pane {
DelegateModelGroup { name: 'older'; includeByDefault: false } DelegateModelGroup { name: 'older'; includeByDefault: false }
] ]
delegate: HistoryItemDelegate { delegate: HistoryItemDelegate { }
}
} }
ScrollIndicator.vertical: ScrollIndicator { } ScrollIndicator.vertical: ScrollIndicator { }

View File

@@ -50,26 +50,14 @@ ElDialog {
columns: 2 columns: 2
TextHighlightPane { InfoTextArea {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge
visible: invoice.userinfo visible: invoice.userinfo
borderColor: constants.colorWarning text: invoice.userinfo
padding: constants.paddingXLarge iconStyle: InfoTextArea.IconStyle.Warn
RowLayout {
Image {
source: '../../icons/warning.png'
Layout.preferredWidth: constants.iconSizeMedium
Layout.preferredHeight: constants.iconSizeMedium
}
Label {
width: parent.width
text: invoice.userinfo
wrapMode: Text.Wrap
}
}
} }
Label { Label {