6import QGroundControl.Controls
10 padding: ScreenTools.defaultFontPixelWidth * 0.75
11 hoverEnabled: !ScreenTools.isMobile
15 property color textColor: checked || pressed ? qgcPal.buttonHighlightText : qgcPal.buttonText
19 colorGroupEnabled: control.enabled
22 background: Rectangle {
23 color: qgcPal.buttonHighlight
24 opacity: checked || pressed ? 1 : enabled && hovered ? .2 : 0
25 radius: ScreenTools.defaultFontPixelWidth / 2
28 contentItem: RowLayout {
29 spacing: ScreenTools.defaultFontPixelWidth
32 source: control.icon.source
33 color: control.icon.color
34 width: ScreenTools.defaultFontPixelHeight
35 height: ScreenTools.defaultFontPixelHeight
40 Layout.fillWidth: true
42 color: control.textColor
43 horizontalAlignment: QGCLabel.AlignLeft