AboutWindow.axaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Windows.AboutWindow"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  9. xmlns:viewModel="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  10. Width="550"
  11. Height="260"
  12. Margin="0,-12,0,0"
  13. d:DesignHeight="260"
  14. d:DesignWidth="550"
  15. x:DataType="viewModel:AboutWindowViewModel"
  16. Focusable="True"
  17. mc:Ignorable="d">
  18. <Design.DataContext>
  19. <viewModel:AboutWindowViewModel />
  20. </Design.DataContext>
  21. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="Auto" />
  24. <ColumnDefinition Width="Auto" />
  25. <ColumnDefinition Width="*" />
  26. </Grid.ColumnDefinitions>
  27. <Grid
  28. Grid.Column="0"
  29. HorizontalAlignment="Stretch"
  30. VerticalAlignment="Stretch">
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="Auto" />
  33. <RowDefinition Height="*" />
  34. <RowDefinition Height="Auto" />
  35. </Grid.RowDefinitions>
  36. <StackPanel
  37. Grid.Row="0"
  38. HorizontalAlignment="Stretch"
  39. VerticalAlignment="Stretch"
  40. Spacing="10">
  41. <Grid>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="Auto" />
  44. <ColumnDefinition Width="*" />
  45. <ColumnDefinition Width="Auto" />
  46. </Grid.ColumnDefinitions>
  47. <StackPanel
  48. Grid.Column="1"
  49. Orientation="Horizontal"
  50. HorizontalAlignment="Center"
  51. Spacing="10">
  52. <Image
  53. Height="80"
  54. Source="resm:Ryujinx.UI.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.UI.Common"
  55. HorizontalAlignment="Center"
  56. IsHitTestVisible="True" />
  57. <WrapPanel
  58. HorizontalAlignment="Right"
  59. VerticalAlignment="Center"
  60. Orientation="Vertical">
  61. <TextBlock
  62. FontSize="28"
  63. FontWeight="Bold"
  64. Text="Ryujinx"
  65. TextAlignment="Start"
  66. Width="110"
  67. HorizontalAlignment="Center"
  68. VerticalAlignment="Center" />
  69. <TextBlock
  70. FontSize="11"
  71. Text="(REE-YOU-JINX)"
  72. TextAlignment="Start"
  73. Width="110"
  74. HorizontalAlignment="Center"
  75. VerticalAlignment="Center" />
  76. </WrapPanel>
  77. </StackPanel>
  78. </Grid>
  79. <TextBlock
  80. HorizontalAlignment="Center"
  81. VerticalAlignment="Center"
  82. FontSize="10"
  83. LineHeight="12"
  84. Text="{Binding Version}"
  85. TextAlignment="Center" />
  86. <Border
  87. Height="1"
  88. Margin="0,20, 0, 20"
  89. HorizontalAlignment="Stretch"
  90. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  91. BorderThickness="0,1,0,0" />
  92. </StackPanel>
  93. <StackPanel
  94. Grid.Row="2"
  95. HorizontalAlignment="Stretch"
  96. VerticalAlignment="Stretch"
  97. Spacing="10">
  98. <TextBlock
  99. Width="200"
  100. HorizontalAlignment="Center"
  101. FontSize="10"
  102. LineHeight="12"
  103. Text="{locale:Locale AboutDisclaimerMessage}"
  104. TextAlignment="Center"
  105. TextWrapping="Wrap" />
  106. <TextBlock
  107. Name="AmiiboLabel"
  108. Width="200"
  109. HorizontalAlignment="Center"
  110. FontSize="10"
  111. LineHeight="12"
  112. PointerPressed="AmiiboLabel_OnPointerPressed"
  113. Text="{locale:Locale AboutAmiiboDisclaimerMessage}"
  114. TextAlignment="Center"
  115. TextWrapping="Wrap" />
  116. <StackPanel
  117. HorizontalAlignment="Center"
  118. Orientation="Horizontal"
  119. Spacing="10">
  120. <Button
  121. MinWidth="30"
  122. MinHeight="30"
  123. MaxWidth="30"
  124. MaxHeight="30"
  125. Padding="8"
  126. Background="Transparent"
  127. Click="Button_OnClick"
  128. CornerRadius="15"
  129. Tag="https://github.com/GreemDev/Ryujinx"
  130. ToolTip.Tip="{locale:Locale AboutGithubUrlTooltipMessage}">
  131. <Image Source="{Binding GithubLogo}" />
  132. </Button>
  133. <Button
  134. MinWidth="30"
  135. MinHeight="30"
  136. MaxWidth="30"
  137. MaxHeight="30"
  138. Padding="8"
  139. Background="Transparent"
  140. Click="Button_OnClick"
  141. CornerRadius="15"
  142. Tag="https://discordapp.com/invite/N2FmfVc"
  143. ToolTip.Tip="{locale:Locale AboutDiscordUrlTooltipMessage}">
  144. <Image Source="{Binding DiscordLogo}" />
  145. </Button>
  146. </StackPanel>
  147. </StackPanel>
  148. </Grid>
  149. <Border
  150. Grid.Column="1"
  151. Width="1"
  152. Margin="20,0"
  153. VerticalAlignment="Stretch"
  154. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  155. BorderThickness="1,0,0,0" />
  156. <Grid
  157. Grid.Column="2"
  158. HorizontalAlignment="Stretch"
  159. VerticalAlignment="Stretch">
  160. <Grid.RowDefinitions>
  161. <RowDefinition Height="Auto" />
  162. <RowDefinition Height="Auto" />
  163. </Grid.RowDefinitions>
  164. <StackPanel
  165. Grid.Row="0"
  166. Margin="0,10,0,0"
  167. Spacing="2">
  168. <TextBlock
  169. FontSize="15"
  170. FontWeight="Bold"
  171. Text="{locale:Locale AboutRyujinxAboutTitle}" />
  172. <TextBlock
  173. FontSize="10"
  174. Text="{locale:Locale AboutRyujinxAboutContent}"
  175. TextWrapping="Wrap" />
  176. </StackPanel>
  177. <StackPanel
  178. Grid.Row="1"
  179. Margin="0,10,0,0"
  180. Spacing="2">
  181. <TextBlock
  182. FontSize="15"
  183. FontWeight="Bold"
  184. Text="{locale:Locale AboutRyujinxMaintainersTitle}" />
  185. <TextBlock
  186. FontSize="10"
  187. Text="{Binding Developers}"
  188. TextWrapping="Wrap" />
  189. <Button
  190. Padding="5"
  191. HorizontalAlignment="Left"
  192. Background="Transparent"
  193. Click="Button_OnClick"
  194. Tag="https://github.com/GreemDev/Ryujinx/graphs/contributors?type=a">
  195. <TextBlock
  196. FontSize="10"
  197. Text="{locale:Locale AboutRyujinxContributorsButtonHeader}"
  198. TextAlignment="End"
  199. ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" />
  200. </Button>
  201. </StackPanel>
  202. </Grid>
  203. </Grid>
  204. </UserControl>