Skip to content

Commit

Permalink
Color support
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Sep 1, 2016
1 parent 3b12976 commit 482e0da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/QmlControls/QGCRadioButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
}
Expand Down

0 comments on commit 482e0da

Please sign in to comment.