fixing positioning by using loaders right

This commit is contained in:
lucy 2025-12-31 17:08:56 +01:00
parent 71e38ff4ae
commit adc7472668
3 changed files with 12 additions and 9 deletions

View File

@ -36,12 +36,16 @@ PanelWindow {
spacing: 40
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Battery {}
Loader {
sourceComponent: Battery {}
}
Loader {
sourceComponent: Volume {}
}
PowerProfiles {}
Loader {
sourceComponent: PowerProfiles {}
}
SystemTray {
Layout.rightMargin: 30
}

View File

@ -5,10 +5,9 @@ import "../../"
import "../settings/"
import QtQuick.Layouts
Loader {
Item {
id: root
active: UPower.displayDevice.isLaptopBattery
width: 50
implicitWidth: masterLayout.implicitWidth
height: 34
property bool isCharging: UPower.displayDevice.state === UPowerDeviceState.Charging
function getBatteryIcon() {

View File

@ -6,8 +6,11 @@ import Quickshell.Io
import "../../"
import "../settings/"
Loader {
Item {
id: root
implicitWidth: styleLayout.implicitWidth
height: 34
property var sink: Pipewire.defaultAudioSink
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
@ -17,9 +20,6 @@ Loader {
}
}
}
width: 50
height: 34
property var sink: Pipewire.defaultAudioSink
Process {
id: pavu
command: ["pavucontrol"] // The command and args list