FluentUI/example/T_Typography.qml

58 lines
1.3 KiB
QML
Raw Normal View History

2023-02-26 23:47:07 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
2023-03-06 18:08:01 +08:00
import QtQuick.Controls 2.15
2023-02-26 23:47:07 +08:00
import FluentUI 1.0
Item {
2023-03-06 18:08:01 +08:00
FluText{
id:title
2023-03-07 00:05:27 +08:00
text:"Typography"
2023-03-06 18:08:01 +08:00
fontStyle: FluText.TitleLarge
}
ScrollView{
clip: true
width: parent.width
contentWidth: parent.width
anchors{
top: title.bottom
bottom: parent.bottom
}
ColumnLayout{
spacing: 5
FluText{
text:"Display"
2023-03-07 00:05:27 +08:00
Layout.topMargin: 20
2023-03-06 18:08:01 +08:00
fontStyle: FluText.Display
}
FluText{
text:"Title Large"
fontStyle: FluText.TitleLarge
}
FluText{
text:"Title"
fontStyle: FluText.Title
}
FluText{
text:"Subtitle"
fontStyle: FluText.Subtitle
}
FluText{
text:"Body Large"
fontStyle: FluText.BodyLarge
}
FluText{
text:"Body Strong"
fontStyle: FluText.BodyStrong
}
FluText{
text:"Body"
fontStyle: FluText.Body
}
FluText{
text:"Caption"
fontStyle: FluText.Caption
}
2023-02-26 23:47:07 +08:00
}
}
}