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 {
|
MaterialIcon {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: root.icon
|
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 {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,14 @@ Item {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: Time.hourStr
|
text: Time.hourStr
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font: Tokens.font.clock.builders.size(28).weight(600).build()
|
font: Tokens.font.clock.size(28).weight(600).build()
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: "•••"
|
text: "•••"
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
font: Tokens.font.clock.builders.size(28 * 0.9).build()
|
font: Tokens.font.clock.size(28 * 0.9).build()
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
@ -39,7 +39,7 @@ Item {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: Time.minuteStr
|
text: Time.minuteStr
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font: Tokens.font.clock.builders.size(28).weight(600).build()
|
font: Tokens.font.clock.size(28).weight(600).build()
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
@ -52,7 +52,7 @@ Item {
|
||||||
sourceComponent: StyledText {
|
sourceComponent: StyledText {
|
||||||
text: Time.amPmStr
|
text: Time.amPmStr
|
||||||
color: Colours.palette.m3primary
|
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
|
animate: true
|
||||||
text: Weather.icon
|
text: Weather.icon
|
||||||
color: Colours.palette.m3secondary
|
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 {
|
Column {
|
||||||
|
|
@ -39,7 +39,7 @@ Item {
|
||||||
animate: true
|
animate: true
|
||||||
text: Weather.temp
|
text: Weather.temp
|
||||||
color: Colours.palette.m3primary
|
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 {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ Item {
|
||||||
id: clearBtn
|
id: clearBtn
|
||||||
|
|
||||||
icon: "clear_all"
|
icon: "clear_all"
|
||||||
radius: Tokens.rounding.normal
|
radius: Tokens.rounding.large
|
||||||
padding: Tokens.padding.medium
|
padding: Tokens.padding.medium
|
||||||
font: Tokens.font.icon.builder.size(Math.round(Tokens.font.icon.large.pointSize * 1.2)).build()
|
font: Tokens.font.icon.builder.size(Math.round(Tokens.font.icon.large.pointSize * 1.2)).build()
|
||||||
onClicked: clearTimer.start()
|
onClicked: clearTimer.start()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue