5import QGroundControl.Controls
9 height: ScreenTools.defaultFontPixelHeight * 4
12 background: Rectangle {
14 color: _showSelected ? qgcPal.accentSubtle : qgcPal.windowCard
16 border.color: _showHighlight ? qgcPal.accent : qgcPal.borderSubtle
17 radius: ScreenTools.defaultBorderRadius
20 property var tileSet: null
21 property var currentSet: null
22 property bool complete: false
24 property string size: ""
26 property bool _showHighlight: (_pressed || _hovered || checked) && !_forceHoverOff
27 property bool _showSelected: (_pressed || checked) && !_forceHoverOff
29 property bool _forceHoverOff: false
30 property int _lastGlobalMouseX: 0
31 property int _lastGlobalMouseY: 0
32 property bool _pressed: false
33 property bool _hovered: false
36 anchors.centerIn: parent
37 anchors.margins: ScreenTools.defaultFontPixelWidth
40 width: mapButton.width * 0.4
41 color: qgcPal.textPrimary
44 anchors.verticalCenter: parent.verticalCenter
48 width: mapButton.width * 0.4
49 horizontalAlignment: Text.AlignRight
50 anchors.verticalCenter: parent.verticalCenter
51 color: qgcPal.textPrimary
52 text: mapButton.size + (tiles > 0 ? " (" + tiles + " tiles)" : "")
55 width: ScreenTools.defaultFontPixelWidth * 2
59 width: sizeLabel.height * 0.5
60 height: sizeLabel.height * 0.5
62 color: complete ? "#31f55b" : "#fc5656"
63 opacity: sizeLabel.text.length > 0 ? 1 : 0
64 anchors.verticalCenter: parent.verticalCenter
67 width: ScreenTools.defaultFontPixelWidth * 2
71 width: sizeLabel.height * 0.8
72 height: sizeLabel.height * 0.8
73 sourceSize.height: height
74 source: "/res/buttonRight.svg"
76 fillMode: Image.PreserveAspectFit
77 color: qgcPal.textPrimary
78 anchors.verticalCenter: parent.verticalCenter