UI: Update Avalonia to v12.1

- Avalonia to 12.1.1

- FluentAvalonia to 3.0.2

- Move DevTools Ctrl+F12 keybind to app initialization
This commit is contained in:
KeatonTheBot
2026-08-16 16:37:27 -05:00
parent 0e5fead0f9
commit 47e55acf21
66 changed files with 315 additions and 204 deletions
+10 -8
View File
@@ -125,17 +125,15 @@ namespace Ryujinx.Ava.UI.Windows
}
}
protected override void OnClosed(EventArgs e)
/* protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
if (PlatformSettings != null)
{
/// <summary>
/// Unsubscribe to the ColorValuesChanged event
/// </summary>
// Unsubscribe to the ColorValuesChanged event
PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
}
}
} */
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
{
@@ -309,7 +307,7 @@ namespace Ryujinx.Ava.UI.Windows
LocaleManager.Instance[LocaleKeys.LinuxVmMaxMapCountDialogButtonUntilRestart],
LocaleManager.Instance[LocaleKeys.LinuxVmMaxMapCountDialogButtonPersistent],
LocaleManager.Instance[LocaleKeys.InputDialogNo],
(int)Symbol.Help
(int)FASymbol.Help
);
int rc;
@@ -494,7 +492,11 @@ namespace Ryujinx.Ava.UI.Windows
_windowStartupWidthDelta = Math.Max(0, Width - ViewModel.WindowWidth);
_windowStartupHeightDelta = Math.Max(0, Height - ViewModel.WindowHeight);
PlatformSettings?.ColorValuesChanged += OnPlatformColorValuesChanged;
// Subscribe to the ColorValuesChanged event
/* if (PlatformSettings != null)
{
PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
} */
ViewModel.Initialize(
ContentManager,
@@ -744,7 +746,7 @@ namespace Ryujinx.Ava.UI.Windows
Dispatcher.UIThread.InvokeAsync(async () =>
{
await ContentDialogHelper.ShowTextDialog(LocaleManager.Instance[LocaleKeys.DialogConfirmationTitle],
msg, "", "", "", LocaleManager.Instance[LocaleKeys.InputDialogOk], (int)Symbol.Checkmark);
msg, "", "", "", LocaleManager.Instance[LocaleKeys.InputDialogOk], (int)FASymbol.Checkmark);
});
}
}