summaryrefslogtreecommitdiff
path: root/Label.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-12 22:48:29 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-12 22:48:29 +0800
commitb5f8ec99fd8e79871b2a5df0966f29bcf244632f (patch)
treed66b2c9b749c85bbf5e6affad00fadbc79eb567a /Label.qml
parent6188a0034cb971f71a1683450b1bc4dce8d45d4c (diff)
Headings support
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
}