Subtitle track rows read as the header's subset
Browse files at this commitab70ac1298b884a53b6cd98a9e93d7d6c53c4b35Parent: 75f3f17- style
- subtitle track rows read as the header's subset
2 changed files +29 -4
crates/app/src/tests/layout.rsmodified+4 -1
| @@ -1303,7 +1303,10 @@ fn a_subtitle_group_header_is_never_gated_on_window_height() { | |||
| 1303 | let head_at = dock | 1303 | let head_at = dock |
| 1304 | .find("\"dock-subtitle-group\"") | 1304 | .find("\"dock-subtitle-group\"") |
| 1305 | .expect("no id on the group header"); | 1305 | .expect("no id on the group header"); |
| 1306 | - let block = &dock[head_at..(head_at + 2700).min(dock.len())]; | 1306 | + // Wide enough to reach the count line past the header's styling and its |
| 1307 | + // commentary -- a window that stops short reads as the line deleted | ||
| 1308 | + // (the same fixed-window misfire the modal-guard scan had, 2026-08-27). | ||
| 1309 | + let block = &dock[head_at..(head_at + 3600).min(dock.len())]; | ||
| 1307 | assert!( | 1310 | assert!( |
| 1308 | block.contains("sub_folded.remove"), | 1311 | block.contains("sub_folded.remove"), |
| 1309 | "no fold-open path: {block}" | 1312 | "no fold-open path: {block}" |
crates/app/src/ui/dock_stance.rsmodified+25 -3
| @@ -699,7 +699,12 @@ fn subtitle_tab_rows(player: &Player, cx: &mut Context<Player>) -> (usize, Vec<A | |||
| 699 | .flex() | 699 | .flex() |
| 700 | .items_center() | 700 | .items_center() |
| 701 | .gap(px(6.)) | 701 | .gap(px(6.)) |
| 702 | - .px(px(8.)) | 702 | + // A track is the header's subset, and the row says |
| 703 | + // so the way an outline does: stepped in under the | ||
| 704 | + // header's own name (user 2026-08-27, "indentation | ||
| 705 | + // is needed for subset"). | ||
| 706 | + .pl(px(30.)) | ||
| 707 | + .pr(px(8.)) | ||
| 703 | .py(px(4.)) | 708 | .py(px(4.)) |
| 704 | .rounded(px(3.)) | 709 | .rounded(px(3.)) |
| 705 | .when(picked, |d| d.border_1().border_color(rgb(INK1()))) | 710 | .when(picked, |d| d.border_1().border_color(rgb(INK1()))) |
| @@ -749,7 +754,14 @@ fn subtitle_tab_rows(player: &Player, cx: &mut Context<Player>) -> (usize, Vec<A | |||
| 749 | .flex_1() | 754 | .flex_1() |
| 750 | .min_w(px(0.)) | 755 | .min_w(px(0.)) |
| 751 | .truncate() | 756 | .truncate() |
| 752 | - .type_style(mono(type_scale::LABEL_ROW_PX, FontWeight::MEDIUM)) | 757 | + // A step below the header's LABEL_ROW_PX -- |
| 758 | + // subset smaller than superset (user | ||
| 759 | + // 2026-08-27), same ink so it stays a name, | ||
| 760 | + // not a footnote. | ||
| 761 | + .type_style(mono( | ||
| 762 | + type_scale::CHORD_METADATA_MIN_PX, | ||
| 763 | + FontWeight::MEDIUM, | ||
| 764 | + )) | ||
| 753 | .text_color(rgb(INK1())) | 765 | .text_color(rgb(INK1())) |
| 754 | .child(title), | 766 | .child(title), |
| 755 | ) | 767 | ) |
| @@ -822,7 +834,17 @@ fn subtitle_tab_rows(player: &Player, cx: &mut Context<Player>) -> (usize, Vec<A | |||
| 822 | }, | 834 | }, |
| 823 | true, | 835 | true, |
| 824 | )) | 836 | )) |
| 825 | - .child(if folded { "▸" } else { "▾" }) | 837 | + // Bare, the glyph inherited the panel's dim ink and |
| 838 | + // vanished ("the little arrow on left side is hard | ||
| 839 | + // to see", user 2026-08-27) -- it reads at the same | ||
| 840 | + // ink as the name it folds. | ||
| 841 | + .child( | ||
| 842 | + div() | ||
| 843 | + .flex_none() | ||
| 844 | + .w(px(10.)) | ||
| 845 | + .text_color(rgb(INK1())) | ||
| 846 | + .child(if folded { "▸" } else { "▾" }), | ||
| 847 | + ) | ||
| 826 | .when_some(tint, |d, tint| { | 848 | .when_some(tint, |d, tint| { |
| 827 | d.child( | 849 | d.child( |
| 828 | div() | 850 | div() |