fixed positioning by hardcoding width

This commit is contained in:
lucy 2025-12-31 17:04:35 +01:00
parent 14bebb0c68
commit 71e38ff4ae
4 changed files with 7 additions and 6 deletions

View File

@ -16,7 +16,7 @@ PanelWindow {
RowLayout {
id: leftLayout
spacing: 30
spacing: 40
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
Clock {
@ -33,7 +33,7 @@ PanelWindow {
RowLayout {
id: rightLayout
spacing: 30
spacing: 40
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Battery {}

View File

@ -8,7 +8,7 @@ import QtQuick.Layouts
Loader {
id: root
active: UPower.displayDevice.isLaptopBattery
width: masterLayout.implicitWidth
width: 50
height: 34
property bool isCharging: UPower.displayDevice.state === UPowerDeviceState.Charging
function getBatteryIcon() {

View File

@ -6,7 +6,7 @@ import "../../"
Item {
id: root
implicitWidth: powerLayout.implicitWidth
width: 50
implicitHeight: 34
MouseArea {
anchors.fill: parent

View File

@ -17,7 +17,7 @@ Loader {
}
}
}
width: styleLayout.implicitWidth
width: 50
height: 34
property var sink: Pipewire.defaultAudioSink
Process {
@ -53,7 +53,7 @@ Loader {
id: styleLayout
anchors.centerIn: parent
spacing: 0
implicitWidth: topText.width + icon.width
implicitWidth: botText.width
Row {
spacing: 2
Text {
@ -73,6 +73,7 @@ Loader {
}
}
Text {
id: botText
font.weight: 900
color: Colors.foreground
font.family: Settings.font