diff --git a/crates/app/src/export_ui.rs b/crates/app/src/export_ui.rs index 27d4f3a..6100e97 100644 --- a/crates/app/src/export_ui.rs +++ b/crates/app/src/export_ui.rs @@ -175,7 +175,7 @@ impl ExportPreset { ExportPreset::Small => "AV1 · MP4 · low quality — smallest file", ExportPreset::Master => "HEVC · MP4 · high quality — intra-only, for re-editing later", ExportPreset::AudioOnly => "FLAC — lossless sound, no picture", - ExportPreset::Custom => "pick a codec, quality and the rest below", + ExportPreset::Custom => "no fixed codec or quality", } } diff --git a/crates/app/src/importing.rs b/crates/app/src/importing.rs index 7ace767..b6ccbd2 100644 --- a/crates/app/src/importing.rs +++ b/crates/app/src/importing.rs @@ -38,11 +38,9 @@ impl LibraryTab { /// What an empty tab says instead of being a blank column. pub(crate) fn empty(self) -> &'static str { match self { - LibraryTab::Media => "No video or stills yet — Import, or drop a file on the window", - LibraryTab::Audio => "No sound yet — Import, or drop a file on the window", - LibraryTab::Text => { - "No subtitles yet — Add subtitles from a file, or drop an .srt on the window" - } + LibraryTab::Media => "No video", + LibraryTab::Audio => "No sound", + LibraryTab::Text => "No subtitles", } } } diff --git a/crates/app/src/subs.rs b/crates/app/src/subs.rs index 337f4dd..af0d5eb 100644 --- a/crates/app/src/subs.rs +++ b/crates/app/src/subs.rs @@ -347,9 +347,7 @@ pub(crate) fn subtitle_tail(session: &mut PlaybackSession, subs: Subs) -> Option /// put words there instead. pub(crate) fn subtitle_toggle_notice(on: bool, placed: usize) -> String { match (on, placed) { - (true, 0) => { - "SUBTITLES SHOWN — nothing placed yet: drag a track onto a subtitle track".to_string() - } + (true, 0) => "SUBTITLES SHOWN — nothing placed yet".to_string(), (true, n) => format!("SUBTITLES SHOWN — {n} caption(s) on the timeline"), (false, n) => format!("SUBTITLES HIDDEN — {n} caption(s) still placed"), } diff --git a/crates/app/src/tests/cards.rs b/crates/app/src/tests/cards.rs index 21a3b9f..63f9103 100644 --- a/crates/app/src/tests/cards.rs +++ b/crates/app/src/tests/cards.rs @@ -2076,7 +2076,7 @@ fn darkroom_source_rows_keep_proxy_add_and_media_audio_text_paths() { "LIBRARY_TABS.map", "dock-source-filter", "player.library_tab.holds(&row.path)", - "No subtitle sources yet — Import subtitles", + "true => player.library_tab.empty().to_string(),", ] { assert!( dock.contains(needle), diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs index 14a66a8..f8ef050 100644 --- a/crates/app/src/tests/layout.rs +++ b/crates/app/src/tests/layout.rs @@ -1195,10 +1195,15 @@ fn the_subtitles_toggle_says_what_is_placed_and_never_the_picked_row() { } // Off leaves them on the lanes; that is the half a person needs told. assert!(subtitle_toggle_notice(false, 2).contains("still placed")); - // An empty timeline says the move instead of a count that reads as broken. + // An empty timeline says the state, not a count that reads as broken -- + // and DESIGN §8 (2026-08-27) keeps this a state report, not a "drag it" + // instruction. let none = subtitle_toggle_notice(true, 0); assert!(!none.contains('0'), "{none} counts nothing at nothing"); - assert!(none.contains("drag"), "{none} says the next move"); + assert!( + none.contains("nothing placed"), + "{none} says the state, not the move" + ); } /// The door this editor answers "don't make me import the film again" with, @@ -1238,13 +1243,9 @@ fn the_text_tab_carries_the_add_subtitles_door() { dock[..at].ends_with("ghost_verb(\n "), "the add-subtitles button is not built from the oracle-gated ghost_verb" ); - // ...and the empty tab names that button, rather than pointing at a - // toolbar the person is not looking at. - assert!( - crate::LibraryTab::Text.empty().contains("Add subtitles"), - "{}", - crate::LibraryTab::Text.empty() - ); + // ...and the empty tab stays a noun, not a sentence pointing at the + // button (DESIGN §8, 2026-08-27: no instructional copy). + assert_eq!(crate::LibraryTab::Text.empty(), "No subtitles"); } /// The Darkroom keeps imported subtitle tracks in the Sources dock, where a diff --git a/crates/app/src/ui/dock_stance.rs b/crates/app/src/ui/dock_stance.rs index b982345..2e942b2 100644 --- a/crates/app/src/ui/dock_stance.rs +++ b/crates/app/src/ui/dock_stance.rs @@ -630,7 +630,7 @@ fn subtitle_palette(player: &Player, cx: &mut Context) -> Option "⌕ type to filter — name, codec, unused…".to_string(), + true => "⌕ filter".to_string(), false => format!("⌕ {filter_text}"), }) }) @@ -996,9 +996,6 @@ fn sources_tab( .text_size(style.size) .text_color(rgb(INK3())) .child(match player.dock_filter.is_empty() { - true if player.library_tab == LibraryTab::Text => { - "No subtitle sources yet — Import subtitles".to_string() - } true => player.library_tab.empty().to_string(), false => "nothing matches the filter".to_string(), }), @@ -1193,13 +1190,6 @@ fn clip_tab( // and a maximized card is mounted at `ui::stance::render` instead, never // through this `room`). let room = Size::new(px(width), window_size.height); - let none_open = player.eq_open.is_none() - && player.color_open.is_none() - && player.transform_open.is_none() - && player.speed_open.is_none() - && player.silence_open.is_none() - && !player.mix_open - && !player.subtitle_style_open; div() .id("dock-clip") .track_focus(&player.focus_inspector) @@ -1332,21 +1322,6 @@ fn clip_tab( // like the six cards beside it until the subtitle // lane grows the header that is its real home. .children(player.subtitle_style_card(room, cx)) - }) - // A plate, not bare space: DESIGN §11's "states" checklist -- - // nothing picked reads as a hint, not as a hole in the panel. - .when(none_open, |d| { - let style = label(type_scale::LABEL_ROW_PX, FontWeight::MEDIUM); - d.child( - div() - .rounded(px(2.)) - .bg(rgb(DARK_CANVAS())) - .p(px(8.)) - .font(style.font) - .text_size(style.size) - .text_color(rgb(INK3())) - .child("pick a verb above"), - ) }), ) } diff --git a/crates/app/src/ui/widgets.rs b/crates/app/src/ui/widgets.rs index 0ebea0b..4b336a5 100644 --- a/crates/app/src/ui/widgets.rs +++ b/crates/app/src/ui/widgets.rs @@ -409,9 +409,9 @@ impl NumberEdit { } } -/// What a window with no file open is waiting for. Both ways in are already -/// built -- the whole window is the drop target and the Import chooser takes a -/// project as readily as media -- so this only has to say so. +/// What a window with no file open shows: DESIGN §8 wants a noun, not a +/// sentence -- both ways in (window drop target, Import in the media list) +/// are taught by their own geography, not by this label. pub(crate) fn empty_hint() -> impl IntoElement { div() .flex() @@ -419,10 +419,5 @@ pub(crate) fn empty_hint() -> impl IntoElement { .items_center() .gap(px(6.)) .text_color(rgb(FG_SECONDARY())) - .child("Drop a video or an .edith project here") - .child( - div() - .text_size(px(11.)) - .child("or click Import in the media list"), - ) + .child("No project") }