chore: and more cleanups
This commit is contained in:
@@ -11,6 +11,24 @@
|
||||
use "./i18n.allium" as i18n
|
||||
use "./task.allium" as task
|
||||
|
||||
surface LayoutControlSurface {
|
||||
facing _: LayoutOperator
|
||||
|
||||
provides:
|
||||
ToggleSidebarRequested()
|
||||
TogglePanelRequested()
|
||||
ToggleAssistantSidebarRequested()
|
||||
ActivityClicked(activity_id)
|
||||
}
|
||||
|
||||
surface LayoutRuntimeSurface {
|
||||
facing _: LayoutRuntime
|
||||
|
||||
provides:
|
||||
GitBadgePollTick(badge)
|
||||
ClearGitBadgeTick(badge)
|
||||
}
|
||||
|
||||
-- ─── Window shell ─────────────────────────────────────────────
|
||||
|
||||
-- +------------------------------------------------------------+
|
||||
@@ -37,6 +55,17 @@ value AppShell {
|
||||
status_bar: StatusBar
|
||||
}
|
||||
|
||||
surface AppShellSurface {
|
||||
context shell: AppShell
|
||||
|
||||
exposes:
|
||||
shell.title_bar.title
|
||||
shell.sidebar.visible
|
||||
shell.sidebar.width
|
||||
shell.content_area.panel.visible
|
||||
shell.assistant_sidebar.visible
|
||||
}
|
||||
|
||||
value ContentArea {
|
||||
-- tab_bar: see tabs.allium
|
||||
-- editor: routed by active tab; see tabs.allium
|
||||
@@ -69,6 +98,15 @@ value ShellVisibility {
|
||||
assistant_sidebar_visible: Boolean
|
||||
}
|
||||
|
||||
surface ShellVisibilitySurface {
|
||||
context visibility: ShellVisibility
|
||||
|
||||
exposes:
|
||||
visibility.sidebar_visible
|
||||
visibility.panel_visible
|
||||
visibility.assistant_sidebar_visible
|
||||
}
|
||||
|
||||
rule ToggleSidebar {
|
||||
when: ToggleSidebarRequested()
|
||||
ensures: sidebar_visible = not sidebar_visible
|
||||
|
||||
Reference in New Issue
Block a user