From 2ca79a212f69e2c7efbeb24d1ffabad69a73282c Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 13 Dec 2019 06:21:30 -0400 Subject: [PATCH] Increase chechbox indicator opacity when disabled --- src/qml/Base/HCheckBox.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/Base/HCheckBox.qml b/src/qml/Base/HCheckBox.qml index c77688d8..8d7493e6 100644 --- a/src/qml/Base/HCheckBox.qml +++ b/src/qml/Base/HCheckBox.qml @@ -7,7 +7,6 @@ CheckBox { id: box spacing: theme.spacing padding: 0 - opacity: enabled ? 1 : theme.disabledElementsOpacity property alias mainText: mainText @@ -18,6 +17,7 @@ CheckBox { indicator: Rectangle { + opacity: box.enabled ? 1 : theme.disabledElementsOpacity + 0.2 implicitWidth: theme.controls.checkBox.boxSize implicitHeight: implicitWidth x: box.leftPadding @@ -55,6 +55,8 @@ CheckBox { } contentItem: HColumnLayout { + opacity: box.enabled ? 1 : theme.disabledElementsOpacity + HLabel { id: mainText text: box.text