fix: smaller dash weather

This commit is contained in:
2 * r + 2 * t 2026-04-23 02:44:36 +10:00
parent e653ed1cdf
commit 1600c889ac
2 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ Item {
animate: true
text: Weather.icon
color: Colours.palette.m3secondary
fontStyle: Tokens.font.icon.builders.extraLarge.scale(1.8).build()
fontStyle: Tokens.font.icon.builders.extraLarge.scale(1.6).build()
}
Column {
@ -40,7 +40,7 @@ Item {
animate: true
text: Weather.temp
color: Colours.palette.m3primary
font: Tokens.font.headline.builders.large.width(110).weight(Font.DemiBold).build()
font: Tokens.font.headline.builders.medium.width(110).weight(Font.DemiBold).build()
}
StyledText {
@ -48,7 +48,7 @@ Item {
animate: true
text: Weather.description
font: Tokens.font.body.builders.medium.weight(Font.Medium).build()
font: Tokens.font.body.small
elide: Text.ElideRight
width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Tokens.padding.extraLargeIncreased)

View file

@ -25,8 +25,7 @@ Item {
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: logoShape.right
anchors.topMargin: Tokens.padding.extraSmall
anchors.leftMargin: -Tokens.padding.extraLarge
anchors.leftMargin: -(Tokens.padding.largeIncreased + Tokens.padding.extraLarge) / 2
implicitWidth: height
MaterialShape {
@ -104,6 +103,7 @@ Item {
anchors.bottom: parent.bottom
anchors.left: pfpContainer.right
anchors.bottomMargin: -Tokens.padding.small // Clamshell is taller than what it is visually
anchors.leftMargin: -Tokens.padding.extraLargeIncreased
implicitSize: Tokens.sizes.dashboard.uptimeSize + Tokens.padding.small * 2
shape: MaterialShape.ClamShell