this will do for now

This commit is contained in:
Sakooooo 2025-01-10 19:52:14 +04:00
parent b5735ba756
commit 5f409d11ef
Signed by: sako
GPG key ID: FE52FD65B76E4751
4 changed files with 63 additions and 24 deletions

View file

@ -0,0 +1,34 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Quickshell
import Quickshell.Io
ListView {
id: root
height: 70
width: 60
property date currentDate: new Date()
Item {
width: parent.width
height: parent.height
anchors.centerIn: parent
Rectangle {
width: 60
height: 65
radius: 3
Text {
Layout.alignment: Qt.AlignHCenter
anchors.centerIn: parent
font.pointSize: 20
color: "black"
}
}
}
}

View file

@ -20,7 +20,7 @@ ListView {
Rectangle {
width: 60
height: 60
height: 65
radius: 3
anchors.centerIn: parent
Text {

View file

@ -14,9 +14,10 @@ ListView {
model: workspaceArray
anchors.top: parent.top
height: 150
height: 135
width: 60
spacing: 5
interactive: false
delegate: Item {
width: Math.max((modelData.active) ? 70 : 40, 70)
height: 10

View file

@ -8,6 +8,8 @@ import QtQuick.Layouts
ShellRoot {
id: root
ReloadPopup {}
property string time;
@ -45,8 +47,8 @@ ShellRoot {
height: 30;
// left
RowLayout {
// top
ColumnLayout {
/* anchors.left: parent.left */
anchors.top: parent.top
/* anchors.bottom: parent.bottom */
@ -58,39 +60,41 @@ ShellRoot {
}
// Center
RowLayout {
anchors.centerIn: parent
Text {
color: "#FFFFFF"
// now just time instead of root.time
text: time
}
ColumnLayout {
/* anchors.centerIn: parent */
/* Text { */
/* color: "#FFFFFF" */
/* // now just time instead of root.time */
/* text: time */
/* } */
}
// right
RowLayout {
/* anchors.right: parent.right */
// bottom
ColumnLayout {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
/* spacing: 5 */
Battery { }
Time { }
/* Date {} */
Time {}
}
}
}
Process {
id: dateProc
command: ["date", "+%I:%M%p %A, %b %e, %Y"]
running: true
/* Process { */
/* id: dateProc */
/* command: ["date", "+%m %d"] */
/* running: true */
stdout: SplitParser {
// now just time instead of root.time
onRead: data => time = data
}
}
/* stdout: SplitParser { */
/* // now just time instead of root.time */
/* onRead: data => time = data */
/* } */
/* } */
Timer {
interval: 1000