Index: sources/gui/qml/main.qml =================================================================== diff -u -r11a0a0a9bb67cc3afbf75426cc6b3ca97365a7ea -rd8004655ec64da6c8806b9a074a0cb07d799ddf9 --- sources/gui/qml/main.qml (.../main.qml) (revision 11a0a0a9bb67cc3afbf75426cc6b3ca97365a7ea) +++ sources/gui/qml/main.qml (.../main.qml) (revision d8004655ec64da6c8806b9a074a0cb07d799ddf9) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file main.qml - * \author (last) Peter Lucia - * \date (last) 26-Jun-2020 + * \author (last) Behrouz NematiPour + * \date (last) 25-Aug-2020 * \author (original) Behrouz NematiPour * \date (original) 24-Sep-2019 * @@ -78,7 +78,6 @@ ) break; } - } } @@ -158,8 +157,6 @@ _alarm_bar.visible = false; _alarm_dialog.visible = true; } - - } function isAlarmHighPriority() { @@ -207,6 +204,24 @@ font.pixelSize: 14 } + Rectangle { // TEST : SD-Card not present should be handled with better indication(s). + color : ! _GuiView.sdIsReady ? "red" : _GuiView.sdIsReadOnly ? "gray" : "green" + anchors { + right : parent.right + bottom : parent.bottom + bottomMargin: 35 + rightMargin: 10 + } + width : 25 + height: 25 + radius: width + Image { id: _imageMicrosd + anchors.fill: parent + source: "qrc:/images/iMicroSD" + } + visible: true // ! _GuiView.sdIsReady || _GuiView.sdIsReadOnly + } + function getRootTextFromAlarmLevel(level) { let root_color = ""; let text_color = ""; @@ -226,10 +241,8 @@ default : // GuiActions.ALARM_PRIORITY_NONE root_color = Colors.textNotificationNoneBg; text_color = Colors.textNotificationNoneFg; - } return [root_color, text_color]; - } function getAlarmTopBarColors(level) { @@ -251,7 +264,6 @@ default : // GuiActions.ALARM_PRIORITY_NONE background = Colors.alarmTopBarLowBg; foreground = Colors.alarmTopBarLowFg; - } return [background, foreground]; } @@ -273,7 +285,6 @@ 2000 // notifies user and hides the dialog ) break; - } } }