You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1018 B
36 lines
1018 B
10 years ago
|
import QtQuick 2.2
|
||
|
import QtQuick.Controls 1.2
|
||
|
import QtQuick.Controls.Styles 1.2
|
||
|
|
||
|
import QGroundControl.Palette 1.0
|
||
|
|
||
|
CheckBox {
|
||
|
property var __qgcPal: QGCPalette { colorGroup: enabled ? QGCPalette.Active : QGCPalette.Disabled }
|
||
|
|
||
|
style: CheckBoxStyle {
|
||
|
label: Item {
|
||
|
implicitWidth: text.implicitWidth + 2
|
||
|
implicitHeight: text.implicitHeight
|
||
|
baselineOffset: text.baselineOffset
|
||
|
Rectangle {
|
||
|
anchors.fill: text
|
||
|
anchors.margins: -1
|
||
|
anchors.leftMargin: -3
|
||
|
anchors.rightMargin: -3
|
||
|
visible: control.activeFocus
|
||
|
height: 6
|
||
|
radius: 3
|
||
|
color: "#224f9fef"
|
||
|
border.color: "#47b"
|
||
|
opacity: 0.6
|
||
|
}
|
||
|
Text {
|
||
|
id: text
|
||
|
text: control.text
|
||
|
anchors.centerIn: parent
|
||
|
color: control.__qgcPal.windowText
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|