2025-12-21 20:59:33 +01:00
|
|
|
import QtQuick
|
|
|
|
|
import Quickshell
|
2025-12-28 13:25:31 +01:00
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import "../settings/"
|
|
|
|
|
import "../../"
|
2025-12-21 20:59:33 +01:00
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
id: root
|
2025-12-28 13:25:31 +01:00
|
|
|
implicitWidth: clockLayout.implicitWidth
|
|
|
|
|
implicitHeight: 35
|
2025-12-22 13:55:00 +01:00
|
|
|
|
2025-12-28 13:25:31 +01:00
|
|
|
ColumnLayout {
|
|
|
|
|
id: clockLayout
|
2025-12-21 20:59:33 +01:00
|
|
|
anchors.centerIn: parent
|
2025-12-28 13:25:31 +01:00
|
|
|
spacing: 0
|
2025-12-22 13:55:00 +01:00
|
|
|
|
2025-12-28 13:25:31 +01:00
|
|
|
Text {
|
|
|
|
|
id: clockHoursText
|
|
|
|
|
font.weight: 900
|
|
|
|
|
font.family: Settings.font
|
|
|
|
|
font.pixelSize: Settings.fontSize
|
|
|
|
|
color: Colors.foreground
|
2025-12-22 13:55:00 +01:00
|
|
|
|
2025-12-28 13:25:31 +01:00
|
|
|
text: Qt.formatDateTime(clockHours.date, "hh:mm")
|
|
|
|
|
|
|
|
|
|
SystemClock {
|
|
|
|
|
id: clockHours
|
|
|
|
|
precision: SystemClock.Minutes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Text {
|
|
|
|
|
id: clockDateText
|
|
|
|
|
font.weight: 900
|
|
|
|
|
opacity: 0.7
|
|
|
|
|
font.family: Settings.font
|
|
|
|
|
font.pixelSize: Settings.fontSize - 2
|
|
|
|
|
color: Colors.foreground
|
|
|
|
|
|
|
|
|
|
text: Qt.formatDateTime(clockDate.date, "d.m.yy")
|
|
|
|
|
|
|
|
|
|
SystemClock {
|
|
|
|
|
id: clockDate
|
|
|
|
|
precision: SystemClock.Minutes
|
|
|
|
|
}
|
2025-12-22 13:55:00 +01:00
|
|
|
}
|
2025-12-21 20:59:33 +01:00
|
|
|
}
|
|
|
|
|
}
|