Commit 0d77a9cf authored by DonLakeFlyer's avatar DonLakeFlyer

Fix compass rose sizing

parent 2823a401
......@@ -440,12 +440,23 @@ Rectangle {
Layout.fillWidth: true
}
ToolButton {
Rectangle {
id: windRoseButton
anchors.verticalCenter: angleText.verticalCenter
iconSource: qgcPal.globalTheme === QGCPalette.Light ? "/res/wind-roseBlack.svg" : "/res/wind-rose.svg"
width: ScreenTools.implicitTextFieldHeight
height: width
color: qgcPal.button
visible: _vehicle.fixedWing
QGCColoredImage {
anchors.fill: parent
source: "/res/wind-rose.svg"
smooth: true
color: qgcPal.buttonText
}
QGCMouseArea {
fillItem: parent
onClicked: {
windRosePie.angle = Number(gridAngleText.text)
var cords = windRoseButton.mapToItem(_root, 0, 0)
......@@ -453,6 +464,7 @@ Rectangle {
}
}
}
}
FactTextField {
id: gridAngleText
......@@ -543,19 +555,31 @@ Rectangle {
Layout.fillWidth: true
}
ToolButton {
Rectangle {
id: manualWindRoseButton
anchors.verticalCenter: manualAngleText.verticalCenter
Layout.columnSpan: 1
iconSource: qgcPal.globalTheme === QGCPalette.Light ? "/res/wind-roseBlack.svg" : "/res/wind-rose.svg"
width: ScreenTools.implicitTextFieldHeight
height: width
color: qgcPal.button
visible: _vehicle.fixedWing
QGCColoredImage {
anchors.fill: parent
source: "/res/wind-rose.svg"
smooth: true
color: qgcPal.buttonText
}
QGCMouseArea {
fillItem: parent
onClicked: {
windRosePie.angle = Number(gridAngleText.text)
var cords = manualWindRoseButton.mapToItem(_root, 0, 0)
windRosePie.popup(cords.x + manualWindRoseButton.width / 2, cords.y + manualWindRoseButton.height / 2)
}
}
}
}
FactTextField {
id: manualGridAngleText
......
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