1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-13 00:42:49 -05:00

feat: Indicate when the mic is muted in the Privacy Indicator (#495)

* feat: Indicate when the mic is muted in the Privacy Indicator

* chore: tidy up
This commit is contained in:
Mattias
2025-10-19 18:36:01 +02:00
committed by GitHub
parent 86a0fd409a
commit e1c180a13f

View File

@@ -59,7 +59,11 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
DankIcon {
name: "mic"
name: {
let muted = AudioService.source.audio.muted || AudioService.source.audio.volume === 0.0
if (muted) return "mic_off"
return "mic"
}
size: Theme.iconSizeSmall
color: Theme.error
filled: true
@@ -125,7 +129,11 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
DankIcon {
name: "mic"
name: {
let muted = AudioService.source.audio.muted || AudioService.source.audio.volume === 0.0
if (muted) return "mic_off"
return "mic"
}
size: Theme.iconSizeSmall
color: Theme.error
filled: true