icons: use variable axes
This commit is contained in:
parent
1362e22d79
commit
7ddf40d2ea
8 changed files with 6 additions and 22 deletions
|
|
@ -40,9 +40,6 @@ Item {
|
||||||
text: "sentiment_stressed"
|
text: "sentiment_stressed"
|
||||||
color: Colours.palette.m3onSurfaceVariant
|
color: Colours.palette.m3onSurfaceVariant
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 5
|
font.pointSize: Appearance.font.size.extraLarge * 5
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.extraLarge * 5
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
||||||
|
|
@ -80,9 +80,6 @@ Item {
|
||||||
text: "chevron_right"
|
text: "chevron_right"
|
||||||
|
|
||||||
font.pointSize: Appearance.font.size.large
|
font.pointSize: Appearance.font.size.large
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.large
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ Item {
|
||||||
text: Weather.icon || "cloud_alert"
|
text: Weather.icon || "cloud_alert"
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 2
|
font.pointSize: Appearance.font.size.extraLarge * 2
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.extraLarge * 1.2
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
||||||
|
|
@ -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
|
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.pointSize: Appearance.font.size.large
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.large
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ RowLayout {
|
||||||
text: Weather.icon || "cloud_alert"
|
text: Weather.icon || "cloud_alert"
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 2.5
|
font.pointSize: Appearance.font.size.extraLarge * 2.5
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.extraLarge * 1.2
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
||||||
|
|
@ -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
|
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.pointSize: Appearance.font.size.large
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.large
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ Item {
|
||||||
text: "web_asset_off"
|
text: "web_asset_off"
|
||||||
color: Colours.palette.m3outline
|
color: Colours.palette.m3outline
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 3
|
font.pointSize: Appearance.font.size.extraLarge * 3
|
||||||
font.variableAxes: ({
|
|
||||||
opsz: Appearance.font.size.extraLarge * 3
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
|
import "root:/services"
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
property real fill
|
property real fill
|
||||||
|
property int grade: Colours.light ? 0 : -25
|
||||||
|
|
||||||
font.family: Appearance.font.family.material
|
font.family: Appearance.font.family.material
|
||||||
font.pointSize: Appearance.font.size.larger
|
font.pointSize: Appearance.font.size.larger
|
||||||
font.variableAxes: ({
|
font.variableAxes: ({
|
||||||
FILL: fill.toFixed(1)
|
FILL: fill.toFixed(1),
|
||||||
|
GRAD: grade,
|
||||||
|
opsz: fontInfo.pixelSize,
|
||||||
|
wght: fontInfo.weight
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue