organize files

This commit is contained in:
Sem
2026-03-29 23:58:48 +02:00
parent 06477003e0
commit e1371c647e
7 changed files with 266 additions and 205 deletions

28
quickshell/ui/Clock.qml Normal file
View File

@@ -0,0 +1,28 @@
import QtQuick
import "../constants"
// Clock
Text {
id: clock
color: Constants.colBlue
font {
family: Constants.fontFamily
pixelSize: Constants.fontSize
bold: true
}
function updateTime() {
text = Qt.formatDateTime(new Date(), "ddd, MMM dd - HH:mm");
}
Component.onCompleted: updateTime()
Timer {
interval: 1000
running: true
repeat: true
onTriggered: clock.updateTime()
}
}