Browse Source

Merge pull request #2314 from DonLakeFlyer/FMTweak

Tweaks to Flight Mode Config visuals
QGC4.4
Don Gagne 10 years ago
parent
commit
fb0a89635d
  1. 2
      src/AutoPilotPlugins/PX4/FlightModesComponent.qml
  2. 6
      src/QmlControls/ModeSwitchDisplay.qml

2
src/AutoPilotPlugins/PX4/FlightModesComponent.qml

@ -226,7 +226,7 @@ QGCView { @@ -226,7 +226,7 @@ QGCView {
anchors.left: parent.left
anchors.right: applyButton.left
text: topHelpText
font.pixelSize: ScreenTools.mediumFontPixelSize
font.pixelSize: ScreenTools.defaultFontPixelSize
wrapMode: Text.WordWrap
}

6
src/QmlControls/ModeSwitchDisplay.qml

@ -64,15 +64,17 @@ Rectangle { @@ -64,15 +64,17 @@ Rectangle {
Rectangle {
width: modeLabel.width
height: modeLabel.contentHeight
height: channelCombo.height
color: modeSelected ? _qgcPal.buttonHighlight : _qgcPal.button
QGCLabel {
id: modeLabel
width: ScreenTools.defaultFontPixelWidth * 18
anchors.top: parent.top
anchors.bottom: parent.bottom
color: modeSelected ? _qgcPal.buttonHighlightText : _qgcPal.text
horizontalAlignment: Text.AlignHCenter
font.pixelSize: ScreenTools.mediumFontPixelSize
verticalAlignment: Text.AlignVCenter
text: flightModeName
}
}

Loading…
Cancel
Save