Browse Source

Color support

QGC4.4
Don Gagne 9 years ago
parent
commit
482e0da6f3
  1. 6
      src/QmlControls/QGCRadioButton.qml

6
src/QmlControls/QGCRadioButton.qml

@ -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 {
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
} }
} }

Loading…
Cancel
Save