aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/RadioButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/RadioButton.qml')
-rw-r--r--src/imports/controls/RadioButton.qml11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/imports/controls/RadioButton.qml b/src/imports/controls/RadioButton.qml
index 92890ed0..a73605ff 100644
--- a/src/imports/controls/RadioButton.qml
+++ b/src/imports/controls/RadioButton.qml
@@ -66,7 +66,6 @@ AbstractRadioButton {
radius: width / 2
border.width: control.activeFocus ? 2 : 1
border.color: control.activeFocus ? control.Theme.focusColor : control.Theme.frameColor
- opacity: enabled ? 1.0 : control.Theme.disabledOpacity
color: control.Theme.backgroundColor
Rectangle {
@@ -75,9 +74,10 @@ AbstractRadioButton {
width: 12
height: 12
radius: width / 2
- color: Qt.tint(Qt.tint(control.checked ? control.Theme.accentColor : control.Theme.baseColor,
- control.checked && control.activeFocus ? control.Theme.focusColor : "transparent"),
- control.pressed ? control.Theme.pressColor : "transparent")
+ color: Qt.tint(control.checked && !control.enabled ? control.Theme.disabledColor :
+ control.checked && control.activeFocus ? control.Theme.focusColor :
+ control.checked ? control.Theme.accentColor : control.Theme.baseColor,
+ control.pressed ? control.Theme.pressColor : "transparent")
border.width: control.checked || control.pressed ? 0 : 1
border.color: control.Theme.frameColor
}
@@ -92,10 +92,9 @@ AbstractRadioButton {
height: parent.height - control.topPadding - control.bottomPadding
text: control.text
- color: control.Theme.textColor
+ color: control.enabled ? control.Theme.textColor : control.Theme.disabledColor
elide: Text.ElideRight
visible: control.text
- opacity: enabled ? 1.0 : control.Theme.disabledOpacity
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}