summaryrefslogtreecommitdiff
path: root/Label.qml
blob: 5230131e2fe91dd1ed6401aa9c5e89edd4e77e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Templates 2.15
import Bootstrap 5.3

Label {
	id: control
	Bootstrap.mode: Window.window.Bootstrap.mode
	font {
		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.heading
			? Bootstrap.headingColor
			: Bootstrap.bodyColor
	linkColor: control.palette.link
}