Commit f185e875 authored by Gus Grubba's avatar Gus Grubba

Make buttons bigger

parent 034b658a
...@@ -965,23 +965,25 @@ Item { ...@@ -965,23 +965,25 @@ Item {
contentHeight: comboListCol.height contentHeight: comboListCol.height
contentWidth: comboListCol.width contentWidth: comboListCol.width
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Column { ColumnLayout {
id: comboListCol id: comboListCol
spacing: ScreenTools.defaultFontPixelHeight spacing: ScreenTools.defaultFontPixelHeight
anchors.margins: ScreenTools.defaultFontPixelHeight anchors.margins: ScreenTools.defaultFontPixelHeight
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
QGCLabel { QGCLabel {
text: qsTr("Thermal Palettes") text: qsTr("Thermal Palettes")
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignHCenter
} }
Repeater { Repeater {
model: _irPaletteFact ? _irPaletteFact.enumStrings : [] model: _irPaletteFact ? _irPaletteFact.enumStrings : []
QGCButton { QGCButton {
text: modelData text: modelData
width: ScreenTools.defaultFontPixelWidth * 30 Layout.minimumHeight: ScreenTools.defaultFontPixelHeight * 3
height: ScreenTools.defaultFontPixelHeight * 2 Layout.minimumWidth: ScreenTools.defaultFontPixelWidth * 30
checked: index === _irPaletteFact.value Layout.fillHeight: true
anchors.horizontalCenter: parent.horizontalCenter Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
checked: index === _irPaletteFact.value
onClicked: { onClicked: {
_irPaletteFact.value = index _irPaletteFact.value = index
thermalPalettes.close() thermalPalettes.close()
......
...@@ -73,21 +73,23 @@ Item { ...@@ -73,21 +73,23 @@ Item {
border.color: qgcPal.text border.color: qgcPal.text
radius: ScreenTools.defaultFontPixelWidth radius: ScreenTools.defaultFontPixelWidth
} }
Column { ColumnLayout {
id: comboListCol id: comboListCol
spacing: ScreenTools.defaultFontPixelHeight spacing: ScreenTools.defaultFontPixelHeight
anchors.centerIn: parent anchors.centerIn: parent
QGCLabel { QGCLabel {
text: qsTr("Flight Modes") text: qsTr("Flight Modes")
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignHCenter
} }
Repeater { Repeater {
model: activeVehicle ? activeVehicle.flightModes : [ ] model: activeVehicle ? activeVehicle.flightModes : [ ]
QGCButton { QGCButton {
text: modelData text: modelData
width: ScreenTools.defaultFontPixelWidth * 30 Layout.minimumHeight: ScreenTools.defaultFontPixelHeight * 3
height: ScreenTools.defaultFontPixelHeight * 2 Layout.minimumWidth: ScreenTools.defaultFontPixelWidth * 30
anchors.horizontalCenter: parent.horizontalCenter Layout.fillHeight: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
onClicked: { onClicked: {
activeVehicle.flightMode = modelData activeVehicle.flightMode = modelData
flightModesMenu.close() flightModesMenu.close()
......
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