From 8cfec5de4bde7087734beb2f7203f0d930e1b2d8 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Thu, 28 Jul 2022 19:16:23 +0200 Subject: [PATCH] Avalonia: Cleanup UserEditor a bit (#3492) This PR cleanup the UserEditor code a bit, 2 texts are added for "Name" and "User Id", because when you create a new profile, the textbox is empty without any hints. `axaml` files are autoformated too. --- Ryujinx.Ava/Assets/Locales/en_US.json | 4 +- Ryujinx.Ava/Ui/Controls/UserEditor.axaml | 106 ++++++++++++------ Ryujinx.Ava/Ui/Controls/UserEditor.axaml.cs | 4 +- Ryujinx.Ava/Ui/Controls/UserSelector.axaml | 78 ++++++++----- Ryujinx.Ava/Ui/Controls/UserSelector.axaml.cs | 10 +- .../Ui/ViewModels/UserProfileViewModel.cs | 14 +-- 6 files changed, 131 insertions(+), 85 deletions(-) diff --git a/Ryujinx.Ava/Assets/Locales/en_US.json b/Ryujinx.Ava/Assets/Locales/en_US.json index d9cbce9de..1188c6c6f 100644 --- a/Ryujinx.Ava/Assets/Locales/en_US.json +++ b/Ryujinx.Ava/Assets/Locales/en_US.json @@ -577,5 +577,7 @@ "UserProfileNoImageError": "Profile image must be set", "GameUpdateWindowHeading": "Updates Available for {0} [{1}]", "SettingsTabHotkeysResScaleUpHotkey": "Increase resolution:", - "SettingsTabHotkeysResScaleDownHotkey": "Decrease resolution:" + "SettingsTabHotkeysResScaleDownHotkey": "Decrease resolution:", + "UserProfilesName": "Name:", + "UserProfilesUserId" : "User Id:" } diff --git a/Ryujinx.Ava/Ui/Controls/UserEditor.axaml b/Ryujinx.Ava/Ui/Controls/UserEditor.axaml index fed5f8cb2..90c5c1fec 100644 --- a/Ryujinx.Ava/Ui/Controls/UserEditor.axaml +++ b/Ryujinx.Ava/Ui/Controls/UserEditor.axaml @@ -1,55 +1,87 @@ - + - - + + - - + + - + -