icons: use variable axes

This commit is contained in:
2 * r + 2 * t 2025-06-26 21:05:35 +10:00
parent 1362e22d79
commit 7ddf40d2ea
8 changed files with 6 additions and 22 deletions

View file

@ -40,9 +40,6 @@ Item {
text: "sentiment_stressed"
color: Colours.palette.m3onSurfaceVariant
font.pointSize: Appearance.font.size.extraLarge * 5
font.variableAxes: ({
opsz: Appearance.font.size.extraLarge * 5
})
}
Column {

View file

@ -80,9 +80,6 @@ Item {
text: "chevron_right"
font.pointSize: Appearance.font.size.large
font.variableAxes: ({
opsz: Appearance.font.size.large
})
}
}
}

View file

@ -26,9 +26,6 @@ Item {
text: Weather.icon || "cloud_alert"
color: Colours.palette.m3secondary
font.pointSize: Appearance.font.size.extraLarge * 2
font.variableAxes: ({
opsz: Appearance.font.size.extraLarge * 1.2
})
}
Column {

View file

@ -158,9 +158,6 @@ StyledRect {
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer
font.pointSize: Appearance.font.size.large
font.variableAxes: ({
opsz: Appearance.font.size.large
})
}
}
}

View file

@ -27,9 +27,6 @@ RowLayout {
text: Weather.icon || "cloud_alert"
color: Colours.palette.m3secondary
font.pointSize: Appearance.font.size.extraLarge * 2.5
font.variableAxes: ({
opsz: Appearance.font.size.extraLarge * 1.2
})
}
ColumnLayout {

View file

@ -186,9 +186,6 @@ StyledRect {
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer
font.pointSize: Appearance.font.size.large
font.variableAxes: ({
opsz: Appearance.font.size.large
})
}
}
}

View file

@ -45,9 +45,6 @@ Item {
text: "web_asset_off"
color: Colours.palette.m3outline
font.pointSize: Appearance.font.size.extraLarge * 3
font.variableAxes: ({
opsz: Appearance.font.size.extraLarge * 3
})
}
StyledText {

View file

@ -1,11 +1,16 @@
import "root:/services"
import "root:/config"
StyledText {
property real fill
property int grade: Colours.light ? 0 : -25
font.family: Appearance.font.family.material
font.pointSize: Appearance.font.size.larger
font.variableAxes: ({
FILL: fill.toFixed(1)
FILL: fill.toFixed(1),
GRAD: grade,
opsz: fontInfo.pixelSize,
wght: fontInfo.weight
})
}