Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Remove FluentAvaloniaUI package and replace with native Avalonia controls#144

Draft
Copilot wants to merge 3 commits intodevfrom
copilot/remove-fluentavaloniaui-package
Draft

Remove FluentAvaloniaUI package and replace with native Avalonia controls#144
Copilot wants to merge 3 commits intodevfrom
copilot/remove-fluentavaloniaui-package

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

Replace all FluentAvaloniaUI usages with native Avalonia equivalents, removing the third-party dependency.

Changes

  • Theme: FluentAvaloniaTheme → native FluentTheme; added explicit Avalonia.Themes.Fluent package reference
  • FontIcon: Replaced ui:FontIcon with TextBlock in MainWindow.axaml and EditorControl.axaml.cs context menu (using Text property instead of Glyph)
  • ContentDialog: Rewrote ContentDialogHelper to delegate to the existing MessageBox wrapper (MessageBox.Avalonia) while preserving the ContentDialogChanged callback for caret timer control
  • SymbolThemeFontFamily: Defined as an app-level resource in App.axaml since it was previously provided by FluentAvaloniaUI
<!-- Before -->
<sty:FluentAvaloniaTheme PreferSystemTheme="True" PreferUserAccentColor="True" />
<ui:FontIcon FontFamily="{DynamicResource SymbolThemeFontFamily}" Glyph="&#xE711;" />

<!-- After -->
<FluentTheme />
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}" Text="&#xE711;" />

MenuFlyout, MenuItem, and Separator in the context menu required no changes — they resolve to native Avalonia.Controls types once the FluentAvalonia using directive is removed.

The Avalonia and Avalonia.Desktop package references in Editor.Desktop.csproj were downgraded from 12.0.0 to 11.3.13 to ensure compatibility with other dependencies.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants