import QtQuick import Quickshell import "." Item { id: root required property QtObject theme required property var barWindow property bool calendarVisible: false implicitWidth: button.implicitWidth implicitHeight: button.implicitHeight BarButton { id: button theme: root.theme // Preserve Ironbar's compact HH:mm text; the richer calendar is opt-in on click. text: Qt.formatTime(clock.date, "HH:mm") active: root.calendarVisible muted: false onActivated: root.calendarVisible = !root.calendarVisible } CalendarPopup { visible: root.calendarVisible theme: root.theme barWindow: root.barWindow anchorItem: button shownDate: clock.date } SystemClock { id: clock precision: SystemClock.Minutes } }