From fae67af4b24c814443e2243b0fbce9fa7715720f Mon Sep 17 00:00:00 2001
From: Sakooooo <78461130+Sakooooo@users.noreply.github.com>
Date: Fri, 10 Jan 2025 18:37:18 +0400
Subject: [PATCH] fix misaligned widgets

---
 config/quickshell/Time.qml       |  6 +++---
 config/quickshell/Workspaces.qml |  9 ++++-----
 config/quickshell/shell.qml      | 12 ++++++++----
 3 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/config/quickshell/Time.qml b/config/quickshell/Time.qml
index 97b4e558..96ef4374 100644
--- a/config/quickshell/Time.qml
+++ b/config/quickshell/Time.qml
@@ -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
diff --git a/config/quickshell/Workspaces.qml b/config/quickshell/Workspaces.qml
index 2bf338d2..6ef2b768 100644
--- a/config/quickshell/Workspaces.qml
+++ b/config/quickshell/Workspaces.qml
@@ -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
diff --git a/config/quickshell/shell.qml b/config/quickshell/shell.qml
index 118eef77..cc777936 100644
--- a/config/quickshell/shell.qml
+++ b/config/quickshell/shell.qml
@@ -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 { }