mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:19:05 +08:00
Don't round the radius of the RadioButton
Otherwise it looks like a weird circle. Contributes to CURA-6057.
This commit is contained in:
parent
d8f89d8330
commit
3d86499069
@ -27,7 +27,7 @@ RadioButton
|
|||||||
implicitWidth: UM.Theme.getSize("radio_button").width
|
implicitWidth: UM.Theme.getSize("radio_button").width
|
||||||
implicitHeight: UM.Theme.getSize("radio_button").height
|
implicitHeight: UM.Theme.getSize("radio_button").height
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
radius: (width / 2) | 0
|
radius: width / 2
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
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")
|
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
|
width: (parent.width / 2) | 0
|
||||||
height: width
|
height: width
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: (width / 2) | 0
|
radius: width / 2
|
||||||
color: radioButton.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button")
|
color: radioButton.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button")
|
||||||
visible: radioButton.checked
|
visible: radioButton.checked
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user