Browse Source

QGCButton.qml: add fontWeight property

QGC4.4
davidsastresas 12 months ago committed by Julian Oes
parent
commit
156be66786
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 2
      src/QmlControls/QGCButton.qml

2
src/QmlControls/QGCButton.qml

@ -20,6 +20,7 @@ Button { @@ -20,6 +20,7 @@ Button {
property bool iconLeft: false
property real backRadius: 0
property real heightFactor: 0.5
property real fontWeight: Font.Normal // default for qml Text
property string iconSource
property alias wrapMode: text.wrapMode
@ -71,6 +72,7 @@ Button { @@ -71,6 +72,7 @@ Button {
text: control.text
font.pointSize: pointSize
font.family: ScreenTools.normalFontFamily
font.weight: fontWeight
color: _showHighlight ?
qgcPal.buttonHighlightText :
(primary ? qgcPal.primaryButtonText : qgcPal.buttonText)

Loading…
Cancel
Save