- elenco delle macchine e stato in lettura, fasi tradotte in italiano - avvio, stop, spegnimento, ripresa e stop ritardato da 3 a 19 ore - chiave di accesso custodita solo sul telefono, nel file privato dell'app - 44 verifiche automatiche sul nucleo (scripts/test-core.sh) - interfaccia italiana o inglese secondo la lingua del telefono
45 lines
1.2 KiB
QML
45 lines
1.2 KiB
QML
import QtQuick 2.2
|
|
import Sailfish.Silica 1.0
|
|
import "../js/status.js" as Status
|
|
|
|
CoverBackground {
|
|
Column {
|
|
anchors.centerIn: parent
|
|
width: parent.width - 2 * Theme.paddingMedium
|
|
spacing: Theme.paddingSmall
|
|
|
|
Rectangle {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
width: Theme.itemSizeSmall / 2.2
|
|
height: width
|
|
radius: width / 2
|
|
color: Status.statusColor(api.statusLevel)
|
|
}
|
|
|
|
Label {
|
|
width: parent.width
|
|
horizontalAlignment: Text.AlignHCenter
|
|
elide: Text.ElideRight
|
|
color: Theme.primaryColor
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
text: api.hasState ? api.phaseText : qsTr("No data")
|
|
}
|
|
|
|
Label {
|
|
width: parent.width
|
|
horizontalAlignment: Text.AlignHCenter
|
|
visible: api.remainText.length > 0
|
|
color: Theme.secondaryColor
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
text: api.remainText
|
|
}
|
|
}
|
|
|
|
CoverActionList {
|
|
CoverAction {
|
|
iconSource: "image://theme/icon-cover-refresh"
|
|
onTriggered: api.refresh()
|
|
}
|
|
}
|
|
}
|