Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

feat: smooth expand/collapse — chevron rotation + lighter re-open reveal

3 months ago

a8a66be
Authored
xammen6/7/2026, 11:20:15 PM
The expand/collapse path closes and re-opens the flyout (existing state-machine
behavior). Re-running the full window "pop" there felt wrong, so:

- Animate the chevron 180° (single glyph + RotateTransform) instead of swapping
  glyphs, for a smooth flip.
- Tag the expand-triggered re-open (IsReopeningFromExpand) and, in that case,
  show the window without the scale pop (new BeginFlyoutInstantShow); the
  staggered row cascade carries the transition so it reads as the list
  unfolding rather than the whole window bouncing again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Parentfe1f63d

4 files changed
  • EarTrumpet/UI/Helpers/WindowAnimationLibrary.cs+18−0
  • EarTrumpet/UI/ViewModels/FlyoutViewModel.cs+6−0
  • EarTrumpet/UI/Views/FlyoutWindow.xaml+31−15
  • EarTrumpet/UI/Views/FlyoutWindow.xaml.cs+25−4