progress
This commit is contained in:
parent
35524b5e6e
commit
b750421f65
6 changed files with 435 additions and 34 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue