2025-05-03 13:04:07 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
2025-05-06 09:38:56 +02:00
|
|
|
import Quickshell
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: parent.width
|
2025-05-06 09:38:56 +02:00
|
|
|
height: width * 1.5
|
2025-05-03 13:04:07 +02:00
|
|
|
border.color: "black"
|
|
|
|
border.width: 1
|
|
|
|
radius: 5
|
|
|
|
// color: "green"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
|
|
|
height: text.height * 2
|
|
|
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
2025-05-06 09:38:56 +02:00
|
|
|
SystemClock {
|
|
|
|
id: clock
|
|
|
|
precision: SystemClock.Seconds
|
|
|
|
}
|
|
|
|
|
2025-05-03 13:04:07 +02:00
|
|
|
Text {
|
|
|
|
id: text
|
|
|
|
anchors.centerIn: parent
|
|
|
|
property var date: Date()
|
|
|
|
|
2025-05-06 09:38:56 +02:00
|
|
|
text: Qt.formatDateTime(clock.date, "hh\nmm\nss")
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
font.family: "Iosevka NF"
|
|
|
|
font.weight: Font.ExtraBold
|
|
|
|
font.pointSize: 18
|
|
|
|
|
|
|
|
color: "black"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|