Commit be5414a3 authored by Don Gagne's avatar Don Gagne

Fix indicator

parent bff00f32
...@@ -6,11 +6,10 @@ import QGroundControl.Palette 1.0 ...@@ -6,11 +6,10 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
RadioButton { RadioButton {
property var color: qgcPal.text ///< Text color property var color: qgcPal.text ///< Text color
property int textStyle: Text.Normal property int textStyle: Text.Normal
property color textStyleColor: qgcPal.text property color textStyleColor: qgcPal.text
property var qgcPal: QGCPalette { colorGroupEnabled: enabled }
QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
style: RadioButtonStyle { style: RadioButtonStyle {
label: Item { label: Item {
...@@ -47,7 +46,8 @@ RadioButton { ...@@ -47,7 +46,8 @@ RadioButton {
indicator: Rectangle { indicator: Rectangle {
width: ScreenTools.radioButtonIndicatorSize width: ScreenTools.radioButtonIndicatorSize
height: width height: width
border.color: qgcPal.text color: "white"
border.color: control.qgcPal.text
antialiasing: true antialiasing: true
radius: height / 2 radius: height / 2
...@@ -56,8 +56,8 @@ RadioButton { ...@@ -56,8 +56,8 @@ RadioButton {
width: Math.round(parent.width * 0.5) width: Math.round(parent.width * 0.5)
height: width height: width
antialiasing: true antialiasing: true
radius: height/2 radius: height / 2
color: qgcPal.text color: "black"
opacity: control.checked ? (control.enabled ? 1 : 0.5) : 0 opacity: control.checked ? (control.enabled ? 1 : 0.5) : 0
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment