quickshell: hides widgets if they dont provide useful information
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user