SetupViewDisconnected.qml 1.28 KB
Newer Older
1 2 3
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
4
import QGroundControl.FactSystem 1.0
5 6

Rectangle {
7 8 9
    QGCPalette { id: palette; colorGroup: QGCPalette.Active }

    color: palette.window
10 11 12 13 14 15

    Item {
        anchors.margins: 20
        anchors.fill: parent

        Rectangle { id: header; color: "lightblue"; radius: 10.0; width: parent.width; height: titleText.height + 20; opacity: 0.8;
16
            Text { id: titleText; anchors.centerIn: parent; font.pointSize: 24; text: "Vehicle Setup" }
17 18 19 20
        }

        Text { width: parent.width; height: parent.height - header.height - footer.height;
            anchors.top: header.bottom
21
            color: palette.windowText
22 23
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
24
            text: "Vehicle Setup is only available while vehicle is connected." }
25 26 27 28 29 30 31 32 33 34

        Rectangle { id: footer; anchors.bottom: parent.bottom; color: "lightblue"; radius: 10.0; width: parent.width; height: titleText.height + 20; opacity: 0.8;

            Button { id: firmwareButton; objectName: "firmwareButton";
                anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: parent.verticalCenter;
                text: "Firmware Upgrade"
            }
        }
    }
}