diff --git a/NERODesign/NERO.qmlproject.qtds b/NERODesign/NERO.qmlproject.qtds index cdab66a..07d7351 100644 --- a/NERODesign/NERO.qmlproject.qtds +++ b/NERODesign/NERO.qmlproject.qtds @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/NERODesign/content/DirectionView.qml b/NERODesign/content/DirectionView.qml new file mode 100644 index 0000000..fbf50d1 --- /dev/null +++ b/NERODesign/content/DirectionView.qml @@ -0,0 +1,49 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.0 + +Item { + property int width: 1920 + property int height: 1080 + property bool forward: true + + RowLayout { + id: rowLayout + anchors.fill: parent + spacing: 20 + Rectangle { + id: rectangle + color: forward ? "#7CFC00" : "transparent" + Layout.fillHeight: true + Layout.preferredWidth: parent.width/2 - 10 + border.color: forward ? "transparent" : "white" // Outline color + border.width: 5 // Outline width + radius: 50 // Border radius to round the corners + + + Text { + anchors.centerIn: parent + font.pixelSize: Math.min(parent.width, parent.height) + text: "F" + color: "white" + } + } + + Rectangle { + id: rectangle1 + color: forward ? "transparent" : "Red" + Layout.fillHeight: true + Layout.preferredWidth: parent.width / 2 - 20 + border.color: forward ? "white" : "transparent" // Outline color + border.width: 5 // Outline width + radius: 50 // Border radius to round the corners + + Text { + anchors.centerIn: parent + font.pixelSize: Math.min(parent.width, parent.height) + color: "white" + text: "R" + } + } + } +}