fix(StatusRadioButton): radio button indicator centered
This commit is contained in:
parent
8646daa401
commit
a526d0d31d
|
@ -29,8 +29,9 @@ RadioButton {
|
||||||
indicator: Rectangle {
|
indicator: Rectangle {
|
||||||
implicitWidth: size === StatusRadioButton.Size.Large ? 20 : 14
|
implicitWidth: size === StatusRadioButton.Size.Large ? 20 : 14
|
||||||
implicitHeight: size === StatusRadioButton.Size.Large ? 20 : 14
|
implicitHeight: size === StatusRadioButton.Size.Large ? 20 : 14
|
||||||
x: 0
|
|
||||||
y: 6
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
radius: 10
|
radius: 10
|
||||||
color: statusRadioButton.checked ? Theme.palette.primaryColor1
|
color: statusRadioButton.checked ? Theme.palette.primaryColor1
|
||||||
: Theme.palette.directColor8
|
: Theme.palette.directColor8
|
||||||
|
@ -39,8 +40,7 @@ RadioButton {
|
||||||
width: size === StatusRadioButton.Size.Large ? 12 : 8
|
width: size === StatusRadioButton.Size.Large ? 12 : 8
|
||||||
height: size === StatusRadioButton.Size.Large ? 12 : 8
|
height: size === StatusRadioButton.Size.Large ? 12 : 8
|
||||||
radius: 6
|
radius: 6
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.centerIn: parent
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: statusRadioButton.checked ? Theme.palette.white : "transparent"
|
color: statusRadioButton.checked ? Theme.palette.white : "transparent"
|
||||||
visible: statusRadioButton.checked
|
visible: statusRadioButton.checked
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue