From d02fea1cd3462f2c9fc4ac5e248495b0ada03a28 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Wed, 14 Sep 2022 16:11:30 +0300 Subject: [PATCH] fix(StatusColorRadioButton): Fixed size as per design (#732) --- src/StatusQ/Controls/StatusColorRadioButton.qml | 14 ++++++++------ src/StatusQ/Controls/StatusColorSelectorGrid.qml | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/StatusQ/Controls/StatusColorRadioButton.qml b/src/StatusQ/Controls/StatusColorRadioButton.qml index 3f0ebd4e..38692af7 100644 --- a/src/StatusQ/Controls/StatusColorRadioButton.qml +++ b/src/StatusQ/Controls/StatusColorRadioButton.qml @@ -8,11 +8,13 @@ RadioButton { property string radioButtonColor: "" property string selectionColor: StatusColors.colors['white'] - property int diameter: 48 - property int selectorDiameter: 20 + property int diameter: 44 + property int selectorDiameter: 16 - implicitWidth: 48 - implicitHeight: 48 + spacing: 0 + + implicitWidth: 44 + implicitHeight: 44 indicator: Rectangle { implicitWidth: control.diameter @@ -21,13 +23,13 @@ RadioButton { color: radioButtonColor Rectangle { + anchors.centerIn: parent width: control.selectorDiameter height: control.selectorDiameter + visible: control.checked radius: width/2 color: selectionColor border.color: StatusColors.colors['grey3'] - visible: control.checked - anchors.centerIn: parent } } } diff --git a/src/StatusQ/Controls/StatusColorSelectorGrid.qml b/src/StatusQ/Controls/StatusColorSelectorGrid.qml index e43c8640..d4d94c37 100644 --- a/src/StatusQ/Controls/StatusColorSelectorGrid.qml +++ b/src/StatusQ/Controls/StatusColorSelectorGrid.qml @@ -36,6 +36,7 @@ Column { StatusBaseText { id: title + width: parent.width verticalAlignment: Text.AlignVCenter font.pixelSize: 13 color: Theme.palette.baseColor1 @@ -46,6 +47,7 @@ Column { columns: 6 rowSpacing: 16 columnSpacing: 32 + Repeater { objectName: "statusColorRepeater" model: root.model