aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/RadioDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/RadioDelegate.qml')
-rw-r--r--src/imports/controls/RadioDelegate.qml21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/imports/controls/RadioDelegate.qml b/src/imports/controls/RadioDelegate.qml
index bf14dbc1..8cfe6e5f 100644
--- a/src/imports/controls/RadioDelegate.qml
+++ b/src/imports/controls/RadioDelegate.qml
@@ -71,11 +71,28 @@ T.RadioDelegate {
color: control.palette.text
}
- indicator: RadioIndicator {
+ // keep in sync with RadioButton.qml (shared RadioIndicator.qml was removed for performance reasons)
+ indicator: Rectangle {
+ implicitWidth: 28
+ implicitHeight: 28
+
x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
y: control.topPadding + (control.availableHeight - height) / 2
- control: control
+ radius: width / 2
+ color: control.down ? control.palette.light : control.palette.base
+ border.width: control.visualFocus ? 2 : 1
+ border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
+
+ Rectangle {
+ x: (parent.width - width) / 2
+ y: (parent.height - height) / 2
+ width: 20
+ height: 20
+ radius: width / 2
+ color: control.palette.text
+ visible: control.checked
+ }
}
background: Rectangle {