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 authored and GitHub committed 2025-10-19 11:36:01 -05:00
1 parent 86a0fd409a
commit e1c180a13f
1 file changed
+10 -2
+10 -2
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