Skip to content

Commit

Permalink
add view
Browse files Browse the repository at this point in the history
  • Loading branch information
yabuta committed Nov 27, 2024
1 parent d8dd254 commit 08815ec
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions src/signage/resource/page/Disconnected.qml
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 1 addition & 1 deletion src/signage/resource/page/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Window {
}

Disconnected {
id: disconnected
id: disconnectedView
visible: viewController.view_mode === "disconnected"
}

Expand Down

0 comments on commit 08815ec

Please sign in to comment.