ProfileImageSelectionDialog.axaml 1.8 KB

1234567891011121314151617181920212223242526272829303132
  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. Focusable="True">
  9. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5,10,5, 5">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto" />
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="70" />
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="Auto" />
  16. </Grid.RowDefinitions>
  17. <TextBlock FontWeight="Bold" FontSize="18" HorizontalAlignment="Center" Grid.Row="1"
  18. Text="{Locale:Locale ProfileImageSelectionHeader}" />
  19. <TextBlock FontWeight="Bold" Grid.Row="2" Margin="10" MaxWidth="400" TextWrapping="Wrap"
  20. HorizontalAlignment="Center" TextAlignment="Center" Text="{Locale:Locale ProfileImageSelectionNote}" />
  21. <StackPanel Margin="5,0" Spacing="10" Grid.Row="4" HorizontalAlignment="Center"
  22. Orientation="Horizontal">
  23. <Button Name="Import" Click="Import_OnClick" Width="200">
  24. <TextBlock Text="{Locale:Locale ProfileImageSelectionImportImage}" />
  25. </Button>
  26. <Button Name="SelectFirmwareImage" IsEnabled="{Binding FirmwareFound}" Click="SelectFirmwareImage_OnClick"
  27. Width="200">
  28. <TextBlock Text="{Locale:Locale ProfileImageSelectionSelectAvatar}" />
  29. </Button>
  30. </StackPanel>
  31. </Grid>
  32. </UserControl>