Skip to content

Avalonia GUI: Avalonia 12 and the Avalonia Cascadia Theme (v26.10.1) - #10

Merged
simonebortolin merged 10 commits into
masterfrom
ccr-e4eb2337-txfsf6
Nov 1, 2026
Merged

simonebortolin merged 10 commits into
masterfrom
ccr-e4eb2337-txfsf6

Conversation

@simonebortolin

@simonebortolin simonebortolin commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Moves the Avalonia GUI to Avalonia 12 and to the Avalonia Cascadia Theme, published as the CascadiaUI NuGet package.

Avalonia 12

  • Avalonia 11.3.9 → 12.1.4. MessageBox.Avalonia 3.1.6 → 12.1.0, which is also why 12.1.4 rather than 12.1.3. AvaloniaUI.DiagnosticsSupport replaces Avalonia.Diagnostics.
  • Ported the APIs 12 removed:
    • property-change Subscribe lambdas now use AddClassHandler / OnPropertyChanged;
    • the GlyphTypeface glyph lookup now uses CharacterToGlyphMap.TryGetGlyph and TryGetHorizontalGlyphAdvance;
    • DoDragDropAsync now takes the PointerPressedEventArgs that started the drag.

Theme and window

  • FluentTheme → CascadiaTheme with compact density. Avalonia.Themes.Fluent comes along as a dependency of the package.
  • The main window is a CascadiaWindow with Windows Terminal-style tabs in the title bar:
    • tabs close with × or middle-click and reorder by dragging;
    • + opens files;
    • the platform's own caption buttons are kept;
    • an empty-state hint shows until the first file opens;
    • the status bar is themed.
  • The hand-written tab drag & drop is gone; the tab strip handles it. Dragging a tab off the strip still moves it to another instance (TabDraggedOut → the existing DataTransfer flow).
  • A single File menu replaces File / Selection / Tools / Help, leaving the title bar to the tabs. It holds open, recent, close all, the save-report / save-cover actions, Settings, About and Exit. Hotkeys are unchanged.
  • The report sub-tabs (Simple / Standard / Complete / Tree) use the theme's macOS-style segmented pills.
  • README: new screenshots section (light and dark).

Version: 26.10.1

  • A patch release on MediaInfo 26.10, like v25.10.1; MediaInfoVersion stays 26.10.
  • Every 26.10.0 mention moves with it, so the monthly mediainfo-bump.yml still rewrites them all to the next YY.M.0. I ran the bump script's own sed / grep steps on a copy with MediaInfo 26.11: they give 26.11.0 everywhere and its checks pass.

CI: no workflow change in the end. The theme was briefly a submodule, which has been removed again in favour of the package.

Checked locally (Linux)

  • SharpMediaInfo.GUI.Avalonia builds for net10.0 and net10.0-windows against the published CascadiaUI 0.1.0, with 0 warnings.
  • SharpMediaInfo.GUI.Tests: 203/203 passing.
  • The main window renders headless in light and dark with real files open (the screenshots in the README).
  • Not checked here: the live title-bar caption buttons on Windows and macOS (the build jobs cover compilation).

🤖 Generated with Claude Code

https://claude.ai/code/session_01SyVio81R3uQYpGfqNcqLai

- Avalonia 11.3.9 -> 12.1.4 (MessageBox.Avalonia 12.1.0, AvaloniaUI.DiagnosticsSupport in
  place of Avalonia.Diagnostics); port the APIs 12 dropped (property-change Subscribe
  lambdas, GlyphTypeface glyph lookup, DoDragDropAsync's pressed-event argument).
- Replace FluentTheme with CascadiaTheme (compact density), pulled in as the
  extern/CascadiaUI submodule.
- Main window is now a CascadiaWindow with Windows Terminal-style tabs in the title bar:
  menu on the left, closable / reorderable tabs, + opens files, an empty-state hint, and a
  themed status bar. Dragging a tab off the strip still moves it to another instance.
- Report sub-tabs use the macOS-style segmented pills.
- CI fetches the CascadiaUI submodule where the GUI is built; the native cache key only
  tracks the native submodules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio81R3uQYpGfqNcqLai
…module

The theme is now published on nuget.org, so reference CascadiaUI 0.1.0 like any
other dependency (Renovate keeps it current) and drop the submodule and the CI
steps that fetched it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio81R3uQYpGfqNcqLai
The Avalonia GUI changes (Avalonia 12, Cascadia theme) ship as a patch release on
MediaInfo 26.10, like v25.10.1. Every 26.10.0 mention is moved along so the monthly
MediaInfo bump still rewrites them all to the next YY.M.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio81R3uQYpGfqNcqLai
File now holds everything that acts on files (open, recent, close all, the save-report
and save-cover actions) plus Settings and Exit; Help keeps About. Selection and Tools
are gone, leaving the title bar to the tabs. Hotkeys are unchanged. README screenshots
refreshed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio81R3uQYpGfqNcqLai

Copy link
Copy Markdown
Owner Author

Test (macOS arm64) failed on 8c774a7, but not because of this change. All tests passed: 203/203 for SharpMediaInfo.GUI.Tests, and the other three test projects ran too. Only the two network steps that follow failed on the runner:

  • actions/upload-artifact gave Failed to CreateArtifact: Unable to make request: ETIMEDOUT;
  • the trx report publishing gave Connect Timeout Error.

The same steps passed on the Linux and Windows test jobs of this run, and every build job is green. No code fix applies, so I re-ran the failed jobs once.


Generated by Claude Code

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Pre-release 26.10.1-pr.10.41 is ready: https://github.com/simonebortolin/SharpMediaInfo/releases/tag/pr-10-41-1

Windows, Linux and macOS desktop builds and NuGet packages of 2974585. Updated on every push, deleted when this PR is closed.

@simonebortolin
simonebortolin merged commit 2b7f9e0 into master Nov 1, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants