diff options
Diffstat (limited to 'desktop/island/ClockPill.qml')
| -rw-r--r-- | desktop/island/ClockPill.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/island/ClockPill.qml b/desktop/island/ClockPill.qml index 4ed8e38..9677508 100644 --- a/desktop/island/ClockPill.qml +++ b/desktop/island/ClockPill.qml @@ -12,6 +12,7 @@ import Quickshell import Quickshell.Widgets import QtQuick +import "calendar/Cal.js" as Cal import ".." import "../modules/vm" import "calendar" @@ -39,6 +40,7 @@ Capsule { // Escape asks the panel before closing it. function focusPanel() { calendarPanel.reset(); calendarPanel.forceActiveFocus(); } function back() { return calendarPanel.back(); } + function importFile(path) { calendarPanel.importFile(path); } readonly property var entry: flickApp ? DesktopEntries.heuristicLookup(flickApp) : null readonly property string wsIcon: Workspaces.icon(flickWs) @@ -62,13 +64,13 @@ Capsule { Text { anchors.verticalCenter: parent.verticalCenter - text: Qt.formatDateTime(clock.date, "ddd dd/MM") + text: Qt.formatDateTime(clock.date, Cal.shortDateFmt(Prefs.island.dateFormat)) font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } color: Theme.subtext } Text { anchors.verticalCenter: parent.verticalCenter - text: Qt.formatDateTime(clock.date, "HH:mm") + text: Qt.formatDateTime(clock.date, Cal.timeFmt(Prefs.island.h12)) font { family: Theme.fontFamily; pixelSize: Theme.fontSize; weight: Font.DemiBold } color: Theme.text } |
