From 259526430c1c84cfc78d522a98d823d6a129d3f8 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Tue, 7 Jan 2025 00:36:22 -0600 Subject: [PATCH] UI: Properly space language menu items instead of prepending a space to the language name --- src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs index 07d5fd03f..c50b073dd 100644 --- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs @@ -1,6 +1,6 @@ using Avalonia; using Avalonia.Controls; -using Avalonia.Interactivity; +using Avalonia.Layout; using Avalonia.Threading; using CommunityToolkit.Mvvm.Input; using Gommon; @@ -42,7 +42,7 @@ namespace Ryujinx.Ava.UI.Views.Main OpenSettingsMenuItem.Command = new AsyncRelayCommand(OpenSettings); PauseEmulationMenuItem.Command = new RelayCommand(() => ViewModel.AppHost?.Pause()); ResumeEmulationMenuItem.Command = new RelayCommand(() => ViewModel.AppHost?.Resume()); - StopEmulationMenuItem.Command = new AsyncRelayCommand(() => ViewModel.AppHost?.ShowExitPrompt().OrCompleted()!); + StopEmulationMenuItem.Command = new AsyncRelayCommand(() => ViewModel.AppHost?.ShowExitPrompt().OrCompleted()); CheatManagerMenuItem.Command = new AsyncRelayCommand(OpenCheatManagerForCurrentApp); InstallFileTypesMenuItem.Command = new AsyncRelayCommand(InstallFileTypes); UninstallFileTypesMenuItem.Command = new AsyncRelayCommand(UninstallFileTypes); @@ -104,8 +104,10 @@ namespace Ryujinx.Ava.UI.Views.Main MenuItem menuItem = new() { - Padding = new Thickness(10, 0, 0, 0), - Header = " " + languageName, + Padding = new Thickness(15, 0, 0, 0), + Margin = new Thickness(3, 0, 3, 0), + HorizontalAlignment = HorizontalAlignment.Stretch, + Header = languageName, Command = MiniCommand.Create(() => MainWindowViewModel.ChangeLanguage(language)) };