2025-05-03 13:04:07 +02:00
|
|
|
import QtQuick
|
2025-05-06 09:38:56 +02:00
|
|
|
import Quickshell
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
Rectangle {
|
2025-06-24 07:46:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
width: text.width
|
|
|
|
implicitHeight: text.height
|
|
|
|
// border.color: "black"
|
2025-05-06 10:30:18 +02:00
|
|
|
border.width: 2
|
2025-06-24 07:46:51 +02:00
|
|
|
radius: 0
|
|
|
|
color: "transparent"
|
|
|
|
|
|
|
|
Behavior on implicitHeight {
|
|
|
|
NumberAnimation {
|
|
|
|
duration: 100
|
|
|
|
easing.type: Easing.OutCubic
|
|
|
|
}
|
|
|
|
}
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
2025-06-24 07:46:51 +02:00
|
|
|
height: text.height
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
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-06-24 07:46:51 +02:00
|
|
|
text: Qt.formatDateTime(clock.date, "hh mm")
|
2025-05-03 13:04:07 +02:00
|
|
|
|
2025-05-06 10:30:18 +02:00
|
|
|
font.family: "ComicShannsMono Nerd Font Mono"
|
2025-05-03 13:04:07 +02:00
|
|
|
font.weight: Font.ExtraBold
|
2025-06-24 07:46:51 +02:00
|
|
|
font.pointSize: 12
|
2025-05-03 13:04:07 +02:00
|
|
|
|
|
|
|
color: "black"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|