fix misaligned widgets

This commit is contained in:
Sakooooo 2025-01-10 18:37:18 +04:00
parent a545f3a7fa
commit fae67af4b2
Signed by: sako
GPG key ID: FE52FD65B76E4751
3 changed files with 15 additions and 12 deletions

View file

@ -6,9 +6,8 @@ import Quickshell
ListView {
id: root
height: 110
height: 70
width: 60
anchors.centerIn: parent
SystemClock {
id: clock
precision: SystemClock.Minutes
@ -20,8 +19,9 @@ ListView {
anchors.centerIn: parent
Rectangle {
width: 50
width: 60
height: 60
radius: 3
anchors.centerIn: parent
Text {
Layout.alignment: Qt.AlignHCenter

View file

@ -14,16 +14,15 @@ ListView {
model: workspaceArray
anchors.top: parent.top
anchors.centerIn: parent
height: 110
height: 150
width: 60
spacing: 2
spacing: 5
delegate: Item {
width: Math.max((modelData.active) ? 50 : 40, 50)
width: Math.max((modelData.active) ? 70 : 40, 70)
height: 10
Rectangle {
id: workspace
width: (modelData.active) ? 50 : 40
width: (modelData.active) ? 60 : 45
height: 10
radius: height / 2
border.width: 2

View file

@ -29,6 +29,13 @@ ShellRoot {
color: "#222222"
screen: modelData
margins {
top: 10
bottom: 10
left: 10
}
anchors {
top: true;
bottom: true;
@ -48,9 +55,6 @@ ShellRoot {
Workspaces {}
Text {
text: "hi"
}
}
// Center
@ -68,7 +72,7 @@ ShellRoot {
RowLayout {
/* anchors.right: parent.right */
anchors.bottom: parent.bottom
spacing: 5
/* spacing: 5 */
Battery { }
Time { }