5import QGroundControl.Controls
11 property alias buttonImage: button.source
12 property real radius: ScreenTools.isMobile ? ScreenTools.defaultFontPixelHeight * 1.75 : ScreenTools.defaultFontPixelHeight * 1.25
13 property bool rotateImage: false
14 property bool lightBorders: true
19 property bool checked: false
20 property ButtonGroup buttonGroup: null
22 QGCPalette { id: qgcPal }
24 onButtonGroupChanged: {
26 buttonGroup.addButton(_root)
30 onRotateImageChanged: {
32 imageRotation.running = true
34 imageRotation.running = false
42 border.width: ScreenTools.defaultFontPixelHeight * 0.0625
43 border.color: lightBorders ? qgcPal.mapWidgetBorderLight : qgcPal.mapWidgetBorderDark
44 color: checked ? qgcPal.buttonHighlight : qgcPal.button
49 sourceSize.height: parent.height
50 fillMode: Image.PreserveAspectFit
53 color: checked ? qgcPal.buttonHighlightText : qgcPal.buttonText
55 RotationAnimation on rotation {
57 loops: Animation.Infinite