AboutWindow.axaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <window:StyleableWindow
  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:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
  9. Title="Ryujinx - About"
  10. Width="850"
  11. Height="550"
  12. MinWidth="500"
  13. MinHeight="550"
  14. d:DesignHeight="350"
  15. d:DesignWidth="400"
  16. CanResize="False"
  17. SizeToContent="Width"
  18. WindowStartupLocation="CenterOwner"
  19. mc:Ignorable="d">
  20. <Grid
  21. Margin="15"
  22. HorizontalAlignment="Stretch"
  23. VerticalAlignment="Stretch">
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="Auto" />
  26. <RowDefinition Height="*" />
  27. </Grid.RowDefinitions>
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="Auto" />
  30. <ColumnDefinition Width="Auto" />
  31. <ColumnDefinition Width="*" />
  32. </Grid.ColumnDefinitions>
  33. <Grid
  34. Grid.Row="1"
  35. Grid.Column="0"
  36. Margin="20"
  37. HorizontalAlignment="Stretch"
  38. VerticalAlignment="Stretch">
  39. <Grid.RowDefinitions>
  40. <RowDefinition Height="*" />
  41. <RowDefinition Height="*" />
  42. <RowDefinition />
  43. <RowDefinition />
  44. <RowDefinition Height="Auto" />
  45. </Grid.RowDefinitions>
  46. <Grid Grid.Row="0">
  47. <Grid.ColumnDefinitions>
  48. <ColumnDefinition />
  49. <ColumnDefinition />
  50. </Grid.ColumnDefinitions>
  51. <Grid.RowDefinitions>
  52. <RowDefinition Height="Auto" />
  53. <RowDefinition Height="Auto" />
  54. <RowDefinition Height="Auto" />
  55. </Grid.RowDefinitions>
  56. <Image
  57. Grid.Row="0"
  58. Grid.RowSpan="3"
  59. Grid.Column="0"
  60. Height="110"
  61. MinWidth="50"
  62. Margin="5,10,20,10"
  63. Source="resm:Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.Ui.Common" />
  64. <TextBlock
  65. Grid.Row="0"
  66. Grid.Column="1"
  67. Margin="0,20,0,0"
  68. FontSize="35"
  69. Text="Ryujinx"
  70. TextAlignment="Center" />
  71. <TextBlock
  72. Grid.Row="1"
  73. Grid.Column="1"
  74. Margin="0,0,0,0"
  75. FontSize="16"
  76. Text="(REE-YOU-JINX)"
  77. TextAlignment="Center" />
  78. <Button
  79. Grid.Row="2"
  80. Grid.Column="1"
  81. Margin="0"
  82. HorizontalAlignment="Center"
  83. Background="Transparent"
  84. Click="Button_OnClick"
  85. Tag="https://www.ryujinx.org/">
  86. <TextBlock
  87. Text="www.ryujinx.org"
  88. TextAlignment="Center"
  89. TextDecorations="Underline"
  90. ToolTip.Tip="{locale:Locale AboutUrlTooltipMessage}" />
  91. </Button>
  92. </Grid>
  93. <TextBlock
  94. Grid.Row="1"
  95. HorizontalAlignment="Center"
  96. VerticalAlignment="Center"
  97. Text="{Binding Version}"
  98. TextAlignment="Center" />
  99. <TextBlock
  100. Grid.Row="2"
  101. Margin="20"
  102. HorizontalAlignment="Center"
  103. MaxLines="2"
  104. Text="{locale:Locale AboutDisclaimerMessage}"
  105. TextAlignment="Center" />
  106. <TextBlock
  107. Name="AmiiboLabel"
  108. Grid.Row="3"
  109. Margin="20"
  110. HorizontalAlignment="Center"
  111. MaxLines="2"
  112. PointerPressed="AmiiboLabel_OnPointerPressed"
  113. Text="{locale:Locale AboutAmiiboDisclaimerMessage}"
  114. TextAlignment="Center" />
  115. <StackPanel
  116. Grid.Row="4"
  117. HorizontalAlignment="Center"
  118. Orientation="Horizontal"
  119. Spacing="10">
  120. <StackPanel Orientation="Vertical" ToolTip.Tip="{locale:Locale AboutPatreonUrlTooltipMessage}">
  121. <Button
  122. Height="65"
  123. Background="Transparent"
  124. Click="Button_OnClick"
  125. Tag="https://www.patreon.com/ryujinx">
  126. <Grid>
  127. <Grid.RowDefinitions>
  128. <RowDefinition />
  129. <RowDefinition Height="Auto" />
  130. </Grid.RowDefinitions>
  131. <Image Source="resm:Ryujinx.Ui.Common.Resources.Logo_Patreon.png?assembly=Ryujinx.Ui.Common" />
  132. <TextBlock
  133. Grid.Row="1"
  134. Margin="0,5,0,0"
  135. HorizontalAlignment="Center"
  136. Text="Patreon" />
  137. </Grid>
  138. </Button>
  139. </StackPanel>
  140. <StackPanel Orientation="Vertical" ToolTip.Tip="{locale:Locale AboutGithubUrlTooltipMessage}">
  141. <Button
  142. Height="65"
  143. Background="Transparent"
  144. Click="Button_OnClick"
  145. Tag="https://github.com/Ryujinx/Ryujinx">
  146. <Grid>
  147. <Grid.RowDefinitions>
  148. <RowDefinition />
  149. <RowDefinition Height="Auto" />
  150. </Grid.RowDefinitions>
  151. <Image Source="resm:Ryujinx.Ui.Common.Resources.Logo_GitHub.png?assembly=Ryujinx.Ui.Common" />
  152. <TextBlock
  153. Grid.Row="1"
  154. Margin="0,5,0,0"
  155. HorizontalAlignment="Center"
  156. Text="GitHub" />
  157. </Grid>
  158. </Button>
  159. </StackPanel>
  160. <StackPanel Orientation="Vertical" ToolTip.Tip="{locale:Locale AboutDiscordUrlTooltipMessage}">
  161. <Button
  162. Height="65"
  163. Background="Transparent"
  164. Click="Button_OnClick"
  165. Tag="https://discordapp.com/invite/N2FmfVc">
  166. <Grid>
  167. <Grid.RowDefinitions>
  168. <RowDefinition />
  169. <RowDefinition Height="Auto" />
  170. </Grid.RowDefinitions>
  171. <Image Source="resm:Ryujinx.Ui.Common.Resources.Logo_Discord.png?assembly=Ryujinx.Ui.Common" />
  172. <TextBlock
  173. Grid.Row="1"
  174. Margin="0,5,0,0"
  175. HorizontalAlignment="Center"
  176. Text="Discord" />
  177. </Grid>
  178. </Button>
  179. </StackPanel>
  180. <StackPanel Orientation="Vertical" ToolTip.Tip="{locale:Locale AboutTwitterUrlTooltipMessage}">
  181. <Button
  182. Height="65"
  183. Background="Transparent"
  184. Click="Button_OnClick"
  185. Tag="https://twitter.com/RyujinxEmu">
  186. <Grid>
  187. <Grid.RowDefinitions>
  188. <RowDefinition />
  189. <RowDefinition Height="Auto" />
  190. </Grid.RowDefinitions>
  191. <Image Source="resm:Ryujinx.Ui.Common.Resources.Logo_Twitter.png?assembly=Ryujinx.Ui.Common" />
  192. <TextBlock
  193. Grid.Row="1"
  194. Margin="0,5,0,0"
  195. HorizontalAlignment="Center"
  196. Text="Twitter" />
  197. </Grid>
  198. </Button>
  199. </StackPanel>
  200. </StackPanel>
  201. </Grid>
  202. <Border
  203. Grid.Row="1"
  204. Grid.Column="1"
  205. Width="2"
  206. Margin="5"
  207. VerticalAlignment="Stretch"
  208. BorderBrush="White"
  209. BorderThickness="1,0,0,0">
  210. <Separator Width="0" />
  211. </Border>
  212. <Grid
  213. Grid.Row="1"
  214. Grid.Column="2"
  215. Margin="20"
  216. HorizontalAlignment="Stretch"
  217. VerticalAlignment="Stretch">
  218. <Grid.RowDefinitions>
  219. <RowDefinition Height="Auto" />
  220. <RowDefinition Height="Auto" />
  221. <RowDefinition Height="Auto" />
  222. <RowDefinition Height="Auto" />
  223. <RowDefinition Height="Auto" />
  224. <RowDefinition Height="Auto" />
  225. <RowDefinition Height="Auto" />
  226. </Grid.RowDefinitions>
  227. <TextBlock
  228. FontWeight="Bold"
  229. Text="{locale:Locale AboutRyujinxAboutTitle}"
  230. TextDecorations="Underline" />
  231. <TextBlock
  232. Grid.Row="1"
  233. Margin="20,5,5,5"
  234. LineHeight="20"
  235. Text="{locale:Locale AboutRyujinxAboutContent}" />
  236. <TextBlock
  237. Grid.Row="2"
  238. Margin="0,10,0,0"
  239. FontWeight="Bold"
  240. Text="{locale:Locale AboutRyujinxMaintainersTitle}"
  241. TextDecorations="Underline" />
  242. <TextBlock
  243. Grid.Row="3"
  244. Margin="20,5,5,5"
  245. LineHeight="20"
  246. Text="{Binding Developers}" />
  247. <Button
  248. Grid.Row="4"
  249. HorizontalAlignment="Right"
  250. Background="Transparent"
  251. Click="Button_OnClick"
  252. Tag="https://github.com/Ryujinx/Ryujinx/graphs/contributors?type=a">
  253. <TextBlock
  254. Text="{locale:Locale AboutRyujinxContributorsButtonHeader}"
  255. TextAlignment="Right"
  256. TextDecorations="Underline"
  257. ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" />
  258. </Button>
  259. <TextBlock
  260. Grid.Row="5"
  261. Margin="0,0,0,0"
  262. FontWeight="Bold"
  263. Text="{locale:Locale AboutRyujinxSupprtersTitle}"
  264. TextDecorations="Underline" />
  265. <Border
  266. Grid.Row="6"
  267. Width="460"
  268. Height="200"
  269. Margin="20,5"
  270. Padding="5"
  271. VerticalAlignment="Stretch"
  272. BorderBrush="White"
  273. BorderThickness="1">
  274. <TextBlock
  275. Name="SupportersTextBlock"
  276. VerticalAlignment="Top"
  277. Text="{Binding Supporters}"
  278. TextWrapping="Wrap" />
  279. </Border>
  280. </Grid>
  281. </Grid>
  282. </window:StyleableWindow>