From 76671d63d4f3ea18f8ad99e9ce9f0b2ec9a2599d Mon Sep 17 00:00:00 2001 From: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> Date: Thu, 29 Dec 2022 14:24:05 +0000 Subject: [PATCH] Ava GUI: Restructure `Ryujinx.Ava` (#4165) * Restructure `Ryujinx.Ava` * Stylistic consistency * Update Ryujinx.Ava/UI/Controls/UserEditor.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Controls/UserEditor.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Controls/UserSelector.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Controls/SaveManager.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Controls/SaveManager.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Helpers/EmbeddedWindow.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Helpers/EmbeddedWindow.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Helpers/EmbeddedWindow.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Helpers/EmbeddedWindow.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/ViewModels/UserProfileViewModel.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/ViewModels/UserProfileViewModel.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Helpers/EmbeddedWindow.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Fix redundancies * Remove redunancies * Add back elses Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> --- Ryujinx.Ava/App.axaml | 2 +- Ryujinx.Ava/App.axaml.cs | 5 +- Ryujinx.Ava/AppHost.cs | 7 +- Ryujinx.Ava/Common/ApplicationHelper.cs | 5 +- Ryujinx.Ava/Common/Locale/LocaleManager.cs | 2 +- Ryujinx.Ava/Helper/MetalHelper.cs | 2 +- Ryujinx.Ava/Modules/Updater/Updater.cs | 5 +- Ryujinx.Ava/Program.cs | 2 +- .../{Ui => UI}/Applet/AvaHostUiHandler.cs | 7 +- .../Applet/AvaloniaDynamicTextInputHandler.cs | 7 +- .../{Ui => UI}/Applet/AvaloniaHostUiTheme.cs | 4 +- .../{Ui => UI}/Applet/ErrorAppletWindow.axaml | 3 +- .../Applet/ErrorAppletWindow.axaml.cs | 4 +- .../{Ui => UI}/Applet/SwkbdAppletDialog.axaml | 3 +- .../Applet/SwkbdAppletDialog.axaml.cs | 5 +- .../{Ui => UI}/Controls/GameGridView.axaml | 6 +- .../{Ui => UI}/Controls/GameGridView.axaml.cs | 5 +- .../{Ui => UI}/Controls/GameListView.axaml | 7 +- .../{Ui => UI}/Controls/GameListView.axaml.cs | 5 +- .../{Ui => UI}/Controls/InputDialog.axaml | 2 +- .../{Ui => UI}/Controls/InputDialog.axaml.cs | 5 +- .../UI/Controls/NavigationDialogHost.axaml | 16 ++ .../Controls/NavigationDialogHost.axaml.cs | 4 +- .../ProfileImageSelectionDialog.axaml | 57 ++++++ .../ProfileImageSelectionDialog.axaml.cs | 6 +- Ryujinx.Ava/UI/Controls/RendererHost.axaml | 11 ++ .../{Ui => UI}/Controls/RendererHost.axaml.cs | 3 +- Ryujinx.Ava/UI/Controls/SaveManager.axaml | 175 ++++++++++++++++++ .../{Ui => UI}/Controls/SaveManager.axaml.cs | 6 +- .../Controls/UpdateWaitWindow.axaml | 3 +- .../Controls/UpdateWaitWindow.axaml.cs | 4 +- .../{Ui => UI}/Controls/UserEditor.axaml | 23 +-- .../{Ui => UI}/Controls/UserEditor.axaml.cs | 7 +- .../{Ui => UI}/Controls/UserRecoverer.axaml | 33 ++-- .../Controls/UserRecoverer.axaml.cs | 6 +- .../{Ui => UI}/Controls/UserSelector.axaml | 21 +-- .../{Ui => UI}/Controls/UserSelector.axaml.cs | 6 +- .../Helpers}/ApplicationOpenedEventArgs.cs | 2 +- .../Helpers}/AvaloniaGlxContext.cs | 2 +- .../Helpers}/AvaloniaWglContext.cs | 2 +- .../Helpers}/BitmapArrayValueConverter.cs | 2 +- .../Helpers}/ButtonKeyAssigner.cs | 2 +- .../Helpers}/ContentDialogHelper.cs | 7 +- .../Controls => UI/Helpers}/EmbeddedWindow.cs | 8 +- Ryujinx.Ava/UI/Helpers/Glyph.cs | 9 + .../Helpers}/GlyphValueConverter.cs | 2 +- .../Controls => UI/Helpers}/HotKeyControl.cs | 2 +- .../Helpers}/IGlContextExtension.cs | 2 +- .../Helpers}/KeyValueConverter.cs | 2 +- .../Controls => UI/Helpers}/MiniCommand.cs | 2 +- .../Helpers}/OffscreenTextBox.cs | 2 +- .../Helpers}/OpenGLEmbeddedWindow.cs | 5 +- .../Helpers}/OpenToolkitBindingsContext.cs | 2 +- .../Helpers}/SPBOpenGLContext.cs | 2 +- .../Helpers}/UserErrorDialog.cs | 4 +- .../{Ui/Controls => UI/Helpers}/UserResult.cs | 2 +- .../Helpers}/VulkanEmbeddedWindow.cs | 3 +- .../Helpers}/Win32NativeInterop.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/Amiibo.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/CheatModel.cs | 4 +- Ryujinx.Ava/{Ui => UI}/Models/CheatsList.cs | 2 +- .../{Ui => UI}/Models/ControllerModel.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/DeviceType.cs | 2 +- .../Models/DownloadableContentModel.cs | 4 +- .../Models/Generic/LastPlayedSortComparer.cs | 2 +- .../{Ui => UI}/Models/InputConfiguration.cs | 4 +- Ryujinx.Ava/{Ui => UI}/Models/PlayerModel.cs | 2 +- .../{Ui => UI}/Models/ProfileImageModel.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/SaveModel.cs | 9 +- .../Models/StatusUpdatedEventArgs.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/TempProfile.cs | 4 +- Ryujinx.Ava/{Ui => UI}/Models/TimeZone.cs | 2 +- .../{Ui => UI}/Models/TitleUpdateModel.cs | 2 +- Ryujinx.Ava/{Ui => UI}/Models/UserProfile.cs | 6 +- .../ViewModels/AmiiboWindowViewModel.cs | 9 +- .../ViewModels/AvatarProfileViewModel.cs | 4 +- .../{Ui => UI}/ViewModels/BaseModel.cs | 2 +- .../ViewModels/ControllerSettingsViewModel.cs | 9 +- .../ViewModels/MainWindowViewModel.cs | 7 +- .../ViewModels/SettingsViewModel.cs | 16 +- .../ViewModels/UserProfileViewModel.cs | 16 +- .../{Ui => UI}/Windows/AboutWindow.axaml | 4 +- .../{Ui => UI}/Windows/AboutWindow.axaml.cs | 2 +- .../{Ui => UI}/Windows/AmiiboWindow.axaml | 35 ++-- .../{Ui => UI}/Windows/AmiiboWindow.axaml.cs | 6 +- .../{Ui => UI}/Windows/AvatarWindow.axaml | 37 ++-- .../{Ui => UI}/Windows/AvatarWindow.axaml.cs | 8 +- .../{Ui => UI}/Windows/CheatWindow.axaml | 6 +- .../{Ui => UI}/Windows/CheatWindow.axaml.cs | 4 +- .../Windows/ContentDialogOverlayWindow.axaml | 29 +++ .../ContentDialogOverlayWindow.axaml.cs | 2 +- .../Windows/ControllerSettingsWindow.axaml | 8 +- .../Windows/ControllerSettingsWindow.axaml.cs | 9 +- .../DownloadableContentManagerWindow.axaml | 4 +- .../DownloadableContentManagerWindow.axaml.cs | 7 +- .../{Ui => UI}/Windows/IconColorPicker.cs | 2 +- .../{Ui => UI}/Windows/MainWindow.axaml | 26 +-- .../{Ui => UI}/Windows/MainWindow.axaml.cs | 11 +- .../Windows/MotionSettingsWindow.axaml | 20 +- .../Windows/MotionSettingsWindow.axaml.cs | 6 +- .../Windows/RumbleSettingsWindow.axaml | 19 +- .../Windows/RumbleSettingsWindow.axaml.cs | 6 +- .../{Ui => UI}/Windows/SettingsWindow.axaml | 12 +- .../Windows/SettingsWindow.axaml.cs | 9 +- .../{Ui => UI}/Windows/StyleableWindow.cs | 2 +- .../Windows/TitleUpdateWindow.axaml | 4 +- .../Windows/TitleUpdateWindow.axaml.cs | 7 +- Ryujinx.Ava/Ui/Controls/Glyph.cs | 9 - .../Ui/Controls/NavigationDialogHost.axaml | 11 -- .../ProfileImageSelectionDialog.axaml | 32 ---- Ryujinx.Ava/Ui/Controls/RendererHost.axaml | 8 - Ryujinx.Ava/Ui/Controls/SaveManager.axaml | 103 ----------- .../Windows/ContentDialogOverlayWindow.axaml | 28 --- 113 files changed, 624 insertions(+), 506 deletions(-) rename Ryujinx.Ava/{Ui => UI}/Applet/AvaHostUiHandler.cs (98%) rename Ryujinx.Ava/{Ui => UI}/Applet/AvaloniaDynamicTextInputHandler.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Applet/AvaloniaHostUiTheme.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Applet/ErrorAppletWindow.axaml (93%) rename Ryujinx.Ava/{Ui => UI}/Applet/ErrorAppletWindow.axaml.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Applet/SwkbdAppletDialog.axaml (94%) rename Ryujinx.Ava/{Ui => UI}/Applet/SwkbdAppletDialog.axaml.cs (98%) rename Ryujinx.Ava/{Ui => UI}/Controls/GameGridView.axaml (98%) rename Ryujinx.Ava/{Ui => UI}/Controls/GameGridView.axaml.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Controls/GameListView.axaml (98%) rename Ryujinx.Ava/{Ui => UI}/Controls/GameListView.axaml.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Controls/InputDialog.axaml (95%) rename Ryujinx.Ava/{Ui => UI}/Controls/InputDialog.axaml.cs (94%) create mode 100644 Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml rename Ryujinx.Ava/{Ui => UI}/Controls/NavigationDialogHost.axaml.cs (97%) create mode 100644 Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml rename Ryujinx.Ava/{Ui => UI}/Controls/ProfileImageSelectionDialog.axaml.cs (97%) create mode 100644 Ryujinx.Ava/UI/Controls/RendererHost.axaml rename Ryujinx.Ava/{Ui => UI}/Controls/RendererHost.axaml.cs (98%) create mode 100644 Ryujinx.Ava/UI/Controls/SaveManager.axaml rename Ryujinx.Ava/{Ui => UI}/Controls/SaveManager.axaml.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Controls/UpdateWaitWindow.axaml (92%) rename Ryujinx.Ava/{Ui => UI}/Controls/UpdateWaitWindow.axaml.cs (87%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserEditor.axaml (76%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserEditor.axaml.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserRecoverer.axaml (70%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserRecoverer.axaml.cs (92%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserSelector.axaml (88%) rename Ryujinx.Ava/{Ui => UI}/Controls/UserSelector.axaml.cs (94%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/ApplicationOpenedEventArgs.cs (91%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/AvaloniaGlxContext.cs (91%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/AvaloniaWglContext.cs (91%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/BitmapArrayValueConverter.cs (96%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/ButtonKeyAssigner.cs (98%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/ContentDialogHelper.cs (99%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/EmbeddedWindow.cs (97%) create mode 100644 Ryujinx.Ava/UI/Helpers/Glyph.cs rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/GlyphValueConverter.cs (97%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/HotKeyControl.cs (98%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/IGlContextExtension.cs (94%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/KeyValueConverter.cs (97%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/MiniCommand.cs (98%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/OffscreenTextBox.cs (96%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/OpenGLEmbeddedWindow.cs (95%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/OpenToolkitBindingsContext.cs (92%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/SPBOpenGLContext.cs (97%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/UserErrorDialog.cs (98%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/UserResult.cs (78%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/VulkanEmbeddedWindow.cs (96%) rename Ryujinx.Ava/{Ui/Controls => UI/Helpers}/Win32NativeInterop.cs (99%) rename Ryujinx.Ava/{Ui => UI}/Models/Amiibo.cs (98%) rename Ryujinx.Ava/{Ui => UI}/Models/CheatModel.cs (92%) rename Ryujinx.Ava/{Ui => UI}/Models/CheatsList.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Models/ControllerModel.cs (78%) rename Ryujinx.Ava/{Ui => UI}/Models/DeviceType.cs (74%) rename Ryujinx.Ava/{Ui => UI}/Models/DownloadableContentModel.cs (91%) rename Ryujinx.Ava/{Ui => UI}/Models/Generic/LastPlayedSortComparer.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Models/InputConfiguration.cs (99%) rename Ryujinx.Ava/{Ui => UI}/Models/PlayerModel.cs (77%) rename Ryujinx.Ava/{Ui => UI}/Models/ProfileImageModel.cs (89%) rename Ryujinx.Ava/{Ui => UI}/Models/SaveModel.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Models/StatusUpdatedEventArgs.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Models/TempProfile.cs (94%) rename Ryujinx.Ava/{Ui => UI}/Models/TimeZone.cs (92%) rename Ryujinx.Ava/{Ui => UI}/Models/TitleUpdateModel.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Models/UserProfile.cs (94%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/AmiiboWindowViewModel.cs (98%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/AvatarProfileViewModel.cs (99%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/BaseModel.cs (91%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/ControllerSettingsViewModel.cs (99%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/MainWindowViewModel.cs (99%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/SettingsViewModel.cs (98%) rename Ryujinx.Ava/{Ui => UI}/ViewModels/UserProfileViewModel.cs (93%) rename Ryujinx.Ava/{Ui => UI}/Windows/AboutWindow.axaml (98%) rename Ryujinx.Ava/{Ui => UI}/Windows/AboutWindow.axaml.cs (98%) rename Ryujinx.Ava/{Ui => UI}/Windows/AmiiboWindow.axaml (75%) rename Ryujinx.Ava/{Ui => UI}/Windows/AmiiboWindow.axaml.cs (94%) rename Ryujinx.Ava/{Ui => UI}/Windows/AvatarWindow.axaml (65%) rename Ryujinx.Ava/{Ui => UI}/Windows/AvatarWindow.axaml.cs (93%) rename Ryujinx.Ava/{Ui => UI}/Windows/CheatWindow.axaml (96%) rename Ryujinx.Ava/{Ui => UI}/Windows/CheatWindow.axaml.cs (98%) create mode 100644 Ryujinx.Ava/UI/Windows/ContentDialogOverlayWindow.axaml rename Ryujinx.Ava/{Ui => UI}/Windows/ContentDialogOverlayWindow.axaml.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Windows/ControllerSettingsWindow.axaml (99%) rename Ryujinx.Ava/{Ui => UI}/Windows/ControllerSettingsWindow.axaml.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Windows/DownloadableContentManagerWindow.axaml (98%) rename Ryujinx.Ava/{Ui => UI}/Windows/DownloadableContentManagerWindow.axaml.cs (98%) rename Ryujinx.Ava/{Ui => UI}/Windows/IconColorPicker.cs (99%) rename Ryujinx.Ava/{Ui => UI}/Windows/MainWindow.axaml (97%) rename Ryujinx.Ava/{Ui => UI}/Windows/MainWindow.axaml.cs (99%) rename Ryujinx.Ava/{Ui => UI}/Windows/MotionSettingsWindow.axaml (91%) rename Ryujinx.Ava/{Ui => UI}/Windows/MotionSettingsWindow.axaml.cs (96%) rename Ryujinx.Ava/{Ui => UI}/Windows/RumbleSettingsWindow.axaml (75%) rename Ryujinx.Ava/{Ui => UI}/Windows/RumbleSettingsWindow.axaml.cs (95%) rename Ryujinx.Ava/{Ui => UI}/Windows/SettingsWindow.axaml (99%) rename Ryujinx.Ava/{Ui => UI}/Windows/SettingsWindow.axaml.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Windows/StyleableWindow.cs (97%) rename Ryujinx.Ava/{Ui => UI}/Windows/TitleUpdateWindow.axaml (97%) rename Ryujinx.Ava/{Ui => UI}/Windows/TitleUpdateWindow.axaml.cs (98%) delete mode 100644 Ryujinx.Ava/Ui/Controls/Glyph.cs delete mode 100644 Ryujinx.Ava/Ui/Controls/NavigationDialogHost.axaml delete mode 100644 Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml delete mode 100644 Ryujinx.Ava/Ui/Controls/RendererHost.axaml delete mode 100644 Ryujinx.Ava/Ui/Controls/SaveManager.axaml delete mode 100644 Ryujinx.Ava/Ui/Windows/ContentDialogOverlayWindow.axaml diff --git a/Ryujinx.Ava/App.axaml b/Ryujinx.Ava/App.axaml index eb9ffd865..72bc0deee 100644 --- a/Ryujinx.Ava/App.axaml +++ b/Ryujinx.Ava/App.axaml @@ -4,6 +4,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sty="using:FluentAvalonia.Styling"> - + \ No newline at end of file diff --git a/Ryujinx.Ava/App.axaml.cs b/Ryujinx.Ava/App.axaml.cs index 3c28c0191..e59f9bd39 100644 --- a/Ryujinx.Ava/App.axaml.cs +++ b/Ryujinx.Ava/App.axaml.cs @@ -5,8 +5,9 @@ using Avalonia.Styling; using Avalonia.Threading; using FluentAvalonia.Styling; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.Common; using Ryujinx.Common.Logging; using Ryujinx.Ui.Common.Configuration; diff --git a/Ryujinx.Ava/AppHost.cs b/Ryujinx.Ava/AppHost.cs index c1b3355a4..f8bd032cb 100644 --- a/Ryujinx.Ava/AppHost.cs +++ b/Ryujinx.Ava/AppHost.cs @@ -11,9 +11,10 @@ using Ryujinx.Audio.Integration; using Ryujinx.Ava.Common; using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.Input; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Models; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Models; +using Ryujinx.Ava.UI.Windows; using Ryujinx.Common; using Ryujinx.Common.Configuration; using Ryujinx.Common.Logging; diff --git a/Ryujinx.Ava/Common/ApplicationHelper.cs b/Ryujinx.Ava/Common/ApplicationHelper.cs index 7f7666142..0c562dfe0 100644 --- a/Ryujinx.Ava/Common/ApplicationHelper.cs +++ b/Ryujinx.Ava/Common/ApplicationHelper.cs @@ -12,8 +12,9 @@ using LibHac.Tools.Fs; using LibHac.Tools.FsSystem; using LibHac.Tools.FsSystem.NcaUtils; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.Common.Logging; using Ryujinx.HLE.FileSystem; using Ryujinx.HLE.HOS; diff --git a/Ryujinx.Ava/Common/Locale/LocaleManager.cs b/Ryujinx.Ava/Common/Locale/LocaleManager.cs index 41b981368..acbbf2dff 100644 --- a/Ryujinx.Ava/Common/Locale/LocaleManager.cs +++ b/Ryujinx.Ava/Common/Locale/LocaleManager.cs @@ -1,4 +1,4 @@ -using Ryujinx.Ava.Ui.ViewModels; +using Ryujinx.Ava.UI.ViewModels; using Ryujinx.Common; using Ryujinx.Common.Utilities; using Ryujinx.Ui.Common.Configuration; diff --git a/Ryujinx.Ava/Helper/MetalHelper.cs b/Ryujinx.Ava/Helper/MetalHelper.cs index 2d4d828b8..ea3477eb9 100644 --- a/Ryujinx.Ava/Helper/MetalHelper.cs +++ b/Ryujinx.Ava/Helper/MetalHelper.cs @@ -3,7 +3,7 @@ using System.Runtime.Versioning; using System.Runtime.InteropServices; using Avalonia; -namespace Ryujinx.Ava.Ui.Helper +namespace Ryujinx.Ava.UI.Helper { public delegate void UpdateBoundsCallbackDelegate(Rect rect); diff --git a/Ryujinx.Ava/Modules/Updater/Updater.cs b/Ryujinx.Ava/Modules/Updater/Updater.cs index b3a1ef30c..d495131f0 100644 --- a/Ryujinx.Ava/Modules/Updater/Updater.cs +++ b/Ryujinx.Ava/Modules/Updater/Updater.cs @@ -7,8 +7,9 @@ using ICSharpCode.SharpZipLib.Zip; using Newtonsoft.Json.Linq; using Ryujinx.Ava; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.Common; using Ryujinx.Common.Logging; using Ryujinx.Ui.Common.Helper; diff --git a/Ryujinx.Ava/Program.cs b/Ryujinx.Ava/Program.cs index 023e31df3..142d7820b 100644 --- a/Ryujinx.Ava/Program.cs +++ b/Ryujinx.Ava/Program.cs @@ -1,7 +1,7 @@ using ARMeilleure.Translation.PTC; using Avalonia; using Avalonia.Threading; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Windows; using Ryujinx.Common; using Ryujinx.Common.Configuration; using Ryujinx.Common.GraphicsDriver; diff --git a/Ryujinx.Ava/Ui/Applet/AvaHostUiHandler.cs b/Ryujinx.Ava/UI/Applet/AvaHostUiHandler.cs similarity index 98% rename from Ryujinx.Ava/Ui/Applet/AvaHostUiHandler.cs rename to Ryujinx.Ava/UI/Applet/AvaHostUiHandler.cs index a8d6a6dff..a8e76275c 100644 --- a/Ryujinx.Ava/Ui/Applet/AvaHostUiHandler.cs +++ b/Ryujinx.Ava/UI/Applet/AvaHostUiHandler.cs @@ -2,8 +2,9 @@ using Avalonia.Controls; using Avalonia.Threading; using FluentAvalonia.UI.Controls; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.HLE; using Ryujinx.HLE.HOS.Applets; using Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.ApplicationProxy.Types; @@ -11,7 +12,7 @@ using Ryujinx.HLE.Ui; using System; using System.Threading; -namespace Ryujinx.Ava.Ui.Applet +namespace Ryujinx.Ava.UI.Applet { internal class AvaHostUiHandler : IHostUiHandler { diff --git a/Ryujinx.Ava/Ui/Applet/AvaloniaDynamicTextInputHandler.cs b/Ryujinx.Ava/UI/Applet/AvaloniaDynamicTextInputHandler.cs similarity index 97% rename from Ryujinx.Ava/Ui/Applet/AvaloniaDynamicTextInputHandler.cs rename to Ryujinx.Ava/UI/Applet/AvaloniaDynamicTextInputHandler.cs index 78692ceda..314746e76 100644 --- a/Ryujinx.Ava/Ui/Applet/AvaloniaDynamicTextInputHandler.cs +++ b/Ryujinx.Ava/UI/Applet/AvaloniaDynamicTextInputHandler.cs @@ -3,15 +3,16 @@ using Avalonia.Controls; using Avalonia.Input; using Avalonia.Threading; using Ryujinx.Ava.Input; -using Ryujinx.Ava.Ui.Controls; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Controls; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.HLE.Ui; using System; using System.Threading; using HidKey = Ryujinx.Common.Configuration.Hid.Key; -namespace Ryujinx.Ava.Ui.Applet +namespace Ryujinx.Ava.UI.Applet { class AvaloniaDynamicTextInputHandler : IDynamicTextInputHandler { diff --git a/Ryujinx.Ava/Ui/Applet/AvaloniaHostUiTheme.cs b/Ryujinx.Ava/UI/Applet/AvaloniaHostUiTheme.cs similarity index 96% rename from Ryujinx.Ava/Ui/Applet/AvaloniaHostUiTheme.cs rename to Ryujinx.Ava/UI/Applet/AvaloniaHostUiTheme.cs index 8034b506e..fe5e27210 100644 --- a/Ryujinx.Ava/Ui/Applet/AvaloniaHostUiTheme.cs +++ b/Ryujinx.Ava/UI/Applet/AvaloniaHostUiTheme.cs @@ -1,9 +1,9 @@ using Avalonia.Media; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Windows; using Ryujinx.HLE.Ui; using System; -namespace Ryujinx.Ava.Ui.Applet +namespace Ryujinx.Ava.UI.Applet { class AvaloniaHostUiTheme : IHostUiTheme { diff --git a/Ryujinx.Ava/Ui/Applet/ErrorAppletWindow.axaml b/Ryujinx.Ava/UI/Applet/ErrorAppletWindow.axaml similarity index 93% rename from Ryujinx.Ava/Ui/Applet/ErrorAppletWindow.axaml rename to Ryujinx.Ava/UI/Applet/ErrorAppletWindow.axaml index aae66ccca..211b47254 100644 --- a/Ryujinx.Ava/Ui/Applet/ErrorAppletWindow.axaml +++ b/Ryujinx.Ava/UI/Applet/ErrorAppletWindow.axaml @@ -1,11 +1,10 @@ diff --git a/Ryujinx.Ava/Ui/Applet/SwkbdAppletDialog.axaml.cs b/Ryujinx.Ava/UI/Applet/SwkbdAppletDialog.axaml.cs similarity index 98% rename from Ryujinx.Ava/Ui/Applet/SwkbdAppletDialog.axaml.cs rename to Ryujinx.Ava/UI/Applet/SwkbdAppletDialog.axaml.cs index ee329bc29..80be29798 100644 --- a/Ryujinx.Ava/Ui/Applet/SwkbdAppletDialog.axaml.cs +++ b/Ryujinx.Ava/UI/Applet/SwkbdAppletDialog.axaml.cs @@ -6,12 +6,13 @@ using Avalonia.Media; using FluentAvalonia.Core; using FluentAvalonia.UI.Controls; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Helpers; +using Ryujinx.Ava.UI.Windows; using Ryujinx.HLE.HOS.Applets; using System; using System.Threading.Tasks; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { internal partial class SwkbdAppletDialog : UserControl { diff --git a/Ryujinx.Ava/Ui/Controls/GameGridView.axaml b/Ryujinx.Ava/UI/Controls/GameGridView.axaml similarity index 98% rename from Ryujinx.Ava/Ui/Controls/GameGridView.axaml rename to Ryujinx.Ava/UI/Controls/GameGridView.axaml index b0669463b..1c4d7638e 100644 --- a/Ryujinx.Ava/Ui/Controls/GameGridView.axaml +++ b/Ryujinx.Ava/UI/Controls/GameGridView.axaml @@ -1,19 +1,19 @@ - + - + + + \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Controls/NavigationDialogHost.axaml.cs b/Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml.cs similarity index 97% rename from Ryujinx.Ava/Ui/Controls/NavigationDialogHost.axaml.cs rename to Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml.cs index ced883286..98f9e9e3d 100644 --- a/Ryujinx.Ava/Ui/Controls/NavigationDialogHost.axaml.cs +++ b/Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml.cs @@ -3,13 +3,13 @@ using Avalonia.Controls; using FluentAvalonia.UI.Controls; using LibHac; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.ViewModels; +using Ryujinx.Ava.UI.ViewModels; using Ryujinx.HLE.FileSystem; using Ryujinx.HLE.HOS.Services.Account.Acc; using System; using System.Threading.Tasks; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { public partial class NavigationDialogHost : UserControl { diff --git a/Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml b/Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml new file mode 100644 index 000000000..56f8152ae --- /dev/null +++ b/Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml.cs b/Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml.cs similarity index 97% rename from Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml.cs rename to Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml.cs index 5d361af92..00183b698 100644 --- a/Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml.cs +++ b/Ryujinx.Ava/UI/Controls/ProfileImageSelectionDialog.axaml.cs @@ -4,15 +4,15 @@ using Avalonia.VisualTree; using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Navigation; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Models; -using Ryujinx.Ava.Ui.Windows; +using Ryujinx.Ava.UI.Models; +using Ryujinx.Ava.UI.Windows; using Ryujinx.HLE.FileSystem; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Processing; using System.IO; using Image = SixLabors.ImageSharp.Image; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { public partial class ProfileImageSelectionDialog : UserControl { diff --git a/Ryujinx.Ava/UI/Controls/RendererHost.axaml b/Ryujinx.Ava/UI/Controls/RendererHost.axaml new file mode 100644 index 000000000..1cc557f06 --- /dev/null +++ b/Ryujinx.Ava/UI/Controls/RendererHost.axaml @@ -0,0 +1,11 @@ + + diff --git a/Ryujinx.Ava/Ui/Controls/RendererHost.axaml.cs b/Ryujinx.Ava/UI/Controls/RendererHost.axaml.cs similarity index 98% rename from Ryujinx.Ava/Ui/Controls/RendererHost.axaml.cs rename to Ryujinx.Ava/UI/Controls/RendererHost.axaml.cs index b6986b7c8..97058fa49 100644 --- a/Ryujinx.Ava/Ui/Controls/RendererHost.axaml.cs +++ b/Ryujinx.Ava/UI/Controls/RendererHost.axaml.cs @@ -1,13 +1,14 @@ using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; +using Ryujinx.Ava.UI.Helpers; using Ryujinx.Common.Configuration; using Silk.NET.Vulkan; using SPB.Graphics.OpenGL; using SPB.Windowing; using System; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { public partial class RendererHost : UserControl, IDisposable { diff --git a/Ryujinx.Ava/UI/Controls/SaveManager.axaml b/Ryujinx.Ava/UI/Controls/SaveManager.axaml new file mode 100644 index 000000000..b0dc4c6f7 --- /dev/null +++ b/Ryujinx.Ava/UI/Controls/SaveManager.axaml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Controls/SaveManager.axaml.cs b/Ryujinx.Ava/UI/Controls/SaveManager.axaml.cs similarity index 97% rename from Ryujinx.Ava/Ui/Controls/SaveManager.axaml.cs rename to Ryujinx.Ava/UI/Controls/SaveManager.axaml.cs index 499cd918e..9910481c5 100644 --- a/Ryujinx.Ava/Ui/Controls/SaveManager.axaml.cs +++ b/Ryujinx.Ava/UI/Controls/SaveManager.axaml.cs @@ -7,16 +7,16 @@ using LibHac.Fs; using LibHac.Fs.Shim; using Ryujinx.Ava.Common; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Models; +using Ryujinx.Ava.UI.Models; using Ryujinx.HLE.FileSystem; using Ryujinx.Ui.App.Common; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; -using UserProfile = Ryujinx.Ava.Ui.Models.UserProfile; +using UserProfile = Ryujinx.Ava.UI.Models.UserProfile; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { public partial class SaveManager : UserControl { diff --git a/Ryujinx.Ava/Ui/Controls/UpdateWaitWindow.axaml b/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml similarity index 92% rename from Ryujinx.Ava/Ui/Controls/UpdateWaitWindow.axaml rename to Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml index 8309e3690..c5041230d 100644 --- a/Ryujinx.Ava/Ui/Controls/UpdateWaitWindow.axaml +++ b/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml @@ -1,10 +1,9 @@ - + @@ -43,13 +40,13 @@ Margin="5" HorizontalAlignment="Stretch" Click="ChangePictureButton_Click" - Content="{Locale:Locale UserProfilesChangeProfileImage}" /> + Content="{locale:Locale UserProfilesChangeProfileImage}" /> + Text="{locale:Locale UserProfilesRecoverHeading}"/> + Content="{locale:Locale Recover}"/> diff --git a/Ryujinx.Ava/Ui/Controls/UserRecoverer.axaml.cs b/Ryujinx.Ava/UI/Controls/UserRecoverer.axaml.cs similarity index 92% rename from Ryujinx.Ava/Ui/Controls/UserRecoverer.axaml.cs rename to Ryujinx.Ava/UI/Controls/UserRecoverer.axaml.cs index f093686dd..9f29fddbd 100644 --- a/Ryujinx.Ava/Ui/Controls/UserRecoverer.axaml.cs +++ b/Ryujinx.Ava/UI/Controls/UserRecoverer.axaml.cs @@ -4,10 +4,10 @@ using Avalonia.Interactivity; using Avalonia.Markup.Xaml; using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Navigation; -using Ryujinx.Ava.Ui.Models; -using Ryujinx.Ava.Ui.ViewModels; +using Ryujinx.Ava.UI.Models; +using Ryujinx.Ava.UI.ViewModels; -namespace Ryujinx.Ava.Ui.Controls +namespace Ryujinx.Ava.UI.Controls { public partial class UserRecoverer : UserControl { diff --git a/Ryujinx.Ava/Ui/Controls/UserSelector.axaml b/Ryujinx.Ava/UI/Controls/UserSelector.axaml similarity index 88% rename from Ryujinx.Ava/Ui/Controls/UserSelector.axaml rename to Ryujinx.Ava/UI/Controls/UserSelector.axaml index 7cfdc481d..002d27a06 100644 --- a/Ryujinx.Ava/Ui/Controls/UserSelector.axaml +++ b/Ryujinx.Ava/UI/Controls/UserSelector.axaml @@ -1,21 +1,20 @@ - + @@ -109,21 +108,21 @@ Grid.Column="0" Margin="2" Command="{Binding AddUser}" - Content="{Locale:Locale UserProfilesAddNewProfile}" /> + Content="{locale:Locale UserProfilesAddNewProfile}" /> + diff --git a/Ryujinx.Ava/Ui/Windows/MotionSettingsWindow.axaml.cs b/Ryujinx.Ava/UI/Windows/MotionSettingsWindow.axaml.cs similarity index 96% rename from Ryujinx.Ava/Ui/Windows/MotionSettingsWindow.axaml.cs rename to Ryujinx.Ava/UI/Windows/MotionSettingsWindow.axaml.cs index b47819841..215525fcf 100644 --- a/Ryujinx.Ava/Ui/Windows/MotionSettingsWindow.axaml.cs +++ b/Ryujinx.Ava/UI/Windows/MotionSettingsWindow.axaml.cs @@ -1,12 +1,12 @@ using Avalonia.Controls; using FluentAvalonia.UI.Controls; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Models; -using Ryujinx.Ava.Ui.ViewModels; +using Ryujinx.Ava.UI.Models; +using Ryujinx.Ava.UI.ViewModels; using Ryujinx.Common.Configuration.Hid.Controller; using System.Threading.Tasks; -namespace Ryujinx.Ava.Ui.Windows +namespace Ryujinx.Ava.UI.Windows { public partial class MotionSettingsWindow : UserControl { diff --git a/Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml b/Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml similarity index 75% rename from Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml rename to Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml index 120643aad..e47cc5bd1 100644 --- a/Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml +++ b/Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml @@ -1,13 +1,12 @@ - + diff --git a/Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml.cs b/Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml.cs similarity index 95% rename from Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml.cs rename to Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml.cs index afb5a33ac..f645ae359 100644 --- a/Ryujinx.Ava/Ui/Windows/RumbleSettingsWindow.axaml.cs +++ b/Ryujinx.Ava/UI/Windows/RumbleSettingsWindow.axaml.cs @@ -1,12 +1,12 @@ using Avalonia.Controls; using FluentAvalonia.UI.Controls; using Ryujinx.Ava.Common.Locale; -using Ryujinx.Ava.Ui.Models; -using Ryujinx.Ava.Ui.ViewModels; +using Ryujinx.Ava.UI.Models; +using Ryujinx.Ava.UI.ViewModels; using Ryujinx.Common.Configuration.Hid.Controller; using System.Threading.Tasks; -namespace Ryujinx.Ava.Ui.Windows +namespace Ryujinx.Ava.UI.Windows { public partial class RumbleSettingsWindow : UserControl { diff --git a/Ryujinx.Ava/Ui/Windows/SettingsWindow.axaml b/Ryujinx.Ava/UI/Windows/SettingsWindow.axaml similarity index 99% rename from Ryujinx.Ava/Ui/Windows/SettingsWindow.axaml rename to Ryujinx.Ava/UI/Windows/SettingsWindow.axaml index bd3dd613e..e25500828 100644 --- a/Ryujinx.Ava/Ui/Windows/SettingsWindow.axaml +++ b/Ryujinx.Ava/UI/Windows/SettingsWindow.axaml @@ -1,14 +1,14 @@ - + @@ -935,7 +935,7 @@ Tag="CpuPage"> + Glyph="{helpers:GlyphValueConverter Chip}" /> - - \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml b/Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml deleted file mode 100644 index 7bbd03ca2..000000000 --- a/Ryujinx.Ava/Ui/Controls/ProfileImageSelectionDialog.axaml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Controls/RendererHost.axaml b/Ryujinx.Ava/Ui/Controls/RendererHost.axaml deleted file mode 100644 index 45bc1b2b8..000000000 --- a/Ryujinx.Ava/Ui/Controls/RendererHost.axaml +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/Ryujinx.Ava/Ui/Controls/SaveManager.axaml b/Ryujinx.Ava/Ui/Controls/SaveManager.axaml deleted file mode 100644 index 8721d2a7b..000000000 --- a/Ryujinx.Ava/Ui/Controls/SaveManager.axaml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Ryujinx.Ava/Ui/Windows/ContentDialogOverlayWindow.axaml b/Ryujinx.Ava/Ui/Windows/ContentDialogOverlayWindow.axaml deleted file mode 100644 index 037b7af85..000000000 --- a/Ryujinx.Ava/Ui/Windows/ContentDialogOverlayWindow.axaml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - -