quickshell: hides widgets if they dont provide useful information

This commit is contained in:
2026-03-15 20:21:08 +00:00
parent 7a1caeaaa3
commit 9b3135c378
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ Rectangle {
PwObjectTracker { PwObjectTracker {
objects: [root.defaultSpeaker, root.defaultMic] objects: [root.defaultSpeaker, root.defaultMic]
} }
visible: root.defaultSpeaker.audio.muted || root.defaultMic.audio.muted
implicitHeight: 20 implicitHeight: 20
implicitWidth: content.width implicitWidth: content.width
color: Colors.backgroundAlt color: Colors.backgroundAlt

View File

@@ -7,6 +7,7 @@ RowLayout {
id: content id: content
height: 20 height: 20
anchors.centerIn: root anchors.centerIn: root
visible: UPower.displayDevice.percentage != 0
Rectangle { Rectangle {
implicitHeight: text.height implicitHeight: text.height
implicitWidth: text.width implicitWidth: text.width