import QtQuick import Quickshell import "../../components" import "../../theme" import "../../services" import "../../core" GlassPill { id: root readonly property var options: ConfigService.data.bar.clock width: label.implicitWidth + 30 height: ModuleRegistry.pillHeight SystemClock { id: clock precision: root.options.showSeconds ? SystemClock.Seconds : SystemClock.Minutes } Text { id: label anchors.centerIn: parent text: Qt.formatDateTime(clock.date, (root.options.showDate ? "ddd, d MMM " : "") + (root.options.use24Hour ? "HH:mm" : "h:mm") + (root.options.showSeconds ? ":ss" : "") + (root.options.use24Hour ? "" : " AP")) color: Theme.text font.pixelSize: 13 } // Clicking the clock opens the dashboard (Settings → Dashboard). MouseArea { anchors.fill: parent enabled: ConfigService.ready && ConfigService.data.dashboard.enabled && ConfigService.data.dashboard.openFromClock cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor onClicked: ShellState.toggleDashboard("") } }