forge
Explore
Log in

Don't you dare go Hollow

🔥 remove(app): a region is a place — the bench stops ringing itself on focus

Browse files at this commit

a3016bdca1a83be9a2e12c48fa208e8fd55f2614Ahmet Kaan GümüşParent: 22a8a53
Clicking through the timeline painted a 1px ink1 ring around the whole
bench (user 2026-09-10). Focus routing is unchanged; the only ring left in
the bench is the selection one a picked clip draws.
DESIGN.mdmodified+1 -1
@@ -98,7 +98,7 @@ align.
98 the room.98 the room.
99 - Radii: 0 for lanes/clips/room chrome · 2px plates · 3px verbs/controls · 4–6px floating99 - Radii: 0 for lanes/clips/room chrome · 2px plates · 3px verbs/controls · 4–6px floating
100 (menus, sheets). No pills, no circles except source dots.100 (menus, sheets). No pills, no circles except source dots.
101-- Hover never adds hue. Focus/selection ring = 1px `ink1` (lamp-adjacent, not colored).101+- Hover never adds hue. Selection ring = 1px `ink1` on the selected thing (lamp-adjacent, not colored); regions never draw a focus ring (user 2026-09-10).
102 102
103 ## 5. The stance — layout103 ## 5. The stance — layout
104 104
crates/app/src/tests/layout.rsmodified+32 -0
@@ -3708,3 +3708,35 @@ fn a_hover_line_is_a_name_and_a_chord() {
3708 assert_eq!(tip_line("Add files", "--", None), "Add files");3708 assert_eq!(tip_line("Add files", "--", None), "Add files");
3709 assert_eq!(tip_line("Source", "", None), "Source");3709 assert_eq!(tip_line("Source", "", None), "Source");
3710 }3710 }
3711+
3712+/// A region is a place, not a control: none of the region roots paints a
3713+/// border because it holds focus (user 2026-09-10, "clicking through
3714+/// timeline draws a white overlay around the timeline"; DESIGN §4's ring
3715+/// line is about the *selected thing*). Focus routing itself is untouched.
3716+#[test]
3717+fn no_region_root_wears_a_focus_ring() {
3718+ let stance = src_text("ui/stance.rs");
3719+ let bench = src_text("ui/bench_stance.rs");
3720+ let band = src_text("ui/timeband_stance.rs");
3721+ for (name, text) in [
3722+ ("stance.rs", &stance),
3723+ ("bench_stance.rs", &bench),
3724+ ("timeband_stance.rs", &band),
3725+ ] {
3726+ for line in text.lines() {
3727+ let code = line.trim_start();
3728+ if code.starts_with("//") {
3729+ continue;
3730+ }
3731+ assert!(
3732+ !(code.contains("is_focused(") || code.contains("when(focused"))
3733+ || !code.contains("border"),
3734+ "{name} still paints a focus-conditional border: {code}"
3735+ );
3736+ assert!(
3737+ !code.contains("STROKE_FOCUS"),
3738+ "{name} paints the focus stroke on a region: {code}"
3739+ );
3740+ }
3741+ }
3742+}
crates/app/src/ui/stance.rsmodified+8 -10
@@ -16,8 +16,8 @@ use crate::ui::timeband_stance;
16 use crate::ui::type_scale::{self, Typeset};16 use crate::ui::type_scale::{self, Typeset};
17 use crate::*;17 use crate::*;
18 18
19-/// Keyboard focus v1: the three regions Tab/Shift-Tab cycle a painted ring19+/// Keyboard focus v1: the three regions Tab/Shift-Tab cycle focus through
20-/// through -- the bench, the dock's Sources tab (library) and the dock's20+/// (no ring is painted for it any more, user 2026-09-10) -- the bench, the dock's Sources tab (library) and the dock's
21 /// Clip tab (inspector), the darkroom's own stand-ins for "timeline",21 /// Clip tab (inspector), the darkroom's own stand-ins for "timeline",
22 /// "library" and "inspector" (there is no separate inspector *region* in22 /// "library" and "inspector" (there is no separate inspector *region* in
23 /// this tree -- MOCK-SPEC's Clip tab, `dock_stance::clip_tab`, is it).23 /// this tree -- MOCK-SPEC's Clip tab, `dock_stance::clip_tab`, is it).
@@ -675,10 +675,9 @@ fn time_band(player: &mut Player, position: f64, cx: &mut Context<Player>) -> im
675 fn bench(675 fn bench(
676 player: &mut Player,676 player: &mut Player,
677 bench_h: f32,677 bench_h: f32,
678- window: &mut Window,678+ _window: &mut Window,
679 cx: &mut Context<Player>,679 cx: &mut Context<Player>,
680 ) -> impl IntoElement {680 ) -> impl IntoElement {
681- let focused = player.focus_bench.is_focused(window);
682 div()681 div()
683 .id("stance-bench")682 .id("stance-bench")
684 .track_focus(&player.focus_bench)683 .track_focus(&player.focus_bench)
@@ -716,12 +715,11 @@ fn bench(
716 .bg(rgb(DARK_CANVAS()))715 .bg(rgb(DARK_CANVAS()))
717 .border_t_1()716 .border_t_1()
718 .border_color(rgba(DARK_SEAM()))717 .border_color(rgba(DARK_SEAM()))
719- // The ring (DESIGN §4's "1px, lamp-adjacent" convention -- the same718+ // No ring: a region is never outlined for holding focus (user
720- // `.border_1().border_color(...)` a picked bench clip already uses):719+ // 2026-09-10, "clicking through timeline draws a white overlay
721- // painted on this outer frame, never on a row, and only while this720+ // around the timeline"). Focus routing is untouched -- Tab/Shift-Tab
722- // surface itself -- not a picked clip inside it -- holds the focus721+ // still land here ([`next_surface`]) -- and the only ring left in
723- // ring Tab/Shift-Tab moves ([`next_surface`]).722+ // the bench is the selection one a picked clip draws (DESIGN §2/§4).
724- .when(focused, |d| d.border_1().border_color(rgb(STROKE_FOCUS())))
725 .flex()723 .flex()
726 .flex_col()724 .flex_col()
727 .px(px(12.))725 .px(px(12.))