forked from Shinonome/dots-hyprland
material symbols: support filling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user