diff --git a/crates/app/src/interact.rs b/crates/app/src/interact.rs
index 9cd92e3..a3ca4a9 100644
--- a/crates/app/src/interact.rs
+++ b/crates/app/src/interact.rs
@@ -185,6 +185,37 @@ pub(crate) fn scrim() -> Div {
div().absolute().inset_0().occlude()
}
+/// The body every hanging menu is drawn on: the clip menu, the library row
+/// menu and the open choice list, one shape for all three.
+///
+/// It exists because the three drifted: each carried its own copy of the
+/// plate chrome, so styling one (the picker, 2026-08-21) left the other two
+/// painting the legacy raised grey -- the user's "right click menu in library
+/// is old too". A plate is `panel` with a seam around it and a 6px radius
+/// (DESIGN §2/§4); the legacy tree keeps its own raised sheet. One function,
+/// so the next change reaches all three or none.
+pub(crate) fn menu_plate(id: &'static str, x: f32, y: f32, darkroom: bool) -> Stateful
{
+ div()
+ .id(id)
+ .absolute()
+ .left(px(x))
+ .top(px(y))
+ .w(px(crate::layout::MENU_W))
+ .flex()
+ .flex_col()
+ .p(px(crate::layout::MENU_PAD))
+ .rounded(px(6.))
+ .bg(rgb(if darkroom {
+ crate::ui::theme::DARK_PANEL()
+ } else {
+ crate::ui::theme::BG_RAISED()
+ }))
+ .when(darkroom, |d| {
+ d.border_1()
+ .border_color(rgba(crate::ui::theme::DARK_SEAM()))
+ })
+}
+
/// The sheet a card with a *slider* in it takes instead: the same scrim, with
/// the window's own drag listeners on it as well.
///
diff --git a/crates/app/src/menus.rs b/crates/app/src/menus.rs
index fa9ae08..fbd1694 100644
--- a/crates/app/src/menus.rs
+++ b/crates/app/src/menus.rs
@@ -116,13 +116,21 @@ pub(crate) type ChoiceRow = (Choice, SharedString, SharedString, bool);
pub(crate) enum RowItem {
Add,
Remove,
+ /// Remove that first deletes every clip playing the row. The plain
+ /// [`RowItem::Remove`] is refused while any clip plays a source (the
+ /// engine's own rule), which used to leave a placed source with no way
+ /// out of the library at all -- this is that way out, and it is
+ /// destructive, so it is listed only when it is the one that applies and
+ /// it says how many clips it takes with it.
+ RemoveWithClips,
Reveal,
Properties,
}
-pub(crate) const ROW_ITEMS: [RowItem; 4] = [
+pub(crate) const ROW_ITEMS: [RowItem; 5] = [
RowItem::Add,
RowItem::Remove,
+ RowItem::RemoveWithClips,
RowItem::Reveal,
RowItem::Properties,
];
@@ -132,6 +140,12 @@ impl RowItem {
match self {
Self::Add => "Add at playhead",
Self::Remove => "Remove from library",
+ // Same label as the plain remove: only ever one of the two is on
+ // the plate (the oracle hides the other), so what differs is the
+ // consequence, and the consequence belongs in the hint column
+ // where every other row states its own. The long dashed title
+ // truncated its own hint at `MENU_W`.
+ Self::RemoveWithClips => "Remove from library",
Self::Reveal => "Reveal in files",
Self::Properties => "Properties",
}
@@ -146,6 +160,7 @@ impl RowItem {
// off mid-word says less than a shorter one.
Self::Add => "the whole file",
Self::Remove => "nothing plays it",
+ Self::RemoveWithClips => "clips too",
Self::Reveal => "file manager",
Self::Properties => "…",
}
diff --git a/crates/app/src/oracle.rs b/crates/app/src/oracle.rs
index 47bc295..75816d5 100644
--- a/crates/app/src/oracle.rs
+++ b/crates/app/src/oracle.rs
@@ -373,12 +373,22 @@ pub(crate) fn row_enable(item: RowItem, ctx: RowCtx) -> Enable {
match item {
// The two that change the timeline, so an export reading it stops them
// both -- the key handler's rule, applied to a menu.
- RowItem::Add | RowItem::Remove if ctx.exporting => Enable::No("an export is running"),
- RowItem::Add | RowItem::Remove if !ctx.timeline => Enable::No("no timeline open"),
+ RowItem::Add | RowItem::Remove | RowItem::RemoveWithClips if ctx.exporting => {
+ Enable::No("an export is running")
+ }
+ RowItem::Add | RowItem::Remove | RowItem::RemoveWithClips if !ctx.timeline => {
+ Enable::No("no timeline open")
+ }
// Dimmed and saying why rather than clicked and refused afterwards: the
// row's own grey already says the file cannot join this timeline.
RowItem::Add if !ctx.usable => Enable::No("it cannot join this one"),
- RowItem::Remove if ctx.placed > 0 => Enable::No("clips play it"),
+ // The two removes are one verb with two shapes, and exactly one of
+ // them is ever on the plate: the plain one while nothing plays the
+ // source, the clips-too one while something does. Hidden rather than
+ // dimmed, because a dimmed "Remove" sitting above a live "Remove —
+ // with its clips" is two rows arguing about the same act.
+ RowItem::Remove if ctx.placed > 0 => Enable::Hidden("clips play it"),
+ RowItem::RemoveWithClips if ctx.placed == 0 => Enable::Hidden("nothing plays it"),
// Neither of these touches the timeline: a file can be found on disk and
// described whatever the editor is doing, with no timeline at all.
_ => Enable::Yes,
diff --git a/crates/app/src/player/actions.rs b/crates/app/src/player/actions.rs
index 8e72d42..7de72ad 100644
--- a/crates/app/src/player/actions.rs
+++ b/crates/app/src/player/actions.rs
@@ -429,6 +429,10 @@ impl Player {
self.library_menu = None;
self.remove_source(&menu.path, menu.stream, cx);
}
+ RowItem::RemoveWithClips => {
+ self.library_menu = None;
+ self.remove_source_and_clips(&menu.path, menu.stream, cx);
+ }
RowItem::Reveal => {
self.library_menu = None;
// Another process starting: off the UI thread, exactly as the
diff --git a/crates/app/src/player/library.rs b/crates/app/src/player/library.rs
index b7ce130..bb5f917 100644
--- a/crates/app/src/player/library.rs
+++ b/crates/app/src/player/library.rs
@@ -199,6 +199,90 @@ impl Player {
cx.notify();
}
+ /// Removes a library row *and* every clip playing it, in that order --
+ /// the plain [`Player::remove_source`] is refused by the engine while any
+ /// clip still plays a source, which left a placed file with no reachable
+ /// way out of the library at all (user 2026-08-21: "can not remove a
+ /// media from library"). Destructive, and named so on the plate it is
+ /// picked from; one undo entry per deleted clip, exactly as deleting them
+ /// by hand would leave, and then the source itself goes the same door
+ /// every other removal takes.
+ pub(crate) fn remove_source_and_clips(
+ &mut self,
+ path: &Path,
+ stream: usize,
+ cx: &mut Context
,
+ ) {
+ if self.exporting().is_some() {
+ return;
+ }
+ let Some(session) = self.session.as_mut() else {
+ self.notify_user("NO TIMELINE — open a file first".into());
+ return;
+ };
+ let Some(idx) = session
+ .sources()
+ .iter()
+ .position(|s| s.path == path && s.audio_stream == stream)
+ else {
+ return;
+ };
+ // One clip at a time, re-scanning after each: deleting a clip takes
+ // its group partners (a V1 picture and its A1 sound) with it, so a
+ // list of indices collected up front goes stale the moment the first
+ // one lands -- and a stale index deletes some other film's clip.
+ // Bounded by the count that was there when we started, so a
+ // `delete_clip` that ever answers false cannot spin here.
+ let count_of = |session: &engine::PlaybackSession| {
+ session
+ .lanes()
+ .into_iter()
+ .flat_map(|lane| session.lane_clips(lane))
+ .filter(|c| c.source == idx)
+ .count()
+ };
+ let started_with = count_of(session);
+ let mut budget = session
+ .lanes()
+ .into_iter()
+ .flat_map(|lane| session.lane_clips(lane))
+ .filter(|c| c.source == idx)
+ .count();
+ while budget > 0 {
+ let Some((lane, at)) = session.lanes().into_iter().find_map(|lane| {
+ session
+ .lane_clips(lane)
+ .iter()
+ .position(|c| c.source == idx)
+ .map(|at| (lane, at))
+ }) else {
+ break;
+ };
+ if !session.delete_clip(lane, at) {
+ break;
+ }
+ budget -= 1;
+ }
+ // What actually left the bench, not how many calls it took: one
+ // `delete_clip` on a grouped clip takes its partner with it.
+ let deleted = started_with.saturating_sub(count_of(session));
+ self.reset_after_reseek();
+ self.remove_source(path, stream, cx);
+ // `remove_source` already wrote its own line; this one says what went
+ // with it, which is the half that line cannot know about.
+ if deleted > 0 {
+ self.notify_user(
+ format!(
+ "{deleted} clip{} deleted with {}",
+ if deleted == 1 { "" } else { "s" },
+ file_name(path)
+ )
+ .into(),
+ );
+ }
+ cx.notify();
+ }
+
/// Back to the window the editor launches as: no timeline, no library, no
/// picture -- and the hint that says to open a file. What removing the last
/// library row leaves, since a session whose library is empty has nothing
diff --git a/crates/app/src/player/view.rs b/crates/app/src/player/view.rs
index b87f864..b070fb4 100644
--- a/crates/app/src/player/view.rs
+++ b/crates/app/src/player/view.rs
@@ -405,10 +405,12 @@ impl Player {
let anchor = px_along(event.position.x, self.ruler.get());
self.zoom(factor, Some(anchor), cx);
}
- // Up runs forward along the film. A page's wheel-up goes back
- // toward its top, but a timeline is not a page: the wheel pushes
- // the film past the playhead, so up is later. (User, 2026-08-21.)
- false => self.scroll_view(d.signum(), cx),
+ // Up is back towards the head of the timeline, the way a wheel up
+ // is back towards the top of a page -- and wheel DOWN runs the
+ // film forward. Flipped to "up is later" earlier on 2026-08-21 and
+ // reverted the same day: the user drove it and wanted the page
+ // reading back.
+ false => self.scroll_view(-d.signum(), cx),
}
}
}
diff --git a/crates/app/src/tests/editing.rs b/crates/app/src/tests/editing.rs
index e11801c..f8cc08d 100644
--- a/crates/app/src/tests/editing.rs
+++ b/crates/app/src/tests/editing.rs
@@ -1082,6 +1082,22 @@ fn a_menu_offers_only_what_applies_and_is_drawn_inside_the_window() {
"a file that cannot join this timeline is not an Add anybody can ask for"
);
assert!(!row_enable(RowItem::Remove, RowCtx { placed: 1, ..live }).yes());
+ // The two removes are one verb with two shapes and exactly one of them is
+ // ever on the plate: a placed source offers "with its clips", an unplaced
+ // one the plain remove. Before this pair existed a placed source had no
+ // reachable way out of the library at all (user 2026-08-21: "can not
+ // remove a media from library").
+ let placed = RowCtx { placed: 2, ..live };
+ let items = row_items(placed);
+ assert!(items.contains(&RowItem::RemoveWithClips) && !items.contains(&RowItem::Remove));
+ assert!(row_enable(RowItem::RemoveWithClips, placed).yes());
+ let unplaced = row_items(live);
+ assert!(unplaced.contains(&RowItem::Remove) && !unplaced.contains(&RowItem::RemoveWithClips));
+ assert!(!row_enable(
+ RowItem::RemoveWithClips,
+ RowCtx { exporting: true, ..placed }
+ )
+ .yes());
assert!(!row_enable(RowItem::Add, RowCtx::default()).yes());
// Every refusal is short enough to sit in the hint column beside its
// label, the clip menu's rule.
diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs
index 85e2e3d..5a7737e 100644
--- a/crates/app/src/tests/layout.rs
+++ b/crates/app/src/tests/layout.rs
@@ -44,6 +44,54 @@ fn toolbar_fits_the_smallest_window() {
);
}
+/// The class the user reported twice in one day ("some menus are belongs to
+/// old ui ... for example resolution picker", then "right click menu in
+/// library is old too"): a surface that paints a *role* token
+/// (`BG_HOVER`/`BG_SELECTED`/`BG_RAISED`) rather than a Darkroom token used
+/// to get the legacy tree's pale greys, because the Darkroom palette still
+/// carried them. Dozens of call sites read those three roles; the fix is the
+/// palette, and this pins it: every interaction grey in the Darkroom palette
+/// stays inside DESIGN §2's `raised` band (#14171B - #17191D), with only the
+/// picked-row fill allowed one step past it, and each stays distinguishable
+/// from the one below it so a hover is still visible on a resting row.
+#[test]
+fn the_darkroom_palettes_interaction_greys_stay_inside_the_raised_band() {
+ use crate::ui::theme::darkroom;
+ let grey = |v: u32| (v >> 16 & 0xff, v >> 8 & 0xff, v & 0xff);
+ let lum = |v: u32| {
+ let (r, g, b) = grey(v);
+ u32::from(r) + u32::from(g) + u32::from(b)
+ };
+ let band_low = lum(0x14171b);
+ let band_high = lum(0x17191d);
+ for (name, value) in [
+ ("BG_RAISED", darkroom::BG_RAISED),
+ ("BG_HOVER", darkroom::BG_HOVER),
+ ] {
+ assert!(
+ (band_low..=band_high).contains(&lum(value)),
+ "darkroom::{name} = {value:#08x} is outside DESIGN §2's raised band \
+ -- every menu, card and row that paints this role would open a \
+ pale plate in a dim room"
+ );
+ }
+ assert!(
+ lum(darkroom::BG_SELECTED) > lum(darkroom::BG_HOVER)
+ && lum(darkroom::BG_SELECTED) <= lum(0x1c1f24),
+ "the picked-row fill is one step past hover at most; the real mark is \
+ the 1px ink1 ring (DESIGN §4)"
+ );
+ assert!(
+ lum(darkroom::BG_HOVER) > lum(darkroom::BG_RAISED),
+ "hover must be a step ABOVE the resting raised fill or a hovered row \
+ cannot be seen at all"
+ );
+ assert!(
+ lum(darkroom::BG_HOVER_DIM) < lum(darkroom::BG_RAISED),
+ "the dim hover is the step below, not above"
+ );
+}
+
/// The whole reason `ui/theme.rs` exists: a colour written anywhere else is
/// a colour the next palette sweep will miss, which is exactly how 186 grey
/// calls survived every previous attempt at this.
@@ -2222,13 +2270,25 @@ fn settings_project_and_editor_sections_open_disjoint_doors() {
let project_body = &source[project_start..editor_start];
let editor_body = &source[editor_start..render_start];
+ // `Pick::Theme` is the one list that is nobody's project -- the palette
+ // lives in ~/.config/edith like the subtitle font beside it (see
+ // `menus.rs`'s own note on the variant), so its row is EDITOR's by the
+ // same rule every other row here follows. The scan below is on the door
+ // *string*, so the palette row is subtracted from the EDITOR body before
+ // the project-door check runs rather than the check being loosened for
+ // every picker.
+ let editor_no_theme = editor_body.replace("open_picker(Pick::Theme", "");
for door in ["open_picker(", "open_mix("] {
assert!(project_body.contains(door), "PROJECT section no longer opens {door} -- update this guard");
assert!(
- !editor_body.contains(door),
+ !editor_no_theme.contains(door),
"EDITOR section opens {door}, a project-file door -- that value belongs in PROJECT, not here"
);
}
+ assert!(
+ editor_body.contains("open_picker(Pick::Theme"),
+ "the palette row left EDITOR -- it is a ~/.config preference, not a project value"
+ );
for door in ["toggle_proxies(", "toggle_auto_proxies(", "open_subtitle_style("] {
assert!(editor_body.contains(door), "EDITOR section no longer opens {door} -- update this guard");
assert!(
diff --git a/crates/app/src/ui/cards.rs b/crates/app/src/ui/cards.rs
index 875d25e..2ba7bf4 100644
--- a/crates/app/src/ui/cards.rs
+++ b/crates/app/src/ui/cards.rs
@@ -335,10 +335,30 @@ impl Player {
// The small print of a picked row sits on the highlight, where the
// dim ink is only 3.3:1 -- the row it lands on lifts it (WCAG
// 1.4.3, and the fit test pins both numbers).
- let ink = match picked {
- true => ink_primary,
- false => ink_secondary,
+ // DESIGN §2's ink ladder, applied to a row rather than to a
+ // whole card (user 2026-08-21: the export card's "colors are not
+ // aligning a little so hard to read"). Two faults it fixes: the
+ // detail of a picked row was drawn BRIGHTER than the label it
+ // belongs to -- the loudest thing on the row was its small print
+ // -- and the resting rows' detail sat at `ink3` on `panel`, the
+ // metadata step, for text that is the row's actual content and
+ // has to be read at a glance. Label leads its row (`ink1`
+ // picked, `ink2` resting), detail follows one step behind
+ // (`ink2` picked, `ink2` resting -- never `ink3`, which stays
+ // for the key column and the summary's small print).
+ let ink = match (dark, picked) {
+ (true, true) => INK2(),
+ (true, false) => INK2(),
+ (false, true) => ink_primary,
+ (false, false) => ink_secondary,
};
+ let label_ink = match (dark, picked) {
+ (true, true) => INK1(),
+ (true, false) => INK2(),
+ (false, true) => ink_primary,
+ (false, false) => ink_secondary,
+ };
+ let key_ink = if dark { INK3() } else { ink_secondary };
live(row(id), enabled)
.when(picked, |d| d.bg(rgb(bg_selected)))
.child(
@@ -355,14 +375,22 @@ impl Player {
div()
.w(px(EXPORT_KEY_W))
.text_size(px(11.))
- .text_color(rgb(ink))
+ .text_color(rgb(key_ink))
.when_some(mono_style.clone(), |d, style| {
d.font(style.font).text_size(style.size)
})
.child(SharedString::from(key.to_string())),
)
.child(
+ // A fixed label column in the darkroom: the
+ // details are the long half and they wrap, so
+ // without one they start at a different x on
+ // every row and a wrapped line reads as if it
+ // began left of the label it belongs to.
div()
+ .when(dark, |d| {
+ d.w(px(92.)).flex_none().text_color(rgb(label_ink))
+ })
.when_some(label_style.clone(), |d, style| {
d.font(style.font).text_size(style.size)
})
@@ -866,13 +894,13 @@ impl Player {
// off the front pane with the rows they reshape -- so a shut
// pane advertises `s` instead of a pair of keys with nothing on
// screen for them to touch.
+ // Short enough to read at a glance in the plate's own head row:
+ // the long four-clause sentence was 11px `ink3` mono across the
+ // whole sheet and read as noise above the rows it was meant to
+ // explain (user 2026-08-21: "hard to read").
(None, None) => match self.export_advanced_open {
- true => "the keys are on the rows · enter exports · \
- a click away or esc closes · g/r change the layout"
- .into(),
- false => "the keys are on the rows · enter exports · \
- a click away or esc closes · s for Advanced"
- .into(),
+ true => "↵ exports · esc closes · g/r layout".into(),
+ false => "↵ exports · esc closes · s Advanced".into(),
},
};
if dark {
@@ -885,6 +913,33 @@ impl Player {
// paints nothing (`SCRIM()` is deliberately not applied here) --
// an invisible catcher changes zero picture pixels while a
// dimming one would still tint the screen it must never cover.
+ // The plate is the room's below-picture footprint, not a 340px
+ // corner card (user 2026-08-21: "export section is not aligning
+ // with our design"). Measured at 1280x720 the corner card's own
+ // max-height was ~9px taller than the footprint it had to fit
+ // in, so its scrolling row list collapsed to a single visible
+ // row: the presets, Advanced and every codec row under them were
+ // unreachable by pointer, and the long status sentence wrapped to
+ // three lines over the top of them. Two columns instead -- rows
+ // left, what-it-adds-up-to and the one bordered chip right --
+ // inside the same bench+ledger footprint every menu already
+ // hangs in, so the picture stays uncovered (§11 check 6) and the
+ // list gets the whole height rather than a fraction of it.
+ let floor = crate::ui::stance::below_picture_floor(
+ f32::from(viewport.height),
+ self.split_px(Split::Bench, viewport),
+ );
+ let summary = |text: SharedString, ink: u32| {
+ div()
+ .flex_none()
+ .px(px(6.))
+ .type_style(type_scale::mono(
+ type_scale::CHORD_METADATA_MAX_PX,
+ gpui::FontWeight::MEDIUM,
+ ))
+ .text_color(rgb(ink))
+ .child(text)
+ };
return Some(
div()
.id("export-click-catcher")
@@ -894,9 +949,14 @@ impl Player {
.left_0()
.right_0()
.flex()
- .items_end()
- .justify_end()
- .p(px(12.))
+ // Below the time band, not merely below the picture: the
+ // transport and the Export chip that opened this card are
+ // on that band, and a sheet drawn over them hides the
+ // control the editor just pressed. The bench and the
+ // ledger are what this plate is allowed to cover.
+ .pt(px(floor + crate::ui::stance::TIME_BAND_H + 6.))
+ .pb(px(6.))
+ .px(px(6.))
.on_mouse_down(
MouseButton::Left,
cx.listener(|this, _: &MouseDownEvent, _, cx| {
@@ -908,131 +968,149 @@ impl Player {
.child(
div()
.id("export-plate")
- .w(px(EXPORT_W.min(340.)))
- .max_h(px(4. * KEYS_ROW_H + rows_h + 90.))
+ .flex_1()
+ .min_w(px(0.))
.on_mouse_down(MouseButton::Left, swallow)
.flex()
.flex_col()
- .gap(px(2.))
+ .gap(px(4.))
.p(px(10.))
- .rounded(px(6.))
+ .rounded(px(4.))
.bg(rgb(DARK_PANEL()))
.border_1()
.border_color(rgba(DARK_SEAM()))
.child(
div()
.flex_none()
- .px(px(6.))
- .type_style(type_scale::head())
- .text_color(rgb(INK3()))
- .child("EXPORT"),
- )
- .child(
- div()
- .flex_none()
- .px(px(6.))
- .text_color(rgb(INK3()))
- .type_style(type_scale::mono(
- type_scale::CHORD_METADATA_MAX_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .child(status_line),
- )
- .child(
- div()
- .id("export-rows")
.flex()
- .flex_col()
- .gap(px(2.))
- .max_h(px(rows_h))
- .overflow_y_scroll()
- .children(list),
- )
- .child(
- div()
- .flex_none()
- .px(px(6.))
- .type_style(type_scale::mono(
- type_scale::CHORD_METADATA_MAX_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .text_color(rgb(INK2()))
- .child(head),
- )
- .children(self.range.map(|(start, end)| {
- div()
- .flex_none()
- .px(px(6.))
- .type_style(type_scale::mono(
- type_scale::CHORD_METADATA_MAX_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .text_color(rgb(INK3()))
- .child(format!(
- "RANGE {}\u{2013}{} ({})",
- timecode(f64::from(start) / self.fps, self.fps),
- timecode(f64::from(end) / self.fps, self.fps),
- frames_timecode(end - start, self.fps),
- ))
- }))
- .child(
- div()
- .flex_none()
+ .items_baseline()
+ .justify_between()
+ .gap(px(12.))
.px(px(6.))
- .type_style(type_scale::mono(
- type_scale::CHORD_METADATA_MAX_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .text_color(rgb(INK3()))
- .child(tail),
+ .child(
+ div()
+ .type_style(type_scale::head())
+ .text_color(rgb(INK3()))
+ .child("EXPORT"),
+ )
+ .child(
+ div()
+ .min_w(px(0.))
+ .truncate()
+ .type_style(type_scale::mono(
+ type_scale::CHORD_METADATA_MAX_PX,
+ gpui::FontWeight::MEDIUM,
+ ))
+ .text_color(rgb(INK2()))
+ .child(status_line),
+ ),
)
- // §4: "the single bordered chip in the whole
- // room" -- ghosts everywhere else in this card,
- // one border here, wearing its chord live off
- // the keymap so a rebind cannot leave it stale.
.child(
div()
- .id("export-confirm")
- .mt(px(4.))
+ .flex_1()
+ .min_h(px(0.))
.flex()
- .items_center()
- .justify_center()
- .gap(px(6.))
- .h(px(CONTROL_H))
- .px(px(10.))
- .rounded(px(3.))
- .border_1()
- .border_color(rgb(match blocked.is_some() {
- true => INK4(),
- false => INK2(),
- }))
- .when(blocked.is_none(), |d| d.cursor_pointer())
- .when(blocked.is_some(), |d| d.cursor_not_allowed())
- .hover(|s| s.bg(rgb(DARK_RAISED())))
- .on_click(cx.listener(|this, _: &ClickEvent, _, cx| {
- this.start_export(cx)
- }))
- .type_style(type_scale::label(
- type_scale::LABEL_ROW_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .text_color(rgb(match blocked.is_some() {
- true => INK4(),
- false => INK1(),
- }))
- .child(action)
- .when(blocked.is_none(), |d| {
- d.child(
- div()
- .type_style(type_scale::mono(
- type_scale::CHORD_METADATA_MIN_PX,
- gpui::FontWeight::MEDIUM,
- ))
- .text_color(rgb(INK3()))
- .child(self.keymap.chord(ActionId::Export)),
- )
- }),
- ),
+ .gap(px(10.))
+ .child(
+ div()
+ .id("export-rows")
+ .flex_1()
+ .min_w(px(0.))
+ .h_full()
+ .flex()
+ .flex_col()
+ .gap(px(2.))
+ .overflow_y_scroll()
+ .children(list),
+ )
+ .child(
+ div()
+ .flex_none()
+ .w(px(300.))
+ .h_full()
+ .flex()
+ .flex_col()
+ .justify_end()
+ .gap(px(4.))
+ .border_l_1()
+ .border_color(rgb(DARK_HAIRLINE()))
+ .pl(px(8.))
+ .child(summary(head.into(), INK2()))
+ .children(self.range.map(|(start, end)| {
+ summary(
+ format!(
+ "RANGE {}\u{2013}{} ({})",
+ timecode(
+ f64::from(start) / self.fps,
+ self.fps
+ ),
+ timecode(f64::from(end) / self.fps, self.fps),
+ frames_timecode(end - start, self.fps),
+ )
+ .into(),
+ INK3(),
+ )
+ }))
+ .child(summary(tail.into(), INK3()))
+ // §4: "the single bordered chip in
+ // the whole room" -- ghosts
+ // everywhere else in this card, one
+ // border here, wearing its chord
+ // live off the keymap so a rebind
+ // cannot leave it stale.
+ .child(
+ div()
+ .id("export-confirm")
+ .mt(px(4.))
+ .flex()
+ .items_center()
+ .justify_center()
+ .gap(px(6.))
+ .h(px(CONTROL_H))
+ .px(px(10.))
+ .rounded(px(3.))
+ .border_1()
+ .border_color(rgb(match blocked.is_some() {
+ true => INK4(),
+ false => INK2(),
+ }))
+ .when(blocked.is_none(), |d| d.cursor_pointer())
+ .when(blocked.is_some(), |d| {
+ d.cursor_not_allowed()
+ })
+ .hover(|s| s.bg(rgb(DARK_RAISED())))
+ .on_click(cx.listener(
+ |this, _: &ClickEvent, _, cx| {
+ this.start_export(cx)
+ },
+ ))
+ .type_style(type_scale::label(
+ type_scale::LABEL_ROW_PX,
+ gpui::FontWeight::MEDIUM,
+ ))
+ .text_color(rgb(match blocked.is_some() {
+ true => INK4(),
+ false => INK1(),
+ }))
+ .child(action)
+ .when(blocked.is_none(), |d| {
+ d.child(
+ div()
+ .type_style(type_scale::mono(
+ type_scale::CHORD_METADATA_MIN_PX,
+ gpui::FontWeight::MEDIUM,
+ ))
+ .text_color(rgb(INK3()))
+ .child(
+ self.keymap
+ .chord(ActionId::Export),
+ ),
+ )
+ }),
+ ),
+ ),
+ )
+ .into_any_element(),
)
.into_any_element(),
);
diff --git a/crates/app/src/ui/dock_stance.rs b/crates/app/src/ui/dock_stance.rs
index d4bacc4..323ddee 100644
--- a/crates/app/src/ui/dock_stance.rs
+++ b/crates/app/src/ui/dock_stance.rs
@@ -260,6 +260,7 @@ fn source_row(
let (path, stream) = (row.path.clone(), row.stream);
let dragged = (path.clone(), stream);
let dot_path = path.clone();
+ let menu_path = path.clone();
let ghost = name.clone();
div()
.id(("dock-source", i))
@@ -283,6 +284,28 @@ fn source_row(
// line, so the general focus/selection ring applies, the same one
// the bench already uses for the same job.
.when(picked, |d| d.border_1().border_color(rgb(INK1())))
+ // Right-click ANYWHERE on the row opens the row's menu -- Add,
+ // Remove, Reveal, Properties (DESIGN §9: "verbs of the thing under
+ // the cursor"). It used to hang off the 8px ink dot alone, and only
+ // for a usable row, which is how the room shipped with no reachable
+ // way to take a source out of the library at all (user 2026-08-21:
+ // "can not remove a media from library") -- and the one row that
+ // most wants removing, a file the editor cannot use, was the one
+ // row whose menu was gated off. Unconditional now, dot included.
+ .on_mouse_down(
+ MouseButton::Right,
+ cx.listener(move |this, event: &MouseDownEvent, _, cx| {
+ cx.stop_propagation();
+ this.selected_asset = Some((menu_path.clone(), stream));
+ this.library_menu = Some(LibraryMenu {
+ path: menu_path.clone(),
+ stream,
+ at: event.position,
+ details: false,
+ });
+ cx.notify();
+ }),
+ )
.when(usable, |d| {
d.cursor_pointer()
.hover(|s| s.bg(rgb(DARK_RAISED())))
@@ -551,6 +574,23 @@ fn sources_tab(player: &Player, cx: &mut Context) -> impl IntoElement {
"imports the file named on the clipboard",
player,
cx.listener(|this, _: &ClickEvent, _, cx| this.paste_file_path(cx)),
+ ))
+ // Subtitles come in through the same door every other file
+ // does. This row is `↓S`'s new geographic home: the spine's
+ // TRACK group carried it as a two-glyph badge on a 56px rail
+ // that no longer had the height for it (user 2026-08-21:
+ // "the spine menu is too crowded"), and an import belongs
+ // beside the other two imports, not beside the lane verbs.
+ .child(ghost_verb(
+ "dock-import-subtitles",
+ "Import subtitles",
+ ActionId::ImportSubtitles,
+ false,
+ "reads an .srt/.ass file onto a subtitle lane",
+ player,
+ cx.listener(|this, _: &ClickEvent, window, cx| {
+ this.act(ActionId::ImportSubtitles, window, cx)
+ }),
)),
)
.child({
diff --git a/crates/app/src/ui/library.rs b/crates/app/src/ui/library.rs
index 9858e13..45717b6 100644
--- a/crates/app/src/ui/library.rs
+++ b/crates/app/src/ui/library.rs
@@ -657,6 +657,19 @@ impl Player {
// right-clicked is not a row, and one this moment refuses is drawn
// dimmed and says why in place of its hint.
for item in row_items(ctx) {
+ // DESIGN §9: destructive verbs sit below a rule line. One
+ // hairline, drawn once, above whichever of the two removes
+ // this row context offers.
+ if matches!(item, RowItem::Remove | RowItem::RemoveWithClips) && darkroom {
+ rows.push(
+ div()
+ .flex_none()
+ .my(px(3.))
+ .h(px(1.))
+ .bg(rgb(DARK_HAIRLINE()))
+ .into_any_element(),
+ );
+ }
let refusal = row_enable(item, ctx);
let enabled = refusal.yes();
rows.push(
@@ -711,17 +724,7 @@ impl Player {
}),
)
.child(
- div()
- .id("library-menu-card")
- .absolute()
- .left(px(x))
- .top(px(y))
- .w(px(MENU_W))
- .flex()
- .flex_col()
- .p(px(MENU_PAD))
- .rounded(px(6.))
- .bg(rgb(BG_RAISED()))
+ menu_plate("library-menu-card", x, y, darkroom)
// Painted after the scrim, so this listener runs first
// and a press meant for an item never closes the menu
// out from under its own click (`context_card`).
diff --git a/crates/app/src/ui/overlays.rs b/crates/app/src/ui/overlays.rs
index f793656..a9babff 100644
--- a/crates/app/src/ui/overlays.rs
+++ b/crates/app/src/ui/overlays.rs
@@ -617,11 +617,28 @@ impl Player {
// The one item that is not about this clip says so, and says it
// here rather than in the registry: the stroke is global too,
// but its row in the keys menu is not sitting on a clip.
+ // The registry's label is a sentence -- it has to be, the keys
+ // overlay reads the same string -- and a sentence in a 260px
+ // plate row is cut mid-word by the chord column beside it
+ // ("Ungroup the selection (clips anc", "Group the selection
+ // (ctrl-c"). DESIGN §7's rule for the bench applies to a menu
+ // too: labels never truncate into soup. The verb is the head
+ // of the sentence, up to its first parenthesis or em-dash;
+ // the tail is what the row's tooltip carries, so nothing is
+ // lost, it just stops being drawn over the chord.
+ let full = action.label();
+ let verb = full
+ .split_once(" (")
+ .map(|(head, _)| head)
+ .or_else(|| full.split_once(" — ").map(|(head, _)| head))
+ .or_else(|| full.split_once(": ").map(|(head, _)| head))
+ .unwrap_or(full);
let label = if matches!(action, ActionId::ToggleMute | ActionId::Paste) {
- format!("{} (global)", action.label())
+ format!("{verb} (global)")
} else {
- action.label().to_string()
+ verb.to_string()
};
+ let say: SharedString = full.to_string().into();
rows.push(
row(rows.len())
// Truncated and shrinkable: a long label ("Transform —
@@ -630,6 +647,7 @@ impl Player {
// of sharing the row with it, which is why Transform
// showed no stroke while a short label like Colour's
// did.
+ .tooltip(move |_, cx| cx.new(|_| Tip(say.clone())).into())
.child(div().min_w(px(0.)).flex_shrink().truncate().child(label))
.child(match refusal.why() {
// One truncated line, like the details side: a
@@ -737,19 +755,10 @@ impl Player {
}),
)
.child(
- div()
- // Only so the details side can carry a tooltip, which
- // gpui gives to identified elements alone.
- .id("menu-card")
- .absolute()
- .left(px(x))
- .top(px(y))
- .w(px(MENU_W))
- .flex()
- .flex_col()
- .p(px(MENU_PAD))
- .rounded(px(6.))
- .bg(rgb(BG_RAISED()))
+ // One plate shape for all three hanging menus
+ // ([`menu_plate`]) -- the id is still this menu's own, so
+ // the details side keeps its tooltip.
+ menu_plate("menu-card", x, y, darkroom)
// Painted after the scrim, so this listener runs first
// (gpui bubbles mouse events in reverse, window.rs:3705)
// and a press meant for an item never closes the menu
@@ -819,17 +828,36 @@ impl Player {
.text_color(rgb(INK2()))
})
.cursor_pointer()
- .hover(|s| s.bg(rgb(BG_HOVER())))
+ // DEFECT (user 2026-08-21: "some menus are belongs to old
+ // ui ... for example resolution picker"): the list painted
+ // the legacy sheet's greys (`BG_RAISED`/`BG_HOVER`/
+ // `BG_SELECTED`, `FG_*`) in the darkroom too, so a room
+ // whose every other plate is canvas-on-panel opened one
+ // pale rounded card. The darkroom pass below is the same
+ // plate grammar `context_card`/`library_card` already
+ // draw: one `raised` fill step for hover, `ink1` for the
+ // row in force, no second grey.
+ .hover(|s| s.bg(rgb(if darkroom { DARK_RAISED() } else { BG_HOVER() })))
// The mark is a glyph as well as a highlight, like the
// export card's rows: a background alone is gone under a
// hover and invisible to anyone who cannot tell the two
// greys apart (WCAG 1.4.1).
- .when(picked, |d| d.bg(rgb(BG_SELECTED())))
+ .when(picked, |d| {
+ d.bg(rgb(if darkroom {
+ DARK_RAISED()
+ } else {
+ BG_SELECTED()
+ }))
+ .when(darkroom, |d| d.text_color(rgb(INK1())))
+ })
// Where the keyboard is, said after the mark so the cursor
- // is visible on the picked row too -- and as a background,
- // not a border, because a row that grew a stroke would move
- // every row under it.
- .when(n == picker.sel, |d| d.bg(rgb(BG_HOVER())))
+ // is visible on the picked row too -- and as a border in
+ // the darkroom (DESIGN §4's 1px `ink1` focus ring) rather
+ // than a second grey nobody can tell from the first.
+ .when(n == picker.sel, |d| match darkroom {
+ true => d.border_1().border_color(rgb(INK1())),
+ false => d.bg(rgb(BG_HOVER())),
+ })
.child(
div()
.flex()
@@ -849,9 +877,11 @@ impl Player {
.text_size(px(11.))
// On the picked row the dim ink sits on the
// highlight, where it is only 3.3:1 (WCAG 1.4.3).
- .text_color(rgb(match picked {
- true => FG_PRIMARY(),
- false => FG_SECONDARY(),
+ .text_color(rgb(match (darkroom, picked) {
+ (true, true) => INK2(),
+ (true, false) => INK3(),
+ (false, true) => FG_PRIMARY(),
+ (false, false) => FG_SECONDARY(),
}))
.when(darkroom, |d| {
d.type_style(type_scale::mono(
@@ -893,17 +923,7 @@ impl Player {
}),
)
.child(
- div()
- .id("picker-card")
- .absolute()
- .left(px(x))
- .top(px(y))
- .w(px(MENU_W))
- .flex()
- .flex_col()
- .p(px(MENU_PAD))
- .rounded(px(6.))
- .bg(rgb(BG_RAISED()))
+ menu_plate("picker-card", x, y, darkroom)
// Painted after the scrim, so this listener runs first
// and a press meant for a row never closes the list out
// from under its own click (`context_card`).
diff --git a/crates/app/src/ui/settings_stance.rs b/crates/app/src/ui/settings_stance.rs
index 38ecdb1..72b805d 100644
--- a/crates/app/src/ui/settings_stance.rs
+++ b/crates/app/src/ui/settings_stance.rs
@@ -66,6 +66,34 @@ fn row(
row_ink(id, label_text, value, hint, player, on_click, INK1())
}
+/// [`row`] for a setting a chord also reaches: the stroke rides in the row's
+/// own right-hand side, ahead of the value, in the mono chord ink every other
+/// darkroom surface wears it in (DESIGN §4 -- "every command wears its chord,
+/// everywhere it appears"). Three settings arrived here from the spine when
+/// the rail ran out of height (proxies, auto-proxies, the palette); each one
+/// had its chord on the rail's badge, and none of them may lose it on the way
+/// over.
+fn row_keyed(
+ id: &'static str,
+ label_text: &'static str,
+ value: impl Into,
+ hint: &'static str,
+ action: ActionId,
+ player: &Player,
+ on_click: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
+) -> impl IntoElement {
+ row_full(
+ id,
+ label_text,
+ value,
+ hint,
+ Some(player.keymap.chord(action).into()),
+ player,
+ on_click,
+ INK1(),
+ )
+}
+
/// [`row`] with the value's ink chosen by the caller -- [`INK4`] for a value
/// that is not really a value yet (nothing to show until a project opens),
/// so it reads as absent rather than as a fifth real setting.
@@ -77,6 +105,24 @@ fn row_ink(
player: &Player,
on_click: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
value_ink: u32,
+) -> impl IntoElement {
+ row_full(id, label_text, value, hint, None, player, on_click, value_ink)
+}
+
+/// The one row body all three wrappers share. `chord` is the stroke that also
+/// reaches this setting, drawn in mono `ink3` *beside* the value rather than
+/// over it -- three settings came here off the spine and each one keeps the
+/// badge it wore there (DESIGN §4).
+#[allow(clippy::too_many_arguments)]
+fn row_full(
+ id: &'static str,
+ label_text: &'static str,
+ value: impl Into,
+ hint: &'static str,
+ chord: Option,
+ player: &Player,
+ on_click: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
+ value_ink: u32,
) -> impl IntoElement {
let value: SharedString = value.into();
let hint: SharedString = hint.into();
@@ -107,10 +153,27 @@ fn row_ink(
.child(
div()
.flex_none()
- .font(value_style.font)
- .text_size(value_style.size)
- .text_color(rgb(value_ink))
- .child(value),
+ .flex()
+ .items_baseline()
+ .gap(px(8.))
+ .children(chord.map(|chord| {
+ let chord_style = type_scale::mono(
+ type_scale::CHORD_METADATA_MIN_PX,
+ gpui::FontWeight::MEDIUM,
+ );
+ div()
+ .font(chord_style.font)
+ .text_size(chord_style.size)
+ .text_color(rgb(INK3()))
+ .child(chord)
+ }))
+ .child(
+ div()
+ .font(value_style.font)
+ .text_size(value_style.size)
+ .text_color(rgb(value_ink))
+ .child(value),
+ ),
)
}
@@ -286,7 +349,7 @@ fn editor_section(player: &Player, cx: &mut Context) -> impl IntoElement
.flex_col()
.gap(px(2.))
.child(section_head("EDITOR · this machine, this window"))
- .child(row(
+ .child(row_keyed(
"settings-proxies",
"Proxies",
match player.proxies_on {
@@ -294,17 +357,34 @@ fn editor_section(player: &Player, cx: &mut Context) -> impl IntoElement
false => "Off".to_string(),
},
"cuts on small stand-ins of the big films; the sound and every export stay the film's own -- default kept in ~/.config/edith, the pick for an open project in its own .edith",
+ ActionId::ToggleProxies,
player,
cx.listener(|this, _: &ClickEvent, _, cx| this.toggle_proxies(cx)),
))
- .child(row(
+ .child(row_keyed(
"settings-auto-proxies",
"Auto proxies",
if player.auto_proxies_on { "On" } else { "Off" },
"makes a stand-in for every big film as it is imported -- default kept in ~/.config/edith, the pick for an open project in its own .edith",
+ ActionId::ToggleAutoProxies,
player,
cx.listener(|this, _: &ClickEvent, _, cx| this.toggle_auto_proxies(cx)),
))
+ // The room's own palette, moved off the spine (user 2026-08-21: the
+ // rail was too crowded to fit its own rows) -- a preference kept in
+ // ~/.config/edith, so the EDITOR section is where it belongs; the
+ // same `Pick::Theme` list `ActionId::Theme` has always opened.
+ .child(row_keyed(
+ "settings-theme",
+ "Palette",
+ crate::ui::theme::active().label(),
+ "the room's own greys; the film's inks are extracted, never picked",
+ ActionId::Theme,
+ player,
+ cx.listener(|this, event: &ClickEvent, _, cx| {
+ this.open_picker(Pick::Theme, event.position(), cx)
+ }),
+ ))
.child(row(
"settings-subtitle-style",
"Subtitle font",
@@ -315,16 +395,38 @@ fn editor_section(player: &Player, cx: &mut Context) -> impl IntoElement
))
}
-/// The page itself: a modal card, the same drag-scrim-and-click-away shape
-/// every other card in this room takes ([`crate::ui::cards`]'s
-/// eq/color/transform/speed cards) -- closed by a click away or `esc`,
-/// through [`Player::close_card`], exactly like them.
-pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElement {
+/// The page itself: a plate in the room's own below-picture footprint,
+/// closed by a click away or `esc` through [`Player::close_card`] like every
+/// other card here.
+///
+/// It used to be a centred modal over a dimming scrim, which put the whole
+/// settings sheet -- and every picker opened off one of its rows -- straight
+/// over the picture: DESIGN §11 check 6's one hard occlusion rule, and half
+/// of the user's 2026-08-21 report about menus "not aligning with our
+/// design". Anchored to [`crate::ui::stance::below_picture_floor`] it sits
+/// over the bench and ledger exactly as the export plate and the menus
+/// already do, and the catcher behind it paints nothing rather than tinting
+/// the frame.
+pub(crate) fn render(
+ player: &Player,
+ window_size: Size,
+ cx: &mut Context,
+) -> impl IntoElement {
+ let floor = crate::ui::stance::below_picture_floor(
+ f32::from(window_size.height),
+ player.split_px(Split::Bench, window_size),
+ );
+ // Below the time band, not merely below the picture: the transport and
+ // the Export chip live on that band and a sheet over them hides controls
+ // the editor is still using. Bench + ledger is this page's footprint.
+ let top = floor + crate::ui::stance::TIME_BAND_H;
+ let room = f32::from(window_size.height) - top;
drag_scrim(cx)
.flex()
.justify_center()
- .items_center()
- .bg(rgba(SCRIM()))
+ .items_end()
+ .pt(px(top + 6.))
+ .pb(px(6.))
.on_mouse_down(
MouseButton::Left,
cx.listener(|this, _: &MouseDownEvent, _, cx| {
@@ -336,14 +438,18 @@ pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElem
.child(
div()
.id("settings-card")
+ // The whole footprint's width, two columns inside: at 720p a
+ // 420px single column put Mix, the palette and the subtitle
+ // font below a fold with no visible scrollbar -- settings an
+ // editor cannot see are settings only a chord reaches, which
+ // is the defect class this page exists to close.
.w_full()
- .max_w(px(360.))
- .max_h(relative(0.86))
+ .max_h(px((room - 12.).max(120.)))
.on_mouse_down(MouseButton::Left, swallow)
.flex()
.flex_col()
- .gap(px(8.))
- .p(px(12.))
+ .gap(px(6.))
+ .p(px(8.))
.rounded(px(6.))
.bg(rgb(DARK_PANEL()))
.border_1()
@@ -373,10 +479,22 @@ pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElem
.min_h(px(0.))
.overflow_y_scroll()
.flex()
- .flex_col()
- .gap(px(10.))
- .child(project_section(player, cx))
- .child(editor_section(player, cx)),
+ .gap(px(16.))
+ .child(
+ div()
+ .flex_1()
+ .min_w(px(0.))
+ .child(project_section(player, cx)),
+ )
+ .child(
+ div()
+ .flex_1()
+ .min_w(px(0.))
+ .border_l_1()
+ .border_color(rgb(DARK_HAIRLINE()))
+ .pl(px(12.))
+ .child(editor_section(player, cx)),
+ ),
),
)
}
diff --git a/crates/app/src/ui/spine_stance.rs b/crates/app/src/ui/spine_stance.rs
index 06cb66a..7a8d669 100644
--- a/crates/app/src/ui/spine_stance.rs
+++ b/crates/app/src/ui/spine_stance.rs
@@ -66,7 +66,7 @@ fn glyph(
.flex_col()
.items_center()
.gap(px(1.))
- .px(px(4.))
+ .px(px(3.))
.py(px(1.))
.rounded(px(3.))
.when(active, |d| d.bg(rgb(DARK_RAISED())))
@@ -158,7 +158,7 @@ fn trim_control(active: bool, player: &Player, cx: &mut Context) -> impl
.flex_col()
.items_center()
.gap(px(1.))
- .px(px(4.))
+ .px(px(3.))
.py(px(1.))
.rounded(px(3.))
.when(active, |d| d.bg(rgb(DARK_RAISED())))
@@ -189,9 +189,14 @@ fn pair(left: impl IntoElement, right: impl IntoElement) -> impl IntoElement {
div()
.flex_none()
.flex()
+ .w_full()
.items_center()
.justify_center()
- .gap(px(6.))
+ // 4px, not 6: two two-glyph halves plus their own padding used to
+ // measure wider than the 56px rail and bled past its left edge
+ // (measured at 1280x720: the `AP`/`FS` row started at x=0, outside
+ // the spine's own surface).
+ .gap(px(4.))
.child(left)
.child(right)
}
@@ -336,60 +341,46 @@ pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElem
cx,
))
.child(group_head("track"))
- .child(glyph(
- "spine-add-video",
- "+V",
- ActionId::AddVideoLane,
- false,
- false,
- player,
- cx,
- ))
- .child(glyph(
- "spine-add-audio",
- "+A",
- ActionId::AddAudioLane,
- false,
- false,
- player,
- cx,
- ))
- // The subtitle trio (homeless per this task's audit): AddSubtitleLane
- // joins +V/+A on the same "+letter" grammar per this task's own
- // instruction ("+S joins +V/+A in TRACK"); remove/import are "the
- // subtitle work" the instruction says to place them beside, so they
- // share the row underneath rather than each eating a full row (the
- // same space-saving `pair` the walk-cuts and zoom in/out already
- // use). ToggleSubtitles (whether the cues draw over the picture at
- // all) is the fourth subtitle-lane command with no home anywhere in
- // the darkroom -- filed here too, "CC" being the glyph every player
- // already uses for exactly this toggle, rather than in the quiet
- // ROOM cluster below: cue visibility is judged shot to shot, closer
- // in frequency to a view toggle used often than to a once-a-session
- // preference.
- .child(glyph(
- "spine-add-subtitle",
- "+S",
- ActionId::AddSubtitleLane,
- false,
- false,
- player,
- cx,
+ .child(pair(
+ glyph(
+ "spine-add-video",
+ "+V",
+ ActionId::AddVideoLane,
+ false,
+ false,
+ player,
+ cx,
+ ),
+ glyph(
+ "spine-add-audio",
+ "+A",
+ ActionId::AddAudioLane,
+ false,
+ false,
+ player,
+ cx,
+ ),
))
+ // The subtitle lane pair: add beside remove, one row, the same
+ // "+letter"/"−letter" grammar +V/+A above it already reads in. Import
+ // (`↓S`) left this rail entirely -- it is an import, so it lives in
+ // the dock's own IMPORT list beside "Add files" (`dock_stance`),
+ // where an editor already goes to bring a file into the room. That
+ // move is what takes this group from three crowded rows to two.
.child(pair(
glyph(
- "spine-remove-subtitle",
- "−S",
- ActionId::RemoveSubtitleLane,
+ "spine-add-subtitle",
+ "+S",
+ ActionId::AddSubtitleLane,
false,
false,
player,
cx,
),
glyph(
- "spine-import-subtitles",
- "↓S",
- ActionId::ImportSubtitles,
+ "spine-remove-subtitle",
+ "−S",
+ ActionId::RemoveSubtitleLane,
false,
false,
player,
@@ -405,45 +396,31 @@ pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElem
player,
cx,
))
- // ROOM: the once-a-session/once-a-project acts this task's charter
- // names explicitly (theme, proxies, screenshot, fullscreen) -- ink-
- // demoted (`quiet: true`) and paired two-to-a-row to keep the group
- // cheap, the same "rare acts live out of the way" pattern DESIGN §2
- // names for re-inking, applied here to the spine's own bottom
- // instead of a right-click menu (these four are toggled/fired by a
- // click, not by picking a source dot, so a context menu is not
- // their shape). Left off this list: Save, which sits beside Export
- // in the time band instead (see timeband_stance.rs) because the
- // ledger already gives the saved/unsaved state a home there, and
- // keymap.rs's own `Category::File` files Save beside Export and
- // Screenshot on the strength of what each one writes.
+ // ROOM, cut to the three acts that are *acts* rather than settings
+ // (user 2026-08-21: "the spine menu is too crowded and looks weird
+ // also not fitting" -- measured at 1280x720 the rail overflowed its
+ // own height and the settings glyph, the last row, could only be
+ // reached by scrolling the spine). Theme, proxies and auto-proxies
+ // were the three that are *preferences*, not verbs: they are rows on
+ // the settings page now (`settings_stance`), which is where an
+ // editor already goes to change what the room is rather than what
+ // the film is -- so nothing lost a visible home (DESIGN §9) and the
+ // rail lost three rows.
.child(group_head("room"))
.child(pair(
- glyph("spine-theme", "H", ActionId::Theme, false, true, player, cx),
glyph(
- "spine-proxies",
- "P",
- ActionId::ToggleProxies,
- player.proxies_on,
- true,
- player,
- cx,
- ),
- ))
- .child(pair(
- glyph(
- "spine-auto-proxies",
- "AP",
- ActionId::ToggleAutoProxies,
- player.auto_proxies_on,
+ "spine-settings",
+ "St",
+ ActionId::Settings,
+ player.settings_open,
true,
player,
cx,
),
glyph(
- "spine-fullscreen",
- "FS",
- ActionId::Fullscreen,
+ "spine-screenshot",
+ "Sh",
+ ActionId::Screenshot,
false,
true,
player,
@@ -451,27 +428,13 @@ pub(crate) fn render(player: &Player, cx: &mut Context) -> impl IntoElem
),
))
.child(glyph(
- "spine-screenshot",
- "Sh",
- ActionId::Screenshot,
+ "spine-fullscreen",
+ "FS",
+ ActionId::Fullscreen,
false,
true,
player,
cx,
))
- // The settings page's own visible door (user complaint: "some
- // options are only reachable via keyboard shortcut") -- a chord
- // alone is a defect class this room has hit repeatedly, so this
- // glyph sits beside the other once-a-session ROOM acts even though
- // its chord (`^,`) is a preference, not a mnemonic.
- .child(glyph(
- "spine-settings",
- "St",
- ActionId::Settings,
- player.settings_open,
- true,
- player,
- cx,
- ))
.child(div().flex_1())
}
diff --git a/crates/app/src/ui/stance.rs b/crates/app/src/ui/stance.rs
index c241a87..c4dd2f7 100644
--- a/crates/app/src/ui/stance.rs
+++ b/crates/app/src/ui/stance.rs
@@ -17,7 +17,7 @@ use crate::ui::type_scale::{self, Typeset};
use crate::*;
/// Left rail, full height (DESIGN §5).
-const SPINE_W: f32 = 56.;
+pub(crate) const SPINE_W: f32 = 56.;
/// Fixed strip under the screen: timecode, transport, cut readout, contact
/// strip, Export -- all placeholder at this step. Kept `pub(crate)` for
/// `layout::split_bounds`'s bench ceiling, the same one-door reason
@@ -301,7 +301,11 @@ fn ghost(player: &Player, glyph: &str, action: ActionId) -> impl IntoElement {
))
.text_color(rgb(INK2()))
.child(glyph.to_string())
- .child(
+ // The badge is skipped when the stroke IS the glyph: `?` over `?`
+ // drew as two identical rows stacked at the foot of the rail and read
+ // as a duplicated control rather than as one command wearing its own
+ // chord.
+ .children((player.keymap.chord(action) != glyph).then(|| {
div()
.type_style(type_scale::mono(
type_scale::CHORD_METADATA_MIN_PX,
@@ -310,8 +314,8 @@ fn ghost(player: &Player, glyph: &str, action: ActionId) -> impl IntoElement {
.text_color(rgb(INK3()))
// FAULT 1: the badge shows the primary chord, compact --
// same rule as every glyph in `spine_stance`.
- .child(player.keymap.chord(action)),
- )
+ .child(player.keymap.chord(action))
+ }))
}
/// The keys overlay (DESIGN §9, §12 step 7): every bound command, sectioned
@@ -975,7 +979,7 @@ pub(crate) fn render(
})
.when(player.keys_open, |el| el.child(keys_overlay(player)))
.when(player.settings_open, |el| {
- el.child(settings_stance::render(player, cx))
+ el.child(settings_stance::render(player, window_size, cx))
})
// The two menus (DESIGN §9: "verbs of the thing under the
// cursor", plate styling, the same scrim-and-row component
@@ -988,7 +992,6 @@ pub(crate) fn render(
// -- clip menu, then library menu, then the open list last so
// it floats over whichever row opened it.
.children(player.context_card(window_size, cx))
- .children(player.library_card(window_size, cx))
// The export card and its running-progress sheet, mounted
// over the whole room exactly as the legacy tree mounts them
// (`render.rs`) -- the fix for the shipped "Export does
@@ -1021,4 +1024,14 @@ pub(crate) fn render(
)
.child(divider(Split::Dock, cx))
.child(dock(player, dock_w, window_size, cx))
+ // The library row menu mounts on the ROOT, not inside
+ // `stance-centre` like the clip menu beside it: it is opened from a
+ // dock row, so its anchor is a window x past the centre column's own
+ // right edge, and the dock -- painted after the centre -- covered
+ // every pixel of it. That is the whole of the shipped "can not
+ // remove a media from library" defect: the plate was built, placed
+ // and never visible. Mounted here it paints last, over the dock it
+ // belongs to, and its own `menu_floor` window coordinates finally
+ // mean what they say.
+ .children(player.library_card(window_size, cx))
}
diff --git a/crates/app/src/ui/theme.rs b/crates/app/src/ui/theme.rs
index 544d5e6..4996121 100644
--- a/crates/app/src/ui/theme.rs
+++ b/crates/app/src/ui/theme.rs
@@ -1288,11 +1288,25 @@ pub mod darkroom {
// -- surfaces -----------------------------------------------------------
pub const BG_CANVAS: u32 = 0x050607;
pub const BG_PANEL: u32 = 0x0e1013;
- pub const BG_RAISED: u32 = 0x15181c;
+ // DESIGN §2's `raised` band (#14171B - #17191D) is the WHOLE interaction
+ // ladder in this room: a resting raised fill, one step up for hover, one
+ // more for a picked row -- selection's real mark is the 1px `ink1` ring
+ // (§4), never a pale flood.
+ //
+ // These four used to carry the legacy tree's greys (hover #2A2E33,
+ // selected #2E3237 -- two and three steps outside the band). Every
+ // surface that paints a *role* rather than a Darkroom token -- the clip
+ // menu, the library row menu, the keys overlay, the seven param cards --
+ // read them, so each one opened a pale plate in a dim room while the
+ // handful of surfaces written against `DARK_*`/`INK*` directly looked
+ // right. That is the whole "some menus belong to old ui" class, and it
+ // is fixed here, once, rather than by another per-call-site `if
+ // darkroom` branch: role tokens ARE the theme's job (§2's guard).
+ pub const BG_RAISED: u32 = 0x14171b;
pub const BG_TIMELINE: u32 = 0x08090b;
- pub const BG_HOVER: u32 = 0x2a2e33;
- pub const BG_HOVER_DIM: u32 = 0x1c1f24;
- pub const BG_SELECTED: u32 = 0x2e3237;
+ pub const BG_HOVER: u32 = 0x17191d;
+ pub const BG_HOVER_DIM: u32 = 0x121418;
+ pub const BG_SELECTED: u32 = 0x1c1f24;
pub const SCRIM: u32 = 0x050607cc;
pub const SCRIM_LIGHT: u32 = 0x05060755;