fix: smaller dash weather
This commit is contained in:
parent
e653ed1cdf
commit
1600c889ac
2 changed files with 5 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ Item {
|
||||||
animate: true
|
animate: true
|
||||||
text: Weather.icon
|
text: Weather.icon
|
||||||
color: Colours.palette.m3secondary
|
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 {
|
Column {
|
||||||
|
|
@ -40,7 +40,7 @@ Item {
|
||||||
animate: true
|
animate: true
|
||||||
text: Weather.temp
|
text: Weather.temp
|
||||||
color: Colours.palette.m3primary
|
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 {
|
StyledText {
|
||||||
|
|
@ -48,7 +48,7 @@ Item {
|
||||||
|
|
||||||
animate: true
|
animate: true
|
||||||
text: Weather.description
|
text: Weather.description
|
||||||
font: Tokens.font.body.builders.medium.weight(Font.Medium).build()
|
font: Tokens.font.body.small
|
||||||
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Tokens.padding.extraLargeIncreased)
|
width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Tokens.padding.extraLargeIncreased)
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ Item {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: logoShape.right
|
anchors.left: logoShape.right
|
||||||
anchors.topMargin: Tokens.padding.extraSmall
|
anchors.leftMargin: -(Tokens.padding.largeIncreased + Tokens.padding.extraLarge) / 2
|
||||||
anchors.leftMargin: -Tokens.padding.extraLarge
|
|
||||||
implicitWidth: height
|
implicitWidth: height
|
||||||
|
|
||||||
MaterialShape {
|
MaterialShape {
|
||||||
|
|
@ -104,6 +103,7 @@ Item {
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: pfpContainer.right
|
anchors.left: pfpContainer.right
|
||||||
|
anchors.bottomMargin: -Tokens.padding.small // Clamshell is taller than what it is visually
|
||||||
anchors.leftMargin: -Tokens.padding.extraLargeIncreased
|
anchors.leftMargin: -Tokens.padding.extraLargeIncreased
|
||||||
implicitSize: Tokens.sizes.dashboard.uptimeSize + Tokens.padding.small * 2
|
implicitSize: Tokens.sizes.dashboard.uptimeSize + Tokens.padding.small * 2
|
||||||
shape: MaterialShape.ClamShell
|
shape: MaterialShape.ClamShell
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue