fix modules taking up to much space by using Loader
This commit is contained in:
parent
0529411f51
commit
ff6d6669a9
@ -37,7 +37,10 @@ PanelWindow {
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
Battery {}
|
||||
Volume {}
|
||||
Loader {
|
||||
sourceComponent: Volume {}
|
||||
}
|
||||
|
||||
PowerProfiles {}
|
||||
SystemTray {
|
||||
Layout.rightMargin: 30
|
||||
|
||||
@ -6,12 +6,11 @@ import "../../"
|
||||
import "../settings/"
|
||||
import QtQuick.Layouts
|
||||
|
||||
Rectangle {
|
||||
Loader {
|
||||
id: root
|
||||
visible: UPower.displayDevice.isLaptopBattery
|
||||
color: "transparent"
|
||||
implicitWidth: masterLayout.implicitWidth + 10
|
||||
implicitHeight: 34
|
||||
width: masterLayout.implicitWidth
|
||||
height: 34
|
||||
ColumnLayout {
|
||||
id: masterLayout
|
||||
anchors.centerIn: parent
|
||||
|
||||
@ -6,7 +6,7 @@ import Quickshell.Io
|
||||
import "../../"
|
||||
import "../settings/"
|
||||
|
||||
Item {
|
||||
Loader {
|
||||
id: root
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
@ -18,7 +18,7 @@ Item {
|
||||
}
|
||||
}
|
||||
width: styleLayout.implicitWidth
|
||||
implicitHeight: 34
|
||||
height: 34
|
||||
property var sink: Pipewire.defaultAudioSink
|
||||
Process {
|
||||
id: pavu
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user