From b5f8ec99fd8e79871b2a5df0966f29bcf244632f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 12 Apr 2023 22:48:29 +0800 Subject: Headings support --- Label.qml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Label.qml') 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 } -- cgit v1.2.3