fix(ui): toasts render; RTL-aware icons, charts and media; keyboard and screen-reader support in the kit

- ToastHost gets its template (nothing drew before); toasts are announced, pause while hovered or focused,
  Esc dismisses the focused one, the action closes it, FocusNewest brings the keyboard to them.
- Windows take the UI language's direction when created and follow every switch.
- Icons mirror only when the glyph is directional (IconData.IsDirectional, Bidi.IsDirectional override);
  the brand mark never mirrors; icons centre in stretched slots (ComboBox chevron).
- Card photos, scrub position, preview surface and shot data, mono templates, paths are left-to-right islands;
  the preview tool row follows the layout direction.
- Chart words (categories, legends, summaries) read in the UI direction and legends start on its side.
- Automation peers: charts as named images, filmstrip as a slider, curve editor value, preview image,
  split button, AutoSlider group; localized names for caption, reset, remove, dismiss and drop-down buttons.
- Focus visible on list and table rows and the preview; curve editor fully operable by keyboard.
- Rail item collapsed layout fixed; job bar trims its text only once the bar is at its minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 17:22:42 +00:00
1 parent 6e01995f7e
commit 3f8464aabc
29 files changed
+711 -144

No files matched your search

+5
View File
@@ -123,6 +123,10 @@ I["Triangle"] = (None, "M8 3 L13.5 12.5 H2.5 Z")
I["TriangleRight"] = (None, "M5 3 L12 8 L5 13 Z")
I["Cross"] = ("M4.5 4.5 L11.5 11.5 M11.5 4.5 L4.5 11.5", None)
# Glyphs that point along the reading direction (arrows, chevrons, start-aligned text lines): mirrored in RTL.
# Everything else (clocks, media controls, the ▶ rendered status, symmetric shapes) never mirrors.
DIRECTIONAL = {"Back", "Forward", "ChevronLeft", "ChevronRight", "ExternalLink", "Jobs", "Logs", "ViewList"}
out = os.path.join(os.path.dirname(__file__), "..", "..", "src", "Titano.Ui", "Icons", "Icons.xaml")
with open(out, "w") as f:
f.write('<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"\n')
@@ -133,6 +137,7 @@ with open(out, "w") as f:
attrs = ''
if stroke: attrs += f' Stroke="{stroke}"'
if fill: attrs += f' Fill="{fill}"'
if name in DIRECTIONAL: attrs += ' IsDirectional="True"'
f.write(f' <ui:IconData x:Key="Icon.{name}"{attrs} />\n')
f.write('</ResourceDictionary>\n')