From 5d8abecec3ea8f777951cb200e345f7ef497455a Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 18 Nov 2026 16:01:11 +0000 Subject: [PATCH] chrome-w1: net change of 4 commits - chrome-w1: written by an agent - chrome-w1: finished by an agent - chrome-w1: finished by an agent - chrome-w1: review fixes (review-1) --- crates/ui-contract/src/runtime/env/shell.rs | 18 +- crates/ui-shell/src/shell/app_shell.rs | 170 ++++++++++++--- .../ui-shell/src/shell/app_shell/stories.rs | 69 ++++++- crates/ui-shell/src/shell/recent_list.rs | 1 + crates/ui-shell/src/shell/regions.rs | 31 ++- crates/ui-shell/src/shell/reveal.rs | 12 +- crates/ui-shell/src/shell/screen_mode.rs | 53 +++-- .../ui-shell/src/shell/screen_mode_button.rs | 18 +- .../src/shell/screen_mode_button/stories.rs | 17 +- crates/ui-shell/src/shell/title_bar.rs | 1 + crates/ui-shell/src/shell/title_bar/bar.rs | 191 ++++++++++------- .../src/shell/title_bar/bar/stories.rs | 9 + .../ui-shell/src/shell/title_bar/page_band.rs | 124 ++++++++++- crates/ui-shell/src/shell/title_bar/title.rs | 51 +++-- crates/ui-shell/tests/it/shell/app_shell.rs | 195 +++++++++++++++++- crates/ui-shell/tests/it/shell/screen_mode.rs | 179 +++++++++++++++- crates/ui-shell/tests/it/shell/title_bar.rs | 61 +++++- 17 files changed, 1015 insertions(+), 185 deletions(-) diff --git a/crates/ui-contract/src/runtime/env/shell.rs b/crates/ui-contract/src/runtime/env/shell.rs index 7e72311d3..4fd0be425 100644 --- a/crates/ui-contract/src/runtime/env/shell.rs +++ b/crates/ui-contract/src/runtime/env/shell.rs @@ -128,14 +128,16 @@ struct Inner { page_band: Option, } -/// The room of the page band while a full-window page shows. +/// The room of the page band while a full-window page shows: the title-bar-high strip at the window's top and the room +/// the window's ends take in it. #[derive(Clone, Copy, Debug, PartialEq)] pub struct PageBandRoom { /// The band's rect. pub rect: Rect, - /// Where the band starts along its axis. + /// The width the window's start end takes (the traffic lights' inset or the caption buttons), from the band's + /// reading start. pub start: f32, - /// Where the band ends along its axis. + /// The width the window's end end takes, from the band's reading end. pub end: f32, } @@ -326,13 +328,13 @@ impl ShellCx { /// The page band's room while a full-window page shows, else `None`. pub fn page_band(&self) -> Option { - todo!("ch.C5a") + self.inner.page_band } - /// Sets the page band's room. - pub fn with_page_band(self, room: Option) -> Self { - let _ = room; - todo!("ch.C5a") + /// The page band's room while a full-window page shows; `None` when no page shows or the window is full screen. + pub fn with_page_band(mut self, room: Option) -> Self { + Arc::make_mut(&mut self.inner).page_band = room; + self } } diff --git a/crates/ui-shell/src/shell/app_shell.rs b/crates/ui-shell/src/shell/app_shell.rs index 030937822..e9d05bbd4 100644 --- a/crates/ui-shell/src/shell/app_shell.rs +++ b/crates/ui-shell/src/shell/app_shell.rs @@ -11,6 +11,7 @@ use super::canvas_shell::slots as keys; use super::regions::{Claim, SlotSize, layout}; use super::reveal::{Aim, Reveal, Tracking}; use super::screen_mode::{ScreenMode, ScreenModeCommands, ScreenModeFollow, ScreenModeSet}; +use super::title_bar::PageBand; use super::words::ShellWords; use crate::contract::overlay::Resize; use crate::contract::{ @@ -18,7 +19,7 @@ use crate::contract::{ Role, ShellPane, ShowContainer as _, Sizing, }; use crate::notices::ToastStack; -use crate::runtime::commands::{CommandAccess as _, CommandSet as _}; +use crate::runtime::commands::{CommandAccess as _, CommandScope, CommandSet as _}; use crate::runtime::egui::pass; use crate::runtime::env::{AppValues, BodyMode, Env, Label, RevealEdge, ShellCx, ShellEntry, ShellRegions, SlotKey, WindowKey}; use crate::runtime::focus::FocusPolicy; @@ -28,7 +29,7 @@ use crate::runtime::pointer; use crate::runtime::windows::{WindowAction, WindowHost}; use crate::shell::Slot; use crate::style::{ComponentStyle, StyleCx, SurfaceKind, UiTokens}; -use craft_behavior::{Metrics, Sense}; +use craft_behavior::{EditEvent, Metrics, Mixed, Sense}; use egui::{Rect, Response, Ui}; use std::sync::Arc; @@ -92,6 +93,8 @@ pub struct ShellRegion { #[container] props: ContainerProps, shell: Option, + /// The screen modes of the shell, published to everything inside a scope region with the shell itself. + mode_set: Option, /// Whether the region senses a press on its own surface, where no child or part takes it (`Sense::SURFACE`). #[prop(flag)] senses_surface: bool, @@ -104,7 +107,7 @@ impl ShellRegion { pub fn window() -> Self { let props = ContainerProps::new().mount(Mount::window(Resize::GRIPS)).surface(SurfaceKind::Background).command_scope(ScreenModeCommands::SCOPE); - ShellRegion { common: Common::new(), props, shell: None, senses_surface: false } + ShellRegion { common: Common::new(), props, shell: None, mode_set: None, senses_surface: false } } /// The content of a shell shown inside a region of another window: it fills its room, answers the screen-mode @@ -112,13 +115,20 @@ impl ShellRegion { pub fn embedded() -> Self { let props = ContainerProps::new().sizing(crate::contract::Sizing::Fill).surface(SurfaceKind::Background).command_scope(ScreenModeCommands::SCOPE); - ShellRegion { common: Common::new(), props, shell: None, senses_surface: false } + ShellRegion { common: Common::new(), props, shell: None, mode_set: None, senses_surface: false } } /// An inline region that fills its room and sets `shell` for everything inside it. pub fn scope(shell: ShellCx) -> Self { let props = ContainerProps::new().sizing(crate::contract::Sizing::Fill).command_scope(crate::runtime::commands::CommandScope::APP); - ShellRegion { common: Common::new(), props, shell: Some(shell), senses_surface: false } + ShellRegion { common: Common::new(), props, shell: Some(shell), mode_set: None, senses_surface: false } + } + + /// Sets the shell's screen modes for everything inside the region, beside its shell: a `ScreenModeButton` in a + /// slot reads them with `Env::get`. + fn with_mode_set(mut self, set: ScreenModeSet) -> Self { + self.mode_set = Some(set); + self } /// A pane of the window; it fills the room its edge gives it. A top or bottom pane lays its content along its edge @@ -127,7 +137,7 @@ impl ShellRegion { pub fn pane(pane: ShellPane) -> Self { let layout = if matches!(pane.edge, PaneEdge::Top | PaneEdge::Bottom) { BodyLayout::row() } else { BodyLayout::stack() }; let props = ContainerProps::new().mount(Mount::Pane(pane)).focus(FocusPolicy::PANE).layout(layout); - ShellRegion { common: Common::new(), props, shell: None, senses_surface: false } + ShellRegion { common: Common::new(), props, shell: None, mode_set: None, senses_surface: false } } /// A bar or rail pane at an edge of the window: it paints the chrome surface over the whole pane and a divider @@ -160,6 +170,9 @@ impl Component for ShellRegion { if let Some(shell) = &self.shell { shell.put(values); } + if let Some(set) = self.mode_set { + values.set(set); + } } fn finish(self, cx: Cx<'_, Self>) -> ShellRegionOutput { @@ -203,6 +216,12 @@ impl Placed<'_, S> { } } +/// Whether `slot` covers the body instead of taking room from it: every slot of a body-only pass but the screen bar, +/// which Focus and Immersive lay out above the body. +fn covers(slot: &Slot, only: bool) -> bool { + only && !slot.is_screen_bar() +} + /// What the shell keeps between passes, in the root container's slot. #[derive(Clone, Debug, Default)] struct ShellState { @@ -217,6 +236,7 @@ struct Parts { revealed: bool, panels_hidden: bool, mode: ScreenMode, + dropped: bool, } /// What [`AppShell::show`] drew. @@ -234,6 +254,9 @@ pub struct AppShellOutput { pub panels_hidden: bool, /// The screen mode after this pass. pub screen_mode: ScreenMode, + /// Whether the drop-down slot ([`Slot::drops`]) shows after this pass. A host that binds `dropped` with + /// `Bind::given` writes it back, so a press in the body or a mode change that cleared it holds. + pub dropped: bool, } impl Outcome for AppShellOutput { @@ -315,6 +338,8 @@ pub struct AppShell<'a, S> { /// The body, shown in what the slots leave. #[prop(func = "FnMut(&mut Ui, &mut BodyCx<'_>, &mut S)")] body: Option>, + /// The full-window page and its command scope, set while it shows. + page: Option<(CommandScope, SlotBody<'a, S>)>, } impl<'a, S> AppShell<'a, S> { @@ -336,6 +361,7 @@ impl<'a, S> AppShell<'a, S> { title: None, slots: Vec::new(), body: None, + page: None, } } @@ -399,10 +425,14 @@ impl<'a, S> AppShell<'a, S> { self.place(PaneEdge::Start, slot, add) } - /// A page that, while `shown`, fills the window under a move band with the window's ends; dialogs run over it. - pub fn page(mut self, shown: bool, add: impl FnMut(&mut Ui, &mut BodyCx<'_>, &mut S) + 'a) -> Self { - let _ = (&mut self, shown, add); - todo!("ch.C5") + /// A page that, while `shown`, fills the window in place of the slots and the body (a backstage, a print page). A + /// move band with the window's ends (the traffic lights' room or the caption buttons) lies over its top; the page + /// reads the room they take with `ShellCx::page_band` and keeps its controls clear of the band. The page's region is + /// the instance of `scope`; dialogs run over it, and with nothing focused the page takes keys beside the window's, + /// so `scope`'s commands get their default keys. + pub fn page(mut self, shown: bool, scope: CommandScope, add: impl FnMut(&mut Ui, &mut BodyCx<'_>, &mut S) + 'a) -> Self { + self.page = shown.then(|| (scope, SlotBody::new(add))); + self } /// A slot at the reading end, inside the ones added before it. @@ -445,7 +475,7 @@ impl<'a, S> AppShell<'a, S> { content_room, mut screen_mode, mode_set, - dropped: _dropped, // P3(chrome-w1): ch.C3 + mut dropped, allow_reveal, edge_reveal, document_tabs, @@ -454,6 +484,7 @@ impl<'a, S> AppShell<'a, S> { title, slots, mut body, + mut page, } = self; let embedded = embedded || content_room.is_some(); if let Some(title) = window_title @@ -483,37 +514,80 @@ impl<'a, S> AppShell<'a, S> { let mut kept = cx.keep::().clone(); let name: Arc = words.screen_mode.as_str().into(); - let (mode, changed) = kept.screen.follow(&ctx, cx, screen_mode.reborrow(), name, !embedded, mode_set); + let (mode, changed) = kept.screen.follow(&ctx, cx, screen_mode.reborrow(), Arc::clone(&name), !embedded, mode_set); if changed { kept.reveal.clear(); } + let dropped_before = matches!(dropped.reborrow().read(cx), Some(Mixed::Same(true))); + // A mode change folds the drop-down slot away, whoever changed the mode. + let mut is_dropped = dropped_before && !changed; let host_only = mode.body_only(); if let Some(root) = cx.command_chain().innermost(ScreenModeCommands::SCOPE.name()) { note_shell(&ctx, viewport, &window, root); } - kept.reveal.apply(&take_chrome_toggles(&ctx, viewport, &window), host_only, allow_reveal); + // A page takes no part in the reveal: the toggles are taken, so they are not replayed once it closes. + let paged = page.is_some(); + let toggles = take_chrome_toggles(&ctx, viewport, &window); + if !paged { + kept.reveal.apply(&toggles, host_only, allow_reveal); + } let only = kept.reveal.only(host_only); let pointer = pointer::frame(&ctx); let frozen = !pointer.buttons.is_empty() || any_open(&ctx, OpenFilter::Keys); let rtl = cx.env.direction().is_rtl(); - kept.reveal.track(Tracking::new(only, allow_reveal, edge_reveal), Aim::new(pointer.pos, frozen, cx.rect, rtl)); + if !paged { + kept.reveal.track(Tracking::new(only, allow_reveal, edge_reveal), Aim::new(pointer.pos, frozen, cx.rect, rtl)); + } // Every shown slot's rect and the body's, before any slot runs. Slots that a reveal shows in body-only mode - // cover the body. - let visible: Vec = - slots.iter().map(|placed| !bare && kept.reveal.shows(&placed.slot, placed.edge, only, allow_reveal, mode, false)).collect(); - // A pass with no title bar has no move band: the OS moves the window from nowhere in it. - if !embedded && !slots.iter().zip(&visible).any(|(placed, shown)| placed.title && *shown) { + // cover the body; the screen bar takes its room from it. + let plan = |is_dropped: bool| { + let visible: Vec = slots + .iter() + .map(|placed| !bare && !paged && kept.reveal.shows(&placed.slot, placed.edge, only, allow_reveal, mode, is_dropped)) + .collect(); + let claims: Vec = slots + .iter() + .zip(&visible) + .filter(|(_, shown)| **shown) + .map(|(placed, _)| Claim { + key: placed.slot.key(), + edge: placed.edge, + extent: placed.extent(&tokens), + overlay: covers(&placed.slot, only), + }) + .collect(); + let regions = layout(cx.rect, &claims, rtl); + (visible, claims, regions) + }; + let (mut visible, mut claims, mut regions) = plan(is_dropped); + // A press in the body folds the drop-down slot away; a press in the slot itself, which lies over the body, + // is the slot's own. Only the pass that receives the press sees it: a rerun pass of the frame has none. + if is_dropped + && !paged + && let Some(press) = pointer.press + && regions.body.contains(press.origin) + && !slots + .iter() + .zip(&visible) + .filter(|(placed, shown)| **shown && placed.slot.drops_down()) + .any(|(placed, _)| regions.slots.iter().any(|(key, rect)| *key == placed.slot.key() && rect.contains(press.origin))) + { + is_dropped = false; + (visible, claims, regions) = plan(is_dropped); + } + if is_dropped != dropped_before { + let event = EditEvent::set(Mixed::Same(dropped_before), is_dropped, Arc::from(""), None); + let _ = dropped.reborrow().write(cx, &event); + } + let dropped_shown = slots.iter().zip(&visible).any(|(placed, shown)| *shown && placed.slot.drops_down()); + + // A pass with no title bar has no move band: the OS moves the window from nowhere in it. A page's band is + // the move band of its pass, and a modal over the page keeps it through the window's caption regions. + if !embedded && !paged && !slots.iter().zip(&visible).any(|(placed, shown)| placed.title && *shown) { super::title_bar::set_window_movable(&ctx, false); } - let claims: Vec = slots - .iter() - .zip(&visible) - .filter(|(_, shown)| **shown) - .map(|(placed, _)| Claim { key: placed.slot.key(), edge: placed.edge, extent: placed.extent(&tokens), overlay: only }) - .collect(); - let regions = layout(cx.rect, &claims, rtl); let tabs = mode.tabs_visible() && document_tabs; let mut shell = ShellCx::new(window.clone(), if only { BodyMode::Only } else { BodyMode::Normal }, regions.clone()) @@ -532,11 +606,14 @@ impl<'a, S> AppShell<'a, S> { for edge in [RevealEdge::Top, RevealEdge::Start, RevealEdge::End] { shell = shell.with_edge_reveal(edge, kept.reveal.edge(edge)); } + if paged { + shell = shell.with_page_band(super::title_bar::page_band_room(cx, &tokens, cx.rect, !embedded)); + } let panels_hidden = kept.reveal.panels_hidden(); let rect_of = |key| regions.slots.iter().find(|(shown, _)| *shown == key).map_or(Rect::ZERO, |(_, rect)| *rect); let scope = shell.clone(); - let mut scope_region = ShellRegion::scope(shell).id_salt("shell"); + let mut scope_region = ShellRegion::scope(shell).with_mode_set(mode_set).id_salt("shell"); if content_room.is_some() { scope_region = scope_region.sizing(Sizing::FillWidth); } @@ -544,9 +621,25 @@ impl<'a, S> AppShell<'a, S> { if unseen && !ui.is_sizing_pass() { return; } + if let Some((scope, SlotBody(page))) = page.as_mut() { + let pane = ShellPane::new("page"); + let pane = if content_room.is_some() { pane.at_content_height(regions.body) } else { pane.at(regions.body) }; + let mut region = ShellRegion::pane(pane).label(body_label.clone()); + region.props = region.props.command_scope(*scope); + let shown = region.show(ui, |ui, bcx| page(ui, bcx, app)); + // With nothing focused the page takes keys beside the window's, as a modal's root does; the window's + // shell record stays. + // PLAN: assumed `commands::note_page_root(ctx: &Context, viewport: ViewportId, id: Id)` (chrome-w6) + crate::runtime::commands::note_page_root(&ctx, viewport, shown.output.response.id); + PageBand::new().show_over_page(ui); + if let Some(dialogs) = WindowDialogs::existing(ui.ctx(), &window) { + dialogs.run(ui); + } + return; + } let mut show_slots = |ui: &mut Ui, covering: bool, app: &mut S| { for (placed, shown) in slots.iter_mut().zip(&visible) { - if !*shown || only != covering { + if !*shown || covers(&placed.slot, only) != covering { continue; } let extent = placed.extent(&tokens); @@ -568,13 +661,15 @@ impl<'a, S> AppShell<'a, S> { } }; show_slots(ui, false, app); - // Only a body-only shell paints behind its body (the scrim). Otherwise the body paints what it shows, and the gaps - // between its parts (the dock's gutters) show the window's background. + // Behind its body a shell paints the scrim where the user hid the chrome of a mode that shows it, else the + // mode's surround (Focus's black). Otherwise the body paints what it shows, and the gaps between its parts + // (the dock's gutters) show the window's background; Immersive's body fills the room with its own canvas. let pane = ShellPane::new("body"); let pane = if content_room.is_some() { pane.at_content_height(regions.body) } else { pane.at(regions.body) }; let mut center = ShellRegion::pane(pane).label(body_label.clone()); - if only { - center = center.surface(SurfaceKind::Scrim); + let surround = if only && !host_only { Some(SurfaceKind::Scrim) } else { mode.surround() }; + if let Some(surface) = surround { + center = center.surface(surface); } let shown = center.show(ui, |ui, bcx| { if let Some(SlotBody(body)) = body.as_mut() { @@ -612,9 +707,14 @@ impl<'a, S> AppShell<'a, S> { .collect(); edges.extend(scope.revealed_rects()); kept.reveal.record(edges); - let revealed = only && !regions.slots.is_empty(); + // The screen bar and the drop-down slot show by the mode, never by a reveal. + let revealed = only + && slots + .iter() + .zip(&visible) + .any(|(placed, shown)| *shown && !placed.slot.is_screen_bar() && !placed.slot.drops_down()); *cx.keep::() = kept; - Parts { regions, revealed, panels_hidden, mode } + Parts { regions, revealed, panels_hidden, mode, dropped: dropped_shown } }; let shown = match at { Some(rect) => root.show_at_taking_room(ui, rect, shell_body), @@ -628,6 +728,7 @@ impl<'a, S> AppShell<'a, S> { revealed: parts.revealed, panels_hidden: parts.panels_hidden, screen_mode: parts.mode, + dropped: parts.dropped, }, None => AppShellOutput { response, @@ -635,6 +736,7 @@ impl<'a, S> AppShell<'a, S> { revealed: false, panels_hidden: false, screen_mode: ScreenMode::default(), + dropped: false, }, } } diff --git a/crates/ui-shell/src/shell/app_shell/stories.rs b/crates/ui-shell/src/shell/app_shell/stories.rs index c1b226c83..fded1625c 100644 --- a/crates/ui-shell/src/shell/app_shell/stories.rs +++ b/crates/ui-shell/src/shell/app_shell/stories.rs @@ -6,8 +6,9 @@ use crate::contract::{Bind, Props as _, Show as _, ShowContainer as _}; use crate::dialog::Dialog; use crate::display::Text; use crate::layout_components::Grid; +use crate::runtime::commands::CommandScope; use crate::runtime::env::WindowKey; -use crate::shell::{CanvasPanel, Slot}; +use crate::shell::{CanvasPanel, ScreenMode, ScreenModeButton, ScreenModeSet, Slot}; use crate::testing::{Drive, StoryData, StoryOutput, stage, story}; use craft_behavior::ColumnWidth; use egui::Ui; @@ -61,6 +62,72 @@ fn app_shell_canvas(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { .into() } +/// A document shell in `mode` of the Document set: a title bar and a tool rail that the mode hides, the screen bar +/// with the screen-mode button, and a drop-down slot shown while `dropped` is set. +fn document_shell(ui: &mut Ui, mode: ScreenMode, dropped: &mut bool) -> StoryOutput { + let room = stage(ui); + AppShell::embedded(WindowKey::new(format!("document-{mode:?}"))) + .mode_set(ScreenModeSet::Document) + .screen_mode(Bind::given(mode)) + .dropped(Bind::bound(dropped)) + .title_bar(|ui, _, _| { + Text::new("Title").show(ui); + }) + .top(Slot::new("screen").screen_bar().label("Screen"), |ui, _, _| { + Text::new("Page 1 of 3").show(ui); + let _ = ScreenModeButton::new(mode).show(ui); + }) + .top(Slot::new("ribbon").drops().label("Ribbon"), |ui, _, _| { + Text::new("Ribbon").show(ui); + }) + .start(Slot::new("tools").reveal().label("Tools"), |ui, _, _| { + Text::new("Tools").show(ui); + }) + .body(|ui, _, _| { + Text::new("Document").show(ui); + }) + .show_at(ui, room, &mut ()) + .into() +} + +/// Focus: the screen bar over the body on the black surround, with the drop-down slot shown until a press in the +/// body folds it away. +#[story(AppShell<'static, ()>, covers = [], drive = Drive::Never)] +fn app_shell_focus(ui: &mut Ui, data: &mut StoryData) -> StoryOutput { + let mut dropped = *data.value("dropped", true); + let shown = document_shell(ui, ScreenMode::Focus, &mut dropped); + *data.value("dropped", true) = dropped; + shown +} + +/// Immersive: the screen bar over the body, which fills the room with its own canvas; no drop-down slot. +#[story(AppShell<'static, ()>, covers = [], drive = Drive::Never)] +fn app_shell_immersive(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { + let mut dropped = false; + document_shell(ui, ScreenMode::Immersive, &mut dropped) +} + +/// A full-window page in place of the slots and the body, with the band of the window's ends over its top. +#[story(AppShell<'static, ()>, covers = [], drive = Drive::Never)] +fn app_shell_page(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { + let room = stage(ui); + AppShell::embedded(WindowKey::new("page")) + .title_bar(|ui, _, _| { + Text::new("Title").show(ui); + }) + .start(Slot::new("tools").reveal().label("Tools"), |ui, _, _| { + Text::new("Tools").show(ui); + }) + .body(|ui, _, _| { + Text::new("Document").show(ui); + }) + .page(true, CommandScope::APP, |ui, _, _| { + Text::new("Print").show(ui); + }) + .show_at(ui, room, &mut ()) + .into() +} + #[story(ShellRegion, covers = [Default], drive = Drive::Never)] fn shell_region(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { ShellRegion::window() diff --git a/crates/ui-shell/src/shell/recent_list.rs b/crates/ui-shell/src/shell/recent_list.rs index 2ae25e1ba..05b1402ec 100644 --- a/crates/ui-shell/src/shell/recent_list.rs +++ b/crates/ui-shell/src/shell/recent_list.rs @@ -52,6 +52,7 @@ impl<'a> RecentList<'a> { /// Shows the rows and reports what the user did. pub fn show(self, ui: &mut Ui) -> StartOutput { let _ = (self.recent, self.max_recent, self.empty, self.now, self.thumbnails, ui); + todo!("ch.C7") } } diff --git a/crates/ui-shell/src/shell/regions.rs b/crates/ui-shell/src/shell/regions.rs index 8e57a2a33..852b1da1a 100644 --- a/crates/ui-shell/src/shell/regions.rs +++ b/crates/ui-shell/src/shell/regions.rs @@ -56,13 +56,15 @@ pub struct Slot { reveal: bool, label: Option