diff options
Diffstat (limited to 'Ryujinx.Ava/Ui/Controls/UserSelector.axaml')
-rw-r--r-- | Ryujinx.Ava/Ui/Controls/UserSelector.axaml | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/Ryujinx.Ava/Ui/Controls/UserSelector.axaml b/Ryujinx.Ava/Ui/Controls/UserSelector.axaml index c06bce23..bc6d8c09 100644 --- a/Ryujinx.Ava/Ui/Controls/UserSelector.axaml +++ b/Ryujinx.Ava/Ui/Controls/UserSelector.axaml @@ -10,6 +10,7 @@ xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia" xmlns:viewModels="clr-namespace:Ryujinx.Ava.Ui.ViewModels" d:DesignHeight="450" + MinWidth="500" d:DesignWidth="800" mc:Ignorable="d"> <UserControl.Resources> @@ -25,6 +26,7 @@ </Grid.RowDefinitions> <ListBox Margin="5" + MaxHeight="300" HorizontalAlignment="Stretch" VerticalAlignment="Center" DoubleTapped="ProfilesList_DoubleTapped" @@ -88,21 +90,56 @@ </DataTemplate> </ListBox.ItemTemplate> </ListBox> - <StackPanel + <Grid Grid.Row="1" - Margin="10,0" - HorizontalAlignment="Center" - Orientation="Horizontal" - Spacing="10"> - <Button Command="{Binding AddUser}" Content="{Locale:Locale UserProfilesAddNewProfile}" /> + HorizontalAlignment="Center"> + <Grid.RowDefinitions> + <RowDefinition Height="Auto"/> + <RowDefinition Height="Auto"/> + <RowDefinition Height="Auto"/> + </Grid.RowDefinitions> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto"/> + <ColumnDefinition Width="Auto"/> + </Grid.ColumnDefinitions> + <Button + HorizontalAlignment="Stretch" + Grid.Row="0" + Grid.Column="0" + Margin="2" + Command="{Binding AddUser}" + Content="{Locale:Locale UserProfilesAddNewProfile}" /> <Button + HorizontalAlignment="Stretch" + Grid.Row="0" + Margin="2" + Grid.Column="1" Command="{Binding EditUser}" Content="{Locale:Locale UserProfilesEditProfile}" IsEnabled="{Binding IsSelectedProfiledEditable}" /> + <Button + HorizontalAlignment="Stretch" + Grid.Row="1" + Grid.Column="0" + Margin="2" + Content="{Locale:Locale UserProfilesManageSaves}" + Command="{Binding ManageSaves}" /> <Button + HorizontalAlignment="Stretch" + Grid.Row="1" + Grid.Column="1" + Margin="2" Command="{Binding DeleteUser}" Content="{Locale:Locale UserProfilesDeleteSelectedProfile}" IsEnabled="{Binding IsSelectedProfileDeletable}" /> - </StackPanel> + <Button + HorizontalAlignment="Stretch" + Grid.Row="2" + Grid.ColumnSpan="2" + Grid.Column="0" + Margin="2" + Command="{Binding RecoverLostAccounts}" + Content="{Locale:Locale UserProfilesRecoverLostAccounts}" /> + </Grid> </Grid> </UserControl>
\ No newline at end of file |