diff --git a/src/signage/resource/page/Disconnected.qml b/src/signage/resource/page/Disconnected.qml new file mode 100644 index 0000000..b03f9a2 --- /dev/null +++ b/src/signage/resource/page/Disconnected.qml @@ -0,0 +1,41 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.2 + +import "Common" + +Rectangle { + id: disconnectedView + width: viewController.monitor_width + height: viewController.monitor_height + color: "#ffffff" + + CurrentTime { + id: displayCurrentTime + } + + Text { + id: disconnectedText + color: "#ef642c" + text: qsTr("自動運転システムとの通信が遅延しています") + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.verticalCenter + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font.pointSize: 40*viewController.size_ratio + font.bold: true + elide: Text.ElideMiddle + } + + Text { + id: disconnectedEnText + color: "#ef642c" + text: qsTr("Communication with the autonomous system is delayed.") + anchors.top: disconnectedText.bottom + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font.pointSize: 40*viewController.size_ratio + font.bold: true + elide: Text.ElideMiddle + } +} diff --git a/src/signage/resource/page/main.qml b/src/signage/resource/page/main.qml index 0365eb7..e74fd31 100644 --- a/src/signage/resource/page/main.qml +++ b/src/signage/resource/page/main.qml @@ -20,7 +20,7 @@ Window { } Disconnected { - id: disconnected + id: disconnectedView visible: viewController.view_mode === "disconnected" }