2020-09-17 15:55:09 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQml 2.14
|
|
|
|
import "../../imports"
|
|
|
|
import "../../shared"
|
|
|
|
|
|
|
|
RadioButton {
|
|
|
|
id: control
|
|
|
|
indicator: Rectangle {
|
|
|
|
implicitWidth: 20
|
|
|
|
implicitHeight: 20
|
2020-09-18 12:22:33 +00:00
|
|
|
x: 0
|
|
|
|
y: 6
|
2020-09-17 15:55:09 +00:00
|
|
|
radius: 10
|
|
|
|
color: control.checked ? Style.current.blue : Style.current.grey
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: 12
|
|
|
|
height: 12
|
|
|
|
radius: 6
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
color: control.checked ? Style.current.white : Style.current.grey
|
|
|
|
visible: control.checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contentItem: StyledText {
|
|
|
|
text: control.text
|
|
|
|
color: Style.current.textColor
|
2020-09-18 12:22:33 +00:00
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
leftPadding: !!control.text ? control.indicator.width + control.spacing : control.indicator.width
|
|
|
|
font.pixelSize: 15
|
2020-09-17 15:55:09 +00:00
|
|
|
}
|
|
|
|
}
|