From 3d86499069b4dc463321c7de4f589fd58869320d Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 29 Mar 2019 15:41:20 +0100 Subject: [PATCH] Don't round the radius of the RadioButton Otherwise it looks like a weird circle. Contributes to CURA-6057. --- resources/qml/Widgets/RadioButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/Widgets/RadioButton.qml b/resources/qml/Widgets/RadioButton.qml index e17a38d833..eaa18c44cb 100644 --- a/resources/qml/Widgets/RadioButton.qml +++ b/resources/qml/Widgets/RadioButton.qml @@ -27,7 +27,7 @@ RadioButton implicitWidth: UM.Theme.getSize("radio_button").width implicitHeight: UM.Theme.getSize("radio_button").height anchors.verticalCenter: parent.verticalCenter - radius: (width / 2) | 0 + radius: width / 2 border.width: UM.Theme.getSize("default_lining").width border.color: radioButton.hovered ? UM.Theme.getColor("small_button_text") : UM.Theme.getColor("small_button_text_hover") @@ -36,7 +36,7 @@ RadioButton width: (parent.width / 2) | 0 height: width anchors.centerIn: parent - radius: (width / 2) | 0 + radius: width / 2 color: radioButton.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button") visible: radioButton.checked }