ProfileImageSelectionDialog.axaml 1.9 KB

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