fix(StatusColorRadioButton): Fixed size as per design (#732)

This commit is contained in:
Igor Sirotin 2022-09-14 16:11:30 +03:00 committed by GitHub
parent 524a86b0cc
commit d02fea1cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -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
}
}
}

View File

@ -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