ProfileImageSelectionDialog.axaml 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d"
  6. xmlns:Locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. x:Class="Ryujinx.Ava.Ui.Controls.ProfileImageSelectionDialog">
  8. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5,10,5, 5">
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="Auto" />
  11. <RowDefinition Height="Auto" />
  12. <RowDefinition Height="70" />
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition Height="Auto" />
  15. </Grid.RowDefinitions>
  16. <TextBlock FontWeight="Bold" FontSize="18" HorizontalAlignment="Center" Grid.Row="1"
  17. Text="{Locale:Locale ProfileImageSelectionHeader}" />
  18. <TextBlock FontWeight="Bold" Grid.Row="2" Margin="10" MaxWidth="400" TextWrapping="Wrap"
  19. HorizontalAlignment="Center" TextAlignment="Center" Text="{Locale:Locale ProfileImageSelectionNote}" />
  20. <StackPanel Margin="5,0" Spacing="10" Grid.Row="4" HorizontalAlignment="Center"
  21. Orientation="Horizontal">
  22. <Button Name="Import" Click="Import_OnClick" Width="200">
  23. <TextBlock Text="{Locale:Locale ProfileImageSelectionImportImage}" />
  24. </Button>
  25. <Button Name="SelectFirmwareImage" IsEnabled="{Binding FirmwareFound}" Click="SelectFirmwareImage_OnClick"
  26. Width="200">
  27. <TextBlock Text="{Locale:Locale ProfileImageSelectionSelectAvatar}" />
  28. </Button>
  29. </StackPanel>
  30. </Grid>
  31. </UserControl>