summaryrefslogtreecommitdiff
path: root/Label.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Label.qml')
-rw-r--r--Label.qml16
1 files changed, 12 insertions, 4 deletions
diff --git a/Label.qml b/Label.qml
index c2038e0..3b12c5d 100644
--- a/Label.qml
+++ b/Label.qml
@@ -5,10 +5,18 @@ import Bootstrap 5.3
Label {
id: control
font {
- family: Bootstrap.bodyFont.family
- pointSize: Bootstrap.bodyFont.pointSize
- weight: Bootstrap.bodyFont.weight
+ family: Bootstrap.heading
+ ? Bootstrap.headingFont.family
+ : Bootstrap.bodyFont.family
+ pointSize: Bootstrap.heading
+ ? Bootstrap.headingFontSize(parent.width)
+ : Bootstrap.bodyFont.pointSize
+ weight: Bootstrap.heading
+ ? Bootstrap.headingFont.weight
+ : Bootstrap.bodyFont.weight
}
- color: Bootstrap.bodyColor
+ color: Bootstrap.heading
+ ? Bootstrap.headingColor
+ : Bootstrap.bodyColor
linkColor: control.palette.link
}