QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCChip.qml
Go to the documentation of this file.
1import QtQuick
2
3import QGroundControl
4import QGroundControl.Controls
5
6/// Small outlined pill for a short status such as "Shared"
7Rectangle {
8 id: control
9
10 property alias text: chipLabel.text
11 property color textColor: qgcPal.textSecondary
12
13 implicitWidth: chipLabel.implicitWidth + ScreenTools.defaultFontPixelWidth * 2
14 implicitHeight: chipLabel.implicitHeight + ScreenTools.defaultFontPixelHeight * 0.2
15 radius: height / 2
16 color: "transparent"
17 border.color: textColor
18
19 QGCPalette { id: qgcPal; colorGroupEnabled: control.enabled }
20
21 QGCLabel {
22 id: chipLabel
23 anchors.centerIn: parent
24 font.pointSize: ScreenTools.smallFontPointSize
25 color: control.textColor
26 }
27}