material symbols: support filling

This commit is contained in:
end-4
2025-05-05 11:05:58 +02:00
parent 94ef226b92
commit 352d389cc4
30 changed files with 91 additions and 58 deletions
@@ -86,7 +86,7 @@ Rectangle {
}
contentItem: MaterialSymbol {
text: "keyboard_arrow_up"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
horizontalAlignment: Text.AlignHCenter
color: Appearance.colors.colOnLayer1
}
@@ -155,7 +155,7 @@ Rectangle {
}
contentItem: MaterialSymbol {
text: "keyboard_arrow_down"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
horizontalAlignment: Text.AlignHCenter
color: Appearance.colors.colOnLayer1
}
@@ -64,7 +64,7 @@ Item {
}
contentItem: MaterialSymbol {
text: "chevron_left"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
horizontalAlignment: Text.AlignHCenter
color: Appearance.colors.colOnLayer1
}
@@ -76,7 +76,7 @@ Item {
}
contentItem: MaterialSymbol {
text: "chevron_right"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
horizontalAlignment: Text.AlignHCenter
color: Appearance.colors.colOnLayer1
}
@@ -112,7 +112,7 @@ Item {
MaterialSymbol {
Layout.alignment: Qt.AlignHCenter
font.pixelSize: 55
iconSize: 55
color: Appearance.m3colors.m3outline
text: "notifications_active"
}
@@ -42,7 +42,7 @@ Button {
MaterialSymbol {
text: buttonIcon
Layout.fillWidth: false
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colOnLayer1
}
StyledText {
@@ -12,10 +12,10 @@ QuickToggleButton {
onClicked: {
nightLightButton.enabled = !nightLightButton.enabled
if (enabled) {
nightLightOn.running = true
nightLightOn.startDetached()
}
else {
nightLightOff.running = true
nightLightOff.startDetached()
}
}
Process {
@@ -33,7 +33,8 @@ Button {
MaterialSymbol {
anchors.centerIn: parent
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
fill: toggled ? 1 : 0
text: buttonIcon
color: toggled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer1
@@ -118,7 +118,7 @@ Item {
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
text: modelData.done ? "remove_done" : "check"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colOnLayer1
}
}
@@ -132,7 +132,7 @@ Item {
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
text: "delete_forever"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colOnLayer1
}
}
@@ -168,7 +168,7 @@ Item {
MaterialSymbol {
Layout.alignment: Qt.AlignHCenter
font.pixelSize: 55
iconSize: 55
color: Appearance.m3colors.m3outline
text: emptyPlaceholderIcon
}
@@ -204,7 +204,7 @@ Item {
contentItem: MaterialSymbol {
text: "add"
horizontalAlignment: Text.AlignHCenter
font.pixelSize: Appearance.font.pixelSize.huge
iconSize: Appearance.font.pixelSize.huge
color: Appearance.m3colors.m3onPrimaryContainer
}
}
@@ -39,7 +39,7 @@ Button {
Layout.fillWidth: false
Layout.leftMargin: 5
color: Appearance.colors.colOnLayer2
font.pixelSize: Appearance.font.pixelSize.hugeass
iconSize: Appearance.font.pixelSize.hugeass
text: input ? "mic_external_on" : "media_output"
}
@@ -98,7 +98,7 @@ Item {
MaterialSymbol {
Layout.alignment: Qt.AlignHCenter
font.pixelSize: 55
iconSize: 55
color: Appearance.m3colors.m3outline
text: "brand_awareness"
}