aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml
diff options
context:
space:
mode:
authorMary Guillemard <mary@mary.zone>2024-03-02 12:51:05 +0100
committerGitHub <noreply@github.com>2024-03-02 12:51:05 +0100
commitec6cb0abb4b7669895b6e96fd7581c93b5abd691 (patch)
tree128c862ff5faea0b219467656d4023bee7faefb5 /src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml
parent53b5985da6b9d7b281d9fc25b93bfd1d1918a107 (diff)
infra: Make Avalonia the default UI (#6375)
* misc: Move Ryujinx project to Ryujinx.Gtk3 This breaks release CI for now but that's fine. Signed-off-by: Mary Guillemard <mary@mary.zone> * misc: Move Ryujinx.Ava project to Ryujinx This breaks CI for now, but it's fine. Signed-off-by: Mary Guillemard <mary@mary.zone> * infra: Make Avalonia the default UI Should fix CI after the previous changes. GTK3 isn't build by the release job anymore, only by PR CI. This also ensure that the test-ava update package is still generated to allow update from the old testing channel. Signed-off-by: Mary Guillemard <mary@mary.zone> * Fix missing copy in create_app_bundle.sh Signed-off-by: Mary Guillemard <mary@mary.zone> * Fix syntax error Signed-off-by: Mary Guillemard <mary@mary.zone> --------- Signed-off-by: Mary Guillemard <mary@mary.zone>
Diffstat (limited to 'src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml')
-rw-r--r--src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml162
1 files changed, 0 insertions, 162 deletions
diff --git a/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml b/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml
deleted file mode 100644
index 3a9de303..00000000
--- a/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml
+++ /dev/null
@@ -1,162 +0,0 @@
-<UserControl
- x:Class="Ryujinx.Ava.UI.Views.User.UserSelectorViews"
- xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
- xmlns:models="clr-namespace:Ryujinx.Ava.UI.Models"
- xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
- xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
- d:DesignHeight="450"
- MinWidth="500"
- d:DesignWidth="800"
- mc:Ignorable="d"
- Focusable="True"
- x:DataType="viewModels:UserProfileViewModel">
- <UserControl.Resources>
- <helpers:BitmapArrayValueConverter x:Key="ByteImage" />
- </UserControl.Resources>
- <Design.DataContext>
- <viewModels:UserProfileViewModel />
- </Design.DataContext>
- <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Border
- CornerRadius="5"
- BorderBrush="{DynamicResource AppListHoverBackgroundColor}"
- BorderThickness="1">
- <ListBox
- MaxHeight="300"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- SelectionChanged="ProfilesList_SelectionChanged"
- Background="Transparent"
- ItemsSource="{Binding Profiles}">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.Styles>
- <Style Selector="ListBoxItem">
- <Setter Property="Margin" Value="5 5 0 5" />
- <Setter Property="CornerRadius" Value="5" />
- </Style>
- <Style Selector="Rectangle#SelectionIndicator">
- <Setter Property="Opacity" Value="0" />
- </Style>
- </ListBox.Styles>
- <ListBox.DataTemplates>
- <DataTemplate
- DataType="models:UserProfile">
- <Grid
- PointerEntered="Grid_PointerEntered"
- PointerExited="Grid_OnPointerExited">
- <Border
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- ClipToBounds="True"
- CornerRadius="5"
- Background="{Binding BackgroundColor}">
- <StackPanel
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch">
- <Image
- Width="96"
- Height="96"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Top"
- Source="{Binding Image, Converter={StaticResource ByteImage}}" />
- <TextBlock
- HorizontalAlignment="Stretch"
- MaxWidth="90"
- Text="{Binding Name}"
- TextAlignment="Center"
- TextWrapping="Wrap"
- TextTrimming="CharacterEllipsis"
- MaxLines="2"
- Margin="5" />
- </StackPanel>
- </Border>
- <Border
- Margin="2"
- Height="24"
- Width="24"
- CornerRadius="12"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="{DynamicResource ThemeContentBackgroundColor}"
- IsVisible="{Binding IsPointerOver}">
- <Button
- MaxHeight="24"
- MaxWidth="24"
- MinHeight="24"
- MinWidth="24"
- CornerRadius="12"
- Padding="0"
- Click="EditUser">
- <ui:SymbolIcon Symbol="Edit" />
- </Button>
- </Border>
- </Grid>
- </DataTemplate>
- <DataTemplate
- DataType="viewModels:BaseModel">
- <Panel
- Height="118"
- Width="96">
- <Button
- MinWidth="50"
- MinHeight="50"
- MaxWidth="50"
- MaxHeight="50"
- CornerRadius="25"
- Margin="10"
- Padding="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Click="AddUser">
- <ui:SymbolIcon Symbol="Add" />
- </Button>
- <Panel.Styles>
- <Style Selector="Panel">
- <Setter Property="Background" Value="{DynamicResource ListBoxBackground}"/>
- </Style>
- </Panel.Styles>
- </Panel>
- </DataTemplate>
- </ListBox.DataTemplates>
- </ListBox>
- </Border>
- <StackPanel
- Grid.Row="1"
- Margin="0 24 0 0"
- HorizontalAlignment="Left"
- Orientation="Horizontal"
- Spacing="10">
- <Button
- Click="ManageSaves"
- Content="{locale:Locale UserProfilesManageSaves}" />
- <Button
- Click="RecoverLostAccounts"
- Content="{locale:Locale UserProfilesRecoverLostAccounts}" />
- </StackPanel>
- <StackPanel
- Grid.Row="1"
- Margin="0 24 0 0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button
- Click="Close"
- Content="{locale:Locale UserProfilesClose}" />
- </StackPanel>
- </Grid>
-</UserControl>