Commit 6abc3443 authored by dogmaphobic's avatar dogmaphobic

Component Summary window margins

parent e1d73b08
...@@ -22,7 +22,6 @@ FactPanel { ...@@ -22,7 +22,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
id: nameRow; id: nameRow;
labelText: qsTr("Frame Type:") labelText: qsTr("Frame Type:")
......
...@@ -24,7 +24,6 @@ FactPanel { ...@@ -24,7 +24,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
visible: _mountTypeExists visible: _mountTypeExists
......
...@@ -23,7 +23,6 @@ FactPanel { ...@@ -23,7 +23,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Flight Mode 1:") labelText: qsTr("Flight Mode 1:")
......
...@@ -42,7 +42,6 @@ FactPanel { ...@@ -42,7 +42,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Battery monitor:") labelText: qsTr("Battery monitor:")
......
...@@ -21,7 +21,6 @@ FactPanel { ...@@ -21,7 +21,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Roll:") labelText: qsTr("Roll:")
......
...@@ -85,7 +85,6 @@ FactPanel { ...@@ -85,7 +85,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Arming Checks:") labelText: qsTr("Arming Checks:")
......
...@@ -24,7 +24,6 @@ FactPanel { ...@@ -24,7 +24,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Throttle failsafe:") labelText: qsTr("Throttle failsafe:")
......
...@@ -46,7 +46,6 @@ FactPanel { ...@@ -46,7 +46,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Compass 1:") labelText: qsTr("Compass 1:")
......
...@@ -29,7 +29,6 @@ FactPanel { ...@@ -29,7 +29,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Firmware Version:") labelText: qsTr("Firmware Version:")
valueText: esp8266.version valueText: esp8266.version
......
...@@ -10,7 +10,6 @@ import QGroundControl.Palette 1.0 ...@@ -10,7 +10,6 @@ import QGroundControl.Palette 1.0
FactPanel { FactPanel {
id: panel id: panel
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
color: qgcPal.windowShadeDark color: qgcPal.windowShadeDark
QGCPalette { id: qgcPal; colorGroupEnabled: enabled } QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
......
...@@ -22,7 +22,6 @@ FactPanel { ...@@ -22,7 +22,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Trigger mode:") labelText: qsTr("Trigger mode:")
......
...@@ -22,7 +22,6 @@ FactPanel { ...@@ -22,7 +22,6 @@ FactPanel {
Loader { Loader {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
sourceComponent: _simpleMode ? simple : advanced sourceComponent: _simpleMode ? simple : advanced
} }
......
...@@ -24,7 +24,6 @@ FactPanel { ...@@ -24,7 +24,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Roll:") labelText: qsTr("Roll:")
......
...@@ -47,7 +47,6 @@ FactPanel { ...@@ -47,7 +47,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Battery Full:") labelText: qsTr("Battery Full:")
......
...@@ -24,7 +24,6 @@ FactPanel { ...@@ -24,7 +24,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("RTL min alt:") labelText: qsTr("RTL min alt:")
......
...@@ -27,7 +27,6 @@ FactPanel { ...@@ -27,7 +27,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Compass 0:") labelText: qsTr("Compass 0:")
......
...@@ -25,7 +25,6 @@ FactPanel { ...@@ -25,7 +25,6 @@ FactPanel {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Compass:") labelText: qsTr("Compass:")
......
...@@ -9,7 +9,7 @@ import QGroundControl.ScreenTools 1.0 ...@@ -9,7 +9,7 @@ import QGroundControl.ScreenTools 1.0
ComboBox { ComboBox {
property var _qgcPal: QGCPalette { colorGroupEnabled: enabled } property var _qgcPal: QGCPalette { colorGroupEnabled: enabled }
property bool _showHighlight: pressed | hovered property bool _showHighlight: pressed | hovered
property bool _showBorder: _qgcPal.globalTheme == QGCPalette.Light property bool _showBorder: _qgcPal.globalTheme === QGCPalette.Light
style: ComboBoxStyle { style: ComboBoxStyle {
font.pointSize: ScreenTools.defaultFontPointSize font.pointSize: ScreenTools.defaultFontPointSize
......
...@@ -20,7 +20,7 @@ TextField { ...@@ -20,7 +20,7 @@ TextField {
property var __qgcPal: QGCPalette { colorGroupEnabled: enabled } property var __qgcPal: QGCPalette { colorGroupEnabled: enabled }
textColor: __qgcPal.textFieldText textColor: __qgcPal.textFieldText
height: Math.max(25, Math.round(TextSingleton.implicitHeight * 1.2)) height: Math.max(25, Math.round(unitsLabel.implicitHeight * 1.2))
Label { Label {
id: unitsLabelWidthGenerator id: unitsLabelWidthGenerator
......
...@@ -151,8 +151,9 @@ Rectangle { ...@@ -151,8 +151,9 @@ Rectangle {
anchors.top: titleBar.bottom anchors.top: titleBar.bottom
width: parent.width width: parent.width
Loader { Loader {
anchors.fill: parent anchors.fill: parent
source: modelData.summaryQmlSource anchors.margins: ScreenTools.defaultFontPixelWidth
source: modelData.summaryQmlSource
} }
} }
} }
......
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