use standard radiobuttons with light color scheme

This commit is contained in:
Alexander Ivash 2018-04-28 00:05:20 +03:00
parent d3848ea0c5
commit cdc9a325eb

View file

@ -161,16 +161,9 @@ Rectangle {
ButtonGroup.group: leftRight ButtonGroup.group: leftRight
checked: true checked: true
colorScheme: hifi.colorSchemes.light
text: "Left hand" text: "Left hand"
boxSize: 20 boxSize: 20
contentItem: TextStyle9 {
text: leftHandRadioButton.text
color: 'black'
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
leftPadding: leftHandRadioButton.indicator.width + leftHandRadioButton.spacing
}
} }
HifiControlsUit.RadioButton { HifiControlsUit.RadioButton {
@ -180,16 +173,9 @@ Rectangle {
Layout.column: 2 Layout.column: 2
ButtonGroup.group: leftRight ButtonGroup.group: leftRight
colorScheme: hifi.colorSchemes.light
text: "Right hand" text: "Right hand"
boxSize: 20 boxSize: 20
contentItem: TextStyle9 {
text: rightHandRadioButton.text
color: 'black'
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
leftPadding: rightHandRadioButton.indicator.width + rightHandRadioButton.spacing
}
} }
RalewaySemiBold { RalewaySemiBold {
@ -210,20 +196,17 @@ Rectangle {
Layout.row: 1 Layout.row: 1
Layout.column: 1 Layout.column: 1
Layout.leftMargin: -18 Layout.leftMargin: -18
ButtonGroup.group: onOff ButtonGroup.group: onOff
colorScheme: hifi.colorSchemes.light
checked: true checked: true
text: "ON" text: "ON"
boxSize: 20 boxSize: 20
}
contentItem: TextStyle9 { HifiConstants {
text: onRadioButton.text id: hifi
color: 'black'
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
leftPadding: onRadioButton.indicator.width + onRadioButton.spacing
}
} }
HifiControlsUit.RadioButton { HifiControlsUit.RadioButton {
@ -232,17 +215,10 @@ Rectangle {
Layout.row: 1 Layout.row: 1
Layout.column: 2 Layout.column: 2
ButtonGroup.group: onOff ButtonGroup.group: onOff
colorScheme: hifi.colorSchemes.light
text: "OFF" text: "OFF"
boxSize: 20 boxSize: 20
contentItem: TextStyle9 {
text: offRadioButton.text
color: 'black'
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
leftPadding: offRadioButton.indicator.width + offRadioButton.spacing
}
} }
} }