mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-15 09:52:50 -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
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
DankIcon {
|
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
|
size: Theme.iconSizeSmall
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
filled: true
|
filled: true
|
||||||
@@ -125,7 +129,11 @@ Rectangle {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
DankIcon {
|
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
|
size: Theme.iconSizeSmall
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
filled: true
|
filled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user