5/// Pill showing the most severe level: Error, then Warning, then Info
7 text: _style ? _style.text : ""
8 color: _style ? _style.color : "transparent"
10 property int errorCount: 0
11 property int warningCount: 0
12 property int unreadCount: 0
13 property string warningLabel: qsTr("Warning")
15 readonly property string severity: {
19 if (warningCount > 0) {
22 if (unreadCount > 0) {
28 readonly property var _palette: QGroundControl.globalPalette
29 readonly property var _styles: ({
30 error: { text: qsTr("Error"), color: _palette.errorIndicator },
31 warning: { text: warningLabel, color: _palette.warningIndicator },
32 info: { text: qsTr("Info"), color: _palette.colorBlue }
34 readonly property var _style: _styles[severity]