From a526d0d31daf3450e6ad01fb3483d6bb325a31a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Wed, 31 Aug 2022 14:42:42 +0200 Subject: [PATCH] fix(StatusRadioButton): radio button indicator centered --- src/StatusQ/Controls/StatusRadioButton.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StatusQ/Controls/StatusRadioButton.qml b/src/StatusQ/Controls/StatusRadioButton.qml index 3717769f..42d1ff9a 100644 --- a/src/StatusQ/Controls/StatusRadioButton.qml +++ b/src/StatusQ/Controls/StatusRadioButton.qml @@ -29,8 +29,9 @@ RadioButton { indicator: Rectangle { implicitWidth: size === StatusRadioButton.Size.Large ? 20 : 14 implicitHeight: size === StatusRadioButton.Size.Large ? 20 : 14 - x: 0 - y: 6 + + anchors.verticalCenter: parent.verticalCenter + radius: 10 color: statusRadioButton.checked ? Theme.palette.primaryColor1 : Theme.palette.directColor8 @@ -39,8 +40,7 @@ RadioButton { width: size === StatusRadioButton.Size.Large ? 12 : 8 height: size === StatusRadioButton.Size.Large ? 12 : 8 radius: 6 - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter + anchors.centerIn: parent color: statusRadioButton.checked ? Theme.palette.white : "transparent" visible: statusRadioButton.checked }