summaryrefslogtreecommitdiffstats
path: root/framework/qml/AbstractButton.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 11:39:14 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 11:39:14 -0600
commit91431d3694ab6823717eb6b43b669dae87c6d3d6 (patch)
treed8039c4b16d1c615a7d449824cdd669069ea982f /framework/qml/AbstractButton.qml
parent7e6bd8ff32aba63ec9a3006904106c5fa4614f1a (diff)
downloadkube-91431d3694ab6823717eb6b43b669dae87c6d3d6.tar.gz
kube-91431d3694ab6823717eb6b43b669dae87c6d3d6.zip
Set an application wide default font.
Theoretically this should be picked up by all qtquickcontrols2 controls, and they should also handle inheriting the fonts to children. Seems to work for AbstractButton, but didn't for the label...
Diffstat (limited to 'framework/qml/AbstractButton.qml')
-rw-r--r--framework/qml/AbstractButton.qml3
1 files changed, 0 insertions, 3 deletions
diff --git a/framework/qml/AbstractButton.qml b/framework/qml/AbstractButton.qml
index 53926cab..28337681 100644
--- a/framework/qml/AbstractButton.qml
+++ b/framework/qml/AbstractButton.qml
@@ -40,8 +40,6 @@ T.Button {
40 hoverEnabled: true 40 hoverEnabled: true
41 Keys.onReturnPressed: root.clicked() 41 Keys.onReturnPressed: root.clicked()
42 42
43 font.family: Font.fontFamily
44
45 background: Rectangle { 43 background: Rectangle {
46 color: root.color 44 color: root.color
47 45
@@ -74,6 +72,5 @@ T.Button {
74 horizontalAlignment: Text.AlignHCenter 72 horizontalAlignment: Text.AlignHCenter
75 verticalAlignment: Text.AlignVCenter 73 verticalAlignment: Text.AlignVCenter
76 color: root.textColor 74 color: root.textColor
77 font: root.font
78 } 75 }
79} 76}