This commit is contained in:
Bloxx12 2025-05-06 09:38:56 +02:00
commit b750421f65
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
6 changed files with 435 additions and 34 deletions

View file

@ -1,9 +1,10 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
Rectangle {
width: parent.width
height: width
height: width * 1.5
border.color: "black"
border.width: 1
radius: 5
@ -15,12 +16,17 @@ Rectangle {
anchors.centerIn: parent
SystemClock {
id: clock
precision: SystemClock.Seconds
}
Text {
id: text
anchors.centerIn: parent
property var date: Date()
text: Qt.formatDateTime(date, "hh\nmm")
text: Qt.formatDateTime(clock.date, "hh\nmm\nss")
font.family: "Iosevka NF"
font.weight: Font.ExtraBold
@ -29,11 +35,4 @@ Rectangle {
color: "black"
}
}
Timer {
interval: 1000 * 60
running: true
repeat: true
onTriggered: text.date = new Date()
}
}