Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
Label.qml
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024-2026 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: MPL-2.0
3
4import QtQuick.Templates as T
5import Fluid as MD
6
17T.Label {
19 property MD.typescale typescale: MD.Tokens.typescale.labelMedium
20
21 antialiasing: true
22
23 color: MD.Style.onSurfaceVariantColor
24 // TODO: linkColor from palette
25
26 textFormat: T.Label.PlainText
27
28 font.family: typescale.face === MD.Style.TypeFace.Brand ? MD.Style.brandFontFamily : MD.Style.plainFontFamily
29 font.pixelSize: typescale.fontSize
30 font.weight: typescale.fontWeight
31 font.letterSpacing: typescale.tracking
32
33 lineHeight: typescale.lineHeight
34 lineHeightMode: T.Label.FixedHeight
35
36 wrapMode: T.Label.Wrap
37
38 elide: T.Label.ElideRight
39}