Add calendar app and accelerometer demo

This commit is contained in:
James Babcock committed 2026-07-11 14:15:10 -07:00
1 parent 3cdc5ba262
commit ff447d5161
18 files changed
+911 -5

No files matched your search

+9
View File
@@ -367,6 +367,15 @@ class Shell {
return this.screenOn && this.focus === "window" && this.foregroundWindow()?.windowId === windowId;
}
/**
* Whether a window's content is on screen: it's the foreground window and the
* screen is on. Focus-independent — the app viewport stays visible while the
* sidebar is focused (the sidebar is just the left strip).
*/
isWindowVisible(windowId: string): boolean {
return this.screenOn && this.foregroundWindow()?.windowId === windowId;
}
private handleSidebarInput(event: DashboardInputEvent): ShellInputOutcome {
switch (event.type) {
case "double-click":