fixed positioning by hardcoding width
This commit is contained in:
parent
14bebb0c68
commit
71e38ff4ae
@ -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 {}
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -6,7 +6,7 @@ import "../../"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
implicitWidth: powerLayout.implicitWidth
|
||||
width: 50
|
||||
implicitHeight: 34
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user