new themes + notif dnd
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user