CheckBox: change opacity to 70% in disabled state

This commit is contained in:
xiphon 2021-02-04 11:47:00 +00:00
parent c1573c2c2a
commit 3c27c570d4

View file

@ -49,8 +49,10 @@ Item {
property alias fontColor: label.color property alias fontColor: label.color
property bool iconOnTheLeft: true property bool iconOnTheLeft: true
signal clicked() signal clicked()
height: 25 height: 25
width: checkBoxLayout.width width: checkBoxLayout.width
opacity: enabled ? 1 : 0.7
function toggle(){ function toggle(){
if (checkBox.toggleOnClick) { if (checkBox.toggleOnClick) {