feat(quickshell): dashboard drawer that drops from the bar
A drawer lowered out of the underside of the bar, painted in the hull colour and joined to it by two concave fillets so it reads as more of the hull rather than as a floating card — caelestia's dashboard idea, in the YoRHa language. Four columns divided by hairlines: operator and clock, the month with today as an inverted square, the system meters, and the active player with a hairline timeline and square transport buttons. Opened by clicking the bar's clock (which used to pin the calendar), by SUPER+I, or by `qs ipc call shell dashboard`. Escape or moving focus away closes it through a HyprlandFocusGrab; Actions.dashboardClosedAt keeps the clock click that cleared the grab from reopening it. The clock's calendar hover is suppressed while the drawer is down, since it shows the month. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
18091a7109
commit
ecc7d2884c
6 files changed
+688
-5
No files matched your search
@@ -3,8 +3,10 @@ import Quickshell
|
||||
import "root:/config"
|
||||
import "root:/components"
|
||||
import "root:/popouts"
|
||||
import "root:/services"
|
||||
|
||||
// Centre-stage clock. Hovering drops the calendar.
|
||||
// Centre-stage clock. Hovering drops the calendar; clicking drops the
|
||||
// dashboard, which carries the calendar too.
|
||||
BarPill {
|
||||
id: root
|
||||
|
||||
@@ -20,7 +22,7 @@ BarPill {
|
||||
precision: SystemClock.Minutes
|
||||
}
|
||||
|
||||
onClicked: calendar.pinned = !calendar.pinned
|
||||
onClicked: Actions.toggleDashboard()
|
||||
|
||||
Row {
|
||||
id: layout
|
||||
@@ -116,7 +118,8 @@ BarPill {
|
||||
CalendarPopout {
|
||||
id: calendar
|
||||
anchorItem: root
|
||||
triggerHovered: root.hovered
|
||||
// Not while the dashboard is down: it already shows the month.
|
||||
triggerHovered: root.hovered && !Actions.dashboardOpen
|
||||
clockDate: clock.date
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user