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
+3 -3
View File
@@ -75,8 +75,8 @@ Scope {
height: 19.5
source: ConfigOptions.bar.topLeftIcon == 'distro' ?
SystemInfo.distroIcon : "spark-symbolic"
}
ColorOverlay {
anchors.fill: distroIcon
source: distroIcon
@@ -173,12 +173,12 @@ Scope {
Network.networkStrength > 20 ? "network_wifi_1_bar" :
"signal_wifi_0_bar"
) : "signal_wifi_off"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colOnLayer0
}
MaterialSymbol {
text: Bluetooth.bluetoothConnected ? "bluetooth_connected" : Bluetooth.bluetoothEnabled ? "bluetooth" : "bluetooth_disabled"
font.pixelSize: Appearance.font.pixelSize.larger
iconSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colOnLayer0
}
}
+2 -2
View File
@@ -56,7 +56,7 @@ Rectangle {
MaterialSymbol {
anchors.centerIn: parent
text: "battery_full"
font.pixelSize: Appearance.font.pixelSize.normal
iconSize: Appearance.font.pixelSize.normal
color: (isLow && !isCharging) ? batteryLowOnBackground : Appearance.m3colors.m3onSecondaryContainer
}
@@ -70,7 +70,7 @@ Rectangle {
anchors.left: rowLayout.left
anchors.verticalCenter: rowLayout.verticalCenter
text: "bolt"
font.pixelSize: Appearance.font.pixelSize.large
iconSize: Appearance.font.pixelSize.large
color: Appearance.m3colors.m3onSecondaryContainer
visible: opacity > 0 // Only show when charging
opacity: isCharging ? 1 : 0 // Keep opacity for visibility
+1 -1
View File
@@ -63,7 +63,7 @@ Item {
MaterialSymbol {
anchors.centerIn: parent
text: activePlayer?.isPlaying ? "pause" : "play_arrow"
font.pixelSize: Appearance.font.pixelSize.normal
iconSize: Appearance.font.pixelSize.normal
color: Appearance.m3colors.m3onSecondaryContainer
}
+1 -1
View File
@@ -29,7 +29,7 @@ Item {
MaterialSymbol {
anchors.centerIn: parent
text: iconName
font.pixelSize: Appearance.font.pixelSize.normal
iconSize: Appearance.font.pixelSize.normal
color: Appearance.m3colors.m3onSecondaryContainer
}
@@ -26,7 +26,7 @@ Rectangle {
MaterialSymbol {
anchors.centerIn: parent
text: "screenshot_region"
font.pixelSize: Appearance.font.pixelSize.normal
iconSize: Appearance.font.pixelSize.normal
color: Appearance.colors.colOnLayer2
}
@@ -39,7 +39,7 @@ Rectangle {
MaterialSymbol {
anchors.centerIn: parent
text: "colorize"
font.pixelSize: Appearance.font.pixelSize.normal
iconSize: Appearance.font.pixelSize.normal
color: Appearance.colors.colOnLayer2
}