From 71e38ff4ae2c246ae42a25cf4587c690e06a6e78 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 31 Dec 2025 17:04:35 +0100 Subject: [PATCH] fixed positioning by hardcoding width --- modules/bar/Bar.qml | 4 ++-- modules/bar/Battery.qml | 2 +- modules/bar/PowerProfiles.qml | 2 +- modules/bar/Volume.qml | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index ccc5c0a..9dcaf7f 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -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 {} diff --git a/modules/bar/Battery.qml b/modules/bar/Battery.qml index 17a5ef2..cd432f1 100644 --- a/modules/bar/Battery.qml +++ b/modules/bar/Battery.qml @@ -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() { diff --git a/modules/bar/PowerProfiles.qml b/modules/bar/PowerProfiles.qml index 5e03795..a937d6e 100644 --- a/modules/bar/PowerProfiles.qml +++ b/modules/bar/PowerProfiles.qml @@ -6,7 +6,7 @@ import "../../" Item { id: root - implicitWidth: powerLayout.implicitWidth + width: 50 implicitHeight: 34 MouseArea { anchors.fill: parent diff --git a/modules/bar/Volume.qml b/modules/bar/Volume.qml index 5dd5866..7973be8 100644 --- a/modules/bar/Volume.qml +++ b/modules/bar/Volume.qml @@ -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