fix modules taking up to much space by using Loader

This commit is contained in:
lucy 2025-12-31 16:40:43 +01:00
parent 0529411f51
commit ff6d6669a9
3 changed files with 9 additions and 7 deletions

View File

@ -37,7 +37,10 @@ PanelWindow {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Battery {}
Volume {}
Loader {
sourceComponent: Volume {}
}
PowerProfiles {}
SystemTray {
Layout.rightMargin: 30

View File

@ -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

View File

@ -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