new themes + notif dnd

This commit is contained in:
SomeElse
2026-04-24 06:21:56 +00:00
parent 5f3b357344
commit f548be0bfe
20 changed files with 939 additions and 31 deletions

View File

@@ -14,21 +14,32 @@ PanelWindow {
WlrLayershell.exclusiveZone: -1
mask: Region {}
property string dateString: ""
function updateDate() {
let d = new Date();
dateString = d.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy");
}
Component.onCompleted: updateDate()
Text {
id: clockText
id: dateText
anchors.centerIn: parent
color: Cfg.Config.theme.clockText
styleColor: Cfg.Config.theme.clockShadow
font.pixelSize: 100
font.weight: Font.Thin
style: Text.Outline
text: new Date().toLocaleTimeString(Qt.locale(), "HH:mm")
font.pixelSize: 64
font.weight: Font.ExtraLight
font.letterSpacing: 4
opacity: 0.55
style: Text.DropShadow
text: dateString
}
Timer {
interval: 1000
interval: 60000
running: true
repeat: true
onTriggered: clockText.text = new Date().toLocaleTimeString(Qt.locale(), "HH:mm")
onTriggered: updateDate()
}
}