fixed positioning by hardcoding width
This commit is contained in:
parent
14bebb0c68
commit
71e38ff4ae
@ -16,7 +16,7 @@ PanelWindow {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: leftLayout
|
id: leftLayout
|
||||||
spacing: 30
|
spacing: 40
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
Clock {
|
Clock {
|
||||||
@ -33,7 +33,7 @@ PanelWindow {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rightLayout
|
id: rightLayout
|
||||||
spacing: 30
|
spacing: 40
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
Battery {}
|
Battery {}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import QtQuick.Layouts
|
|||||||
Loader {
|
Loader {
|
||||||
id: root
|
id: root
|
||||||
active: UPower.displayDevice.isLaptopBattery
|
active: UPower.displayDevice.isLaptopBattery
|
||||||
width: 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,7 +6,7 @@ import "../../"
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
implicitWidth: powerLayout.implicitWidth
|
width: 50
|
||||||
implicitHeight: 34
|
implicitHeight: 34
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@ -17,7 +17,7 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
width: styleLayout.implicitWidth
|
width: 50
|
||||||
height: 34
|
height: 34
|
||||||
property var sink: Pipewire.defaultAudioSink
|
property var sink: Pipewire.defaultAudioSink
|
||||||
Process {
|
Process {
|
||||||
@ -53,7 +53,7 @@ Loader {
|
|||||||
id: styleLayout
|
id: styleLayout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
implicitWidth: topText.width + icon.width
|
implicitWidth: botText.width
|
||||||
Row {
|
Row {
|
||||||
spacing: 2
|
spacing: 2
|
||||||
Text {
|
Text {
|
||||||
@ -73,6 +73,7 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
id: botText
|
||||||
font.weight: 900
|
font.weight: 900
|
||||||
color: Colors.foreground
|
color: Colors.foreground
|
||||||
font.family: Settings.font
|
font.family: Settings.font
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user