bar/statusicons: add mic indicator

Closes #578
This commit is contained in:
2 * r + 2 * t 2025-09-08 23:49:14 +10:00
parent 5fc9ffcc8f
commit 24a1af185a
3 changed files with 14 additions and 0 deletions

View file

@ -320,6 +320,7 @@ default, you must create it manually.
"showBattery": true,
"showBluetooth": true,
"showKbLayout": false,
"showMicrophone": false,
"showNetwork": true,
"showLockStatus": true
},

View file

@ -74,6 +74,7 @@ JsonObject {
component Status: JsonObject {
property bool showAudio: false
property bool showMicrophone: false
property bool showKbLayout: false
property bool showNetwork: true
property bool showBluetooth: true

View file

@ -115,6 +115,18 @@ StyledRect {
}
}
// Microphone icon
WrappedLoader {
name: "audio"
active: Config.bar.status.showMicrophone
sourceComponent: MaterialIcon {
animate: true
text: Icons.getMicVolumeIcon(Audio.sourceVolume, Audio.sourceMuted)
color: root.colour
}
}
// Keyboard layout icon
WrappedLoader {
name: "kblayout"