Commit 075175f2 authored by Don Gagne's avatar Don Gagne

Remove fading help text

parent 409f3040
......@@ -20,18 +20,14 @@ Item {
state: "HelpShown"
clip: true
property alias text: helpText.text
property alias source: icon.source
property bool checked: false
property bool logo: false
property ExclusiveGroup exclusiveGroup: null
signal clicked()
readonly property real _topBottomMargins: ScreenTools.defaultFontPixelHeight / 2
property real _helpTextBottomMargin: 0
property real _imageBottomMargin: 0
signal clicked()
onExclusiveGroupChanged: {
if (exclusiveGroup) {
......@@ -41,43 +37,6 @@ Item {
QGCPalette { id: qgcPal }
states: [
State {
name: "HelpShown"
},
State {
name: "HelpHidden"
PropertyChanges { target: imageAnimation; running: true }
PropertyChanges { target: helpTextAnimation; running: true }
}
]
PropertyAnimation {
id: imageAnimation
target: _root
property: "_imageBottomMargin"
duration: 1000
easing.type: Easing.InOutQuad
to: _topBottomMargins
from: 0
}
PropertyAnimation {
id: helpTextAnimation
target: _root
property: "_helpTextBottomMargin"
duration: 1000
easing.type: Easing.InOutQuad
to: -helpText.height
from: 0
}
Timer {
interval: 10000
running: true
onTriggered: _root.state = "HelpHidden"
}
Rectangle {
anchors.fill: parent
visible: logo
......@@ -90,8 +49,8 @@ Item {
anchors.right: parent.right
anchors.topMargin: _topBottomMargins
anchors.top: parent.top
anchors.bottomMargin: _imageBottomMargin
anchors.bottom: helpText.top
anchors.bottomMargin: _topBottomMargins
anchors.bottom: parent.bottom
sourceSize.height: parent.height
fillMode: Image.PreserveAspectFit
color: logo ? "white" : (checked ? qgcPal.buttonHighlight : qgcPal.buttonText)
......@@ -106,16 +65,6 @@ Item {
visible: checked
}
QGCLabel {
id: helpText
anchors.left: parent.left
anchors.right: parent.right
anchors.bottomMargin: _helpTextBottomMargin
anchors.bottom: parent.bottom
horizontalAlignment: Text.AlignHCenter
color: logo ? "white" : qgcPal.buttonText
}
MouseArea {
anchors.fill: parent
onClicked: {
......
......@@ -332,7 +332,6 @@ Rectangle {
exclusiveGroup: mainActionGroup
source: "/res/QGCLogoWhite"
logo: true
text: "Settings"
onClicked: toolBar.showPreferences()
}
......@@ -343,7 +342,6 @@ Rectangle {
anchors.bottom: parent.bottom
exclusiveGroup: mainActionGroup
source: "/qmlimages/Gears.svg"
text: "Setup"
onClicked: toolBar.showSetupView()
}
......@@ -354,7 +352,6 @@ Rectangle {
anchors.bottom: parent.bottom
exclusiveGroup: mainActionGroup
source: "/qmlimages/Plan.svg"
text: "Plan"
onClicked: toolBar.showPlanView()
}
......@@ -365,7 +362,6 @@ Rectangle {
anchors.bottom: parent.bottom
exclusiveGroup: mainActionGroup
source: "/qmlimages/PaperPlane.svg"
text: "Fly"
onClicked: toolBar.showFlyView()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment