PlanToolBar.qml 1.56 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import QtQuick          2.3
import QtQuick.Controls 1.2
import QtQuick.Layouts  1.2
import QtQuick.Dialogs  1.2

import QGroundControl                   1.0
import QGroundControl.ScreenTools       1.0
import QGroundControl.Controls          1.0
import QGroundControl.FactControls      1.0
import QGroundControl.Palette           1.0

// Toolbar for Plan View
Rectangle {
    id:                 _root
Gus Grubba's avatar
Gus Grubba committed
15
    color:              qgcPal.globalTheme === QGCPalette.Light ? Qt.rgba(1,1,1,0.8) : Qt.rgba(0,0,0,0.75)
16 17 18 19 20 21 22 23 24
    anchors.fill:       parent
    /// Bottom single pixel divider
    Rectangle {
        anchors.left:   parent.left
        anchors.right:  parent.right
        anchors.bottom: parent.bottom
        height:         1
        color:          "black"
        visible:        qgcPal.globalTheme === QGCPalette.Light
Gus Grubba's avatar
Gus Grubba committed
25
    }
26
    RowLayout {
27
        anchors.bottomMargin:   1
28 29 30
        anchors.rightMargin:    ScreenTools.defaultFontPixelWidth / 2
        anchors.fill:           parent
        spacing:                ScreenTools.defaultFontPixelWidth * 2
31 32
        QGCToolBarButton {
            id:                 settingsButton
33
            Layout.fillHeight:  true
34 35 36 37 38 39 40 41
            icon.source:        "/qmlimages/PaperPlane.svg"
            logo:               true
            checked:            false
            onClicked: {
                checked = false
                mainWindow.showFlyView()
            }
        }
42 43 44 45
        Loader {
            source:             "PlanToolBarIndicators.qml"
            Layout.fillWidth:   true
            Layout.fillHeight:  true
46 47
        }
    }
48 49
}