From 482e0da6f3554dbbcb734cad56017d9e349f55e9 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 1 Sep 2016 11:25:05 -0700 Subject: [PATCH] Color support --- src/QmlControls/QGCRadioButton.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/QmlControls/QGCRadioButton.qml b/src/QmlControls/QGCRadioButton.qml index 3b18aa4ed..4747e3d41 100644 --- a/src/QmlControls/QGCRadioButton.qml +++ b/src/QmlControls/QGCRadioButton.qml @@ -6,7 +6,9 @@ import QGroundControl.Palette 1.0 import QGroundControl.ScreenTools 1.0 RadioButton { - property var __qgcPal: QGCPalette { colorGroupEnabled: enabled } + property var color: _qgcPal.text ///< Text color + + property var _qgcPal: QGCPalette { colorGroupEnabled: enabled } style: RadioButtonStyle { label: Item { @@ -31,7 +33,7 @@ RadioButton { font.pointSize: ScreenTools.defaultFontPointSize font.family: ScreenTools.normalFontFamily antialiasing: true - color: control.__qgcPal.text + color: control.color anchors.centerIn: parent } } -- 2.22.0