Browse Source

Make QGCCheckbox gray if disabled

QGC4.4
Gus Grubba 5 years ago committed by Lorenz Meier
parent
commit
d48bf56d3f
  1. 2
      src/QmlControls/QGCCheckBox.qml

2
src/QmlControls/QGCCheckBox.qml

@ -39,7 +39,7 @@ CheckBox {
implicitHeight: implicitWidth implicitHeight: implicitWidth
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: "white" color: control.enabled ? "white" : "gray"
border.color: qgcPal.text border.color: qgcPal.text
border.width: 1 border.width: 1
opacity: control.checkedState === Qt.PartiallyChecked ? 0.5 : 1 opacity: control.checkedState === Qt.PartiallyChecked ? 0.5 : 1

Loading…
Cancel
Save