1
0

qml InvoiceDialog: merge status and userinfo

This commit is contained in:
ThomasV
2023-03-30 11:24:50 +02:00
parent 2cbb16ae4b
commit 5ef7fabc73
3 changed files with 29 additions and 34 deletions

View File

@@ -8,7 +8,10 @@ TextHighlightPane {
None,
Info,
Warn,
Error
Error,
Progress,
Pending,
Done
}
property alias text: infotext.text
@@ -21,7 +24,11 @@ TextHighlightPane {
? constants.colorWarning
: iconStyle == InfoTextArea.IconStyle.Error
? constants.colorError
: constants.colorInfo
: iconStyle == InfoTextArea.IconStyle.Progress
? constants.colorProgress
: iconStyle == InfoTextArea.IconStyle.Done
? constants.colorDone
: constants.colorInfo
padding: constants.paddingXLarge
RowLayout {
@@ -35,7 +42,13 @@ TextHighlightPane {
? "../../../icons/warning.png"
: iconStyle == InfoTextArea.IconStyle.Error
? "../../../icons/expired.png"
: ""
: iconStyle == InfoTextArea.IconStyle.Progress
? "../../../icons/unconfirmed.png"
: iconStyle == InfoTextArea.IconStyle.Pending
? "../../../icons/unpaid.png"
: iconStyle == InfoTextArea.IconStyle.Done
? "../../../icons/confirmed.png"
: ""
Layout.preferredWidth: constants.iconSizeMedium
Layout.preferredHeight: constants.iconSizeMedium
}