Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f185e875
Commit
f185e875
authored
Jul 30, 2019
by
Gus Grubba
Browse files
Make buttons bigger
parent
034b658a
Changes
2
Hide whitespace changes
Inline
Side-by-side
custom-example/res/CustomCameraControl.qml
View file @
f185e875
...
...
@@ -965,23 +965,25 @@ Item {
contentHeight
:
comboListCol
.
height
contentWidth
:
comboListCol
.
width
anchors.horizontalCenter
:
parent
.
horizontalCenter
Column
{
Column
Layout
{
id
:
comboListCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
text
:
qsTr
(
"
Thermal Palettes
"
)
anchors.horizontalCenter
:
parent
.
horizontal
Center
text
:
qsTr
(
"
Thermal Palettes
"
)
Layout.alignment
:
Qt
.
AlignH
Center
}
Repeater
{
model
:
_irPaletteFact
?
_irPaletteFact
.
enumStrings
:
[]
QGCButton
{
text
:
modelData
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
height
:
ScreenTools
.
defaultFontPixelHeight
*
2
checked
:
index
===
_irPaletteFact
.
value
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
modelData
Layout.minimumHeight
:
ScreenTools
.
defaultFontPixelHeight
*
3
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
checked
:
index
===
_irPaletteFact
.
value
onClicked
:
{
_irPaletteFact
.
value
=
index
thermalPalettes
.
close
()
...
...
custom-example/res/MainToolbar/CustomModeIndicator.qml
View file @
f185e875
...
...
@@ -73,21 +73,23 @@ Item {
border.color
:
qgcPal
.
text
radius
:
ScreenTools
.
defaultFontPixelWidth
}
Column
{
Column
Layout
{
id
:
comboListCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
anchors.centerIn
:
parent
QGCLabel
{
text
:
qsTr
(
"
Flight Modes
"
)
anchors.horizontalCenter
:
parent
.
horizontal
Center
text
:
qsTr
(
"
Flight Modes
"
)
Layout.alignment
:
Qt
.
AlignH
Center
}
Repeater
{
model
:
activeVehicle
?
activeVehicle
.
flightModes
:
[
]
QGCButton
{
text
:
modelData
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
height
:
ScreenTools
.
defaultFontPixelHeight
*
2
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.minimumHeight
:
ScreenTools
.
defaultFontPixelHeight
*
3
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
onClicked
:
{
activeVehicle
.
flightMode
=
modelData
flightModesMenu
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment