5import QGroundControl.Controls
9 height: ScreenTools.defaultFontPixelHeight * 4
12 background: Rectangle {
14 color: _showHighlight ? qgcPal.buttonHighlight : qgcPal.button
15 border.width: _showBorder ? 1: 0
16 border.color: qgcPal.buttonText
19 property var tileSet: null
20 property var currentSet: null
21 property bool complete: false
23 property string size: ""
25 property bool _showHighlight: (_pressed | _hovered | checked) && !_forceHoverOff
26 property bool _showBorder: qgcPal.globalTheme === QGCPalette.Light
28 property bool _forceHoverOff: false
29 property int _lastGlobalMouseX: 0
30 property int _lastGlobalMouseY: 0
31 property bool _pressed: false
32 property bool _hovered: false
35 anchors.centerIn: parent
36 anchors.margins: ScreenTools.defaultFontPixelWidth
39 width: mapButton.width * 0.4
40 color: _showHighlight ? qgcPal.buttonHighlightText : qgcPal.buttonText
43 anchors.verticalCenter: parent.verticalCenter
47 width: mapButton.width * 0.4
48 horizontalAlignment: Text.AlignRight
49 anchors.verticalCenter: parent.verticalCenter
50 color: _showHighlight ? qgcPal.buttonHighlightText : qgcPal.buttonText
51 text: mapButton.size + (tiles > 0 ? " (" + tiles + " tiles)" : "")
54 width: ScreenTools.defaultFontPixelWidth * 2
58 width: sizeLabel.height * 0.5
59 height: sizeLabel.height * 0.5
61 color: complete ? "#31f55b" : "#fc5656"
62 opacity: sizeLabel.text.length > 0 ? 1 : 0
63 anchors.verticalCenter: parent.verticalCenter
66 width: ScreenTools.defaultFontPixelWidth * 2
70 width: sizeLabel.height * 0.8
71 height: sizeLabel.height * 0.8
72 sourceSize.height: height
73 source: "/res/buttonRight.svg"
75 fillMode: Image.PreserveAspectFit
76 color: _showHighlight ? qgcPal.buttonHighlightText : qgcPal.buttonText
77 anchors.verticalCenter: parent.verticalCenter