aboutsummaryrefslogtreecommitdiff
path: root/components/RadioButton.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2018-04-28 16:40:01 +0200
committerSander Ferdinand <sa.ferdinand@gmail.com>2018-04-28 16:40:01 +0200
commitc40944144abba11d97647ddab38309cf900a0130 (patch)
tree9b0999349c161c5522ee15cc671300116ad77c80 /components/RadioButton.qml
parent610682c2beb57e9fafe45425e66e0d77c232bf5d (diff)
downloadmonzero-gui-c40944144abba11d97647ddab38309cf900a0130.tar.gz
monzero-gui-c40944144abba11d97647ddab38309cf900a0130.tar.xz
monzero-gui-c40944144abba11d97647ddab38309cf900a0130.zip
Radio buttons for the welcome wizard
Diffstat (limited to 'components/RadioButton.qml')
-rw-r--r--components/RadioButton.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/RadioButton.qml b/components/RadioButton.qml
index dbf8e865..083cb301 100644
--- a/components/RadioButton.qml
+++ b/components/RadioButton.qml
@@ -39,6 +39,9 @@ RowLayout {
property alias fontColor: label.color
signal clicked()
height: 26 * scaleRatio
+ // legacy properties
+ property var checkedColor: "white"
+ property var borderColor: checked ? Qt.rgba(1, 1, 1, 0.35) : Qt.rgba(1, 1, 1, 0.25)
function toggle(){
radioButton.checked = !radioButton.checked
@@ -52,7 +55,7 @@ RowLayout {
anchors.left: parent.left
y: 0
color: "transparent"
- border.color: radioButton.checked ? Qt.rgba(1, 1, 1, 0.35) : Qt.rgba(1, 1, 1, 0.25)
+ border.color: borderColor
width: radioButton.height
height: radioButton.height
radius: radioButton.height
@@ -61,7 +64,7 @@ RowLayout {
visible: radioButton.checked
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
- color: "white"
+ color: checkedColor
width: 10 * scaleRatio
height: 10 * scaleRatio
radius: 10