fixing positioning by using loaders right
This commit is contained in:
parent
71e38ff4ae
commit
adc7472668
@ -36,12 +36,16 @@ PanelWindow {
|
|||||||
spacing: 40
|
spacing: 40
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
Battery {}
|
Loader {
|
||||||
|
sourceComponent: Battery {}
|
||||||
|
}
|
||||||
Loader {
|
Loader {
|
||||||
sourceComponent: Volume {}
|
sourceComponent: Volume {}
|
||||||
}
|
}
|
||||||
|
|
||||||
PowerProfiles {}
|
Loader {
|
||||||
|
sourceComponent: PowerProfiles {}
|
||||||
|
}
|
||||||
SystemTray {
|
SystemTray {
|
||||||
Layout.rightMargin: 30
|
Layout.rightMargin: 30
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,10 +5,9 @@ import "../../"
|
|||||||
import "../settings/"
|
import "../settings/"
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
Loader {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
active: UPower.displayDevice.isLaptopBattery
|
implicitWidth: masterLayout.implicitWidth
|
||||||
width: 50
|
|
||||||
height: 34
|
height: 34
|
||||||
property bool isCharging: UPower.displayDevice.state === UPowerDeviceState.Charging
|
property bool isCharging: UPower.displayDevice.state === UPowerDeviceState.Charging
|
||||||
function getBatteryIcon() {
|
function getBatteryIcon() {
|
||||||
|
|||||||
@ -6,8 +6,11 @@ import Quickshell.Io
|
|||||||
import "../../"
|
import "../../"
|
||||||
import "../settings/"
|
import "../settings/"
|
||||||
|
|
||||||
Loader {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
implicitWidth: styleLayout.implicitWidth
|
||||||
|
height: 34
|
||||||
|
property var sink: Pipewire.defaultAudioSink
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
@ -17,9 +20,6 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
width: 50
|
|
||||||
height: 34
|
|
||||||
property var sink: Pipewire.defaultAudioSink
|
|
||||||
Process {
|
Process {
|
||||||
id: pavu
|
id: pavu
|
||||||
command: ["pavucontrol"] // The command and args list
|
command: ["pavucontrol"] // The command and args list
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user