quickshell: hides widgets if they dont provide useful information
This commit is contained in:
@@ -12,6 +12,7 @@ Rectangle {
|
||||
PwObjectTracker {
|
||||
objects: [root.defaultSpeaker, root.defaultMic]
|
||||
}
|
||||
visible: root.defaultSpeaker.audio.muted || root.defaultMic.audio.muted
|
||||
implicitHeight: 20
|
||||
implicitWidth: content.width
|
||||
color: Colors.backgroundAlt
|
||||
|
||||
@@ -7,6 +7,7 @@ RowLayout {
|
||||
id: content
|
||||
height: 20
|
||||
anchors.centerIn: root
|
||||
visible: UPower.displayDevice.percentage != 0
|
||||
Rectangle {
|
||||
implicitHeight: text.height
|
||||
implicitWidth: text.width
|
||||
|
||||
Reference in New Issue
Block a user