fix: font builder usage
This commit is contained in:
parent
e1530bf0cc
commit
3e1a993cfc
4 changed files with 8 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ Item {
|
|||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: root.icon
|
||||
fontStyle: Tokens.font.icon.extraLarge.size(84).weight(Font.Bold).build()
|
||||
fontStyle: Tokens.font.icon.builder.size(84).weight(Font.Bold).build()
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
|
|||
|
|
@ -24,14 +24,14 @@ Item {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
text: Time.hourStr
|
||||
color: Colours.palette.m3secondary
|
||||
font: Tokens.font.clock.builders.size(28).weight(600).build()
|
||||
font: Tokens.font.clock.size(28).weight(600).build()
|
||||
}
|
||||
|
||||
StyledText {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: "•••"
|
||||
color: Colours.palette.m3primary
|
||||
font: Tokens.font.clock.builders.size(28 * 0.9).build()
|
||||
font: Tokens.font.clock.size(28 * 0.9).build()
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
@ -39,7 +39,7 @@ Item {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
text: Time.minuteStr
|
||||
color: Colours.palette.m3secondary
|
||||
font: Tokens.font.clock.builders.size(28).weight(600).build()
|
||||
font: Tokens.font.clock.size(28).weight(600).build()
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
|
@ -52,7 +52,7 @@ Item {
|
|||
sourceComponent: StyledText {
|
||||
text: Time.amPmStr
|
||||
color: Colours.palette.m3primary
|
||||
font: Tokens.font.clock.builders.size(18).weight(600).build()
|
||||
font: Tokens.font.clock.size(18).weight(600).build()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Item {
|
|||
animate: true
|
||||
text: Weather.icon
|
||||
color: Colours.palette.m3secondary
|
||||
fontStyle: Tokens.font.icon.extraLarge.size(Tokens.font.icon.extraLarge.pointSize * 2).build()
|
||||
fontStyle: Tokens.font.icon.builder.size(Tokens.font.icon.extraLarge.pointSize * 2).build()
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
@ -39,7 +39,7 @@ Item {
|
|||
animate: true
|
||||
text: Weather.temp
|
||||
color: Colours.palette.m3primary
|
||||
font: Tokens.font.body.builders.size(28).weight(500).build()
|
||||
font: Tokens.font.body.builders.large.size(28).weight(500).build()
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ Item {
|
|||
id: clearBtn
|
||||
|
||||
icon: "clear_all"
|
||||
radius: Tokens.rounding.normal
|
||||
radius: Tokens.rounding.large
|
||||
padding: Tokens.padding.medium
|
||||
font: Tokens.font.icon.builder.size(Math.round(Tokens.font.icon.large.pointSize * 1.2)).build()
|
||||
onClicked: clearTimer.start()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue