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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user