Commit 482e0da6 authored by Don Gagne's avatar Don Gagne

Color support

parent 3b129767
...@@ -6,7 +6,9 @@ import QGroundControl.Palette 1.0 ...@@ -6,7 +6,9 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
RadioButton { RadioButton {
property var __qgcPal: QGCPalette { colorGroupEnabled: enabled } property var color: _qgcPal.text ///< Text color
property var _qgcPal: QGCPalette { colorGroupEnabled: enabled }
style: RadioButtonStyle { style: RadioButtonStyle {
label: Item { label: Item {
...@@ -31,7 +33,7 @@ RadioButton { ...@@ -31,7 +33,7 @@ RadioButton {
font.pointSize: ScreenTools.defaultFontPointSize font.pointSize: ScreenTools.defaultFontPointSize
font.family: ScreenTools.normalFontFamily font.family: ScreenTools.normalFontFamily
antialiasing: true antialiasing: true
color: control.__qgcPal.text color: control.color
anchors.centerIn: parent anchors.centerIn: parent
} }
} }
......
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