SettingsSystemView.axaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsSystemView"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  8. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
  10. mc:Ignorable="d"
  11. x:DataType="viewModels:SettingsViewModel">
  12. <UserControl.Resources>
  13. <helpers:TimeZoneConverter x:Key="TimeZone" />
  14. </UserControl.Resources>
  15. <Design.DataContext>
  16. <viewModels:SettingsViewModel />
  17. </Design.DataContext>
  18. <ScrollViewer
  19. Name="SystemPage"
  20. HorizontalAlignment="Stretch"
  21. VerticalAlignment="Stretch"
  22. HorizontalScrollBarVisibility="Disabled"
  23. VerticalScrollBarVisibility="Auto">
  24. <Border Classes="settings">
  25. <StackPanel
  26. Margin="10"
  27. HorizontalAlignment="Stretch"
  28. Orientation="Vertical"
  29. Spacing="10">
  30. <TextBlock
  31. Classes="h1"
  32. Text="{locale:Locale SettingsTabSystemCore}" />
  33. <StackPanel
  34. Margin="10,0,0,0"
  35. Orientation="Vertical">
  36. <StackPanel
  37. Margin="0,0,0,10"
  38. Orientation="Horizontal">
  39. <TextBlock
  40. VerticalAlignment="Center"
  41. Text="{locale:Locale SettingsTabSystemSystemRegion}"
  42. Width="250" />
  43. <ComboBox
  44. SelectedIndex="{Binding Region}"
  45. ToolTip.Tip="{locale:Locale RegionTooltip}"
  46. HorizontalContentAlignment="Left"
  47. Width="350">
  48. <ComboBoxItem>
  49. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionJapan}" />
  50. </ComboBoxItem>
  51. <ComboBoxItem>
  52. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionUSA}" />
  53. </ComboBoxItem>
  54. <ComboBoxItem>
  55. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionEurope}" />
  56. </ComboBoxItem>
  57. <ComboBoxItem>
  58. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionAustralia}" />
  59. </ComboBoxItem>
  60. <ComboBoxItem>
  61. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionChina}" />
  62. </ComboBoxItem>
  63. <ComboBoxItem>
  64. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionKorea}" />
  65. </ComboBoxItem>
  66. <ComboBoxItem>
  67. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionTaiwan}" />
  68. </ComboBoxItem>
  69. </ComboBox>
  70. </StackPanel>
  71. <StackPanel
  72. Margin="0,0,0,10"
  73. Orientation="Horizontal">
  74. <TextBlock
  75. VerticalAlignment="Center"
  76. Text="{locale:Locale SettingsTabSystemSystemLanguage}"
  77. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  78. Width="250" />
  79. <ComboBox
  80. SelectedIndex="{Binding Language}"
  81. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  82. HorizontalContentAlignment="Left"
  83. Width="350">
  84. <ComboBoxItem>
  85. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageJapanese}" />
  86. </ComboBoxItem>
  87. <ComboBoxItem>
  88. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageAmericanEnglish}" />
  89. </ComboBoxItem>
  90. <ComboBoxItem>
  91. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageFrench}" />
  92. </ComboBoxItem>
  93. <ComboBoxItem>
  94. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageGerman}" />
  95. </ComboBoxItem>
  96. <ComboBoxItem>
  97. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageItalian}" />
  98. </ComboBoxItem>
  99. <ComboBoxItem>
  100. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSpanish}" />
  101. </ComboBoxItem>
  102. <ComboBoxItem>
  103. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageChinese}" />
  104. </ComboBoxItem>
  105. <ComboBoxItem>
  106. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageKorean}" />
  107. </ComboBoxItem>
  108. <ComboBoxItem>
  109. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageDutch}" />
  110. </ComboBoxItem>
  111. <ComboBoxItem>
  112. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguagePortuguese}" />
  113. </ComboBoxItem>
  114. <ComboBoxItem>
  115. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageRussian}" />
  116. </ComboBoxItem>
  117. <ComboBoxItem>
  118. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTaiwanese}" />
  119. </ComboBoxItem>
  120. <ComboBoxItem>
  121. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageBritishEnglish}" />
  122. </ComboBoxItem>
  123. <ComboBoxItem>
  124. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageCanadianFrench}" />
  125. </ComboBoxItem>
  126. <ComboBoxItem>
  127. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageLatinAmericanSpanish}" />
  128. </ComboBoxItem>
  129. <ComboBoxItem>
  130. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSimplifiedChinese}" />
  131. </ComboBoxItem>
  132. <ComboBoxItem>
  133. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTraditionalChinese}" />
  134. </ComboBoxItem>
  135. <ComboBoxItem>
  136. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" />
  137. </ComboBoxItem>
  138. </ComboBox>
  139. </StackPanel>
  140. <StackPanel
  141. Margin="0,0,0,10"
  142. Orientation="Horizontal">
  143. <TextBlock
  144. VerticalAlignment="Center"
  145. Text="{locale:Locale SettingsTabSystemSystemTimeZone}"
  146. ToolTip.Tip="{locale:Locale TimezoneTooltip}"
  147. Width="250" />
  148. <AutoCompleteBox
  149. Name="TimeZoneBox"
  150. Width="350"
  151. MaxDropDownHeight="500"
  152. FilterMode="Contains"
  153. ItemsSource="{Binding TimeZones}"
  154. SelectionChanged="TimeZoneBox_OnSelectionChanged"
  155. Text="{Binding Path=TimeZone, Mode=OneWay}"
  156. TextChanged="TimeZoneBox_OnTextChanged"
  157. ToolTip.Tip="{locale:Locale TimezoneTooltip}"
  158. ValueMemberBinding="{Binding Mode=OneWay, Converter={StaticResource TimeZone}}" />
  159. </StackPanel>
  160. <StackPanel
  161. Margin="0,0,0,10"
  162. Orientation="Horizontal">
  163. <TextBlock
  164. VerticalAlignment="Center"
  165. Text="{locale:Locale SettingsTabSystemSystemTime}"
  166. ToolTip.Tip="{locale:Locale TimeTooltip}"
  167. Width="250"/>
  168. <DatePicker
  169. VerticalAlignment="Center"
  170. SelectedDate="{Binding CurrentDate}"
  171. ToolTip.Tip="{locale:Locale TimeTooltip}"
  172. Width="350" />
  173. </StackPanel>
  174. <StackPanel
  175. Margin="250,0,0,10"
  176. Orientation="Horizontal">
  177. <TimePicker
  178. VerticalAlignment="Center"
  179. ClockIdentifier="24HourClock"
  180. SelectedTime="{Binding CurrentTime}"
  181. Width="350"
  182. ToolTip.Tip="{locale:Locale TimeTooltip}" />
  183. </StackPanel>
  184. <CheckBox IsChecked="{Binding EnableVsync}">
  185. <TextBlock
  186. Text="{locale:Locale SettingsTabSystemEnableVsync}"
  187. ToolTip.Tip="{locale:Locale VSyncToggleTooltip}" />
  188. </CheckBox>
  189. <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}">
  190. <TextBlock
  191. Text="{locale:Locale SettingsTabSystemEnableFsIntegrityChecks}"
  192. ToolTip.Tip="{locale:Locale FsIntegrityToggleTooltip}" />
  193. </CheckBox>
  194. </StackPanel>
  195. <Separator Height="1" />
  196. <StackPanel
  197. Orientation="Vertical"
  198. Spacing="2">
  199. <TextBlock
  200. Classes="h1"
  201. Text="{locale:Locale SettingsTabSystemHacks}" />
  202. <TextBlock
  203. Foreground="{DynamicResource SecondaryTextColor}"
  204. Text="{locale:Locale SettingsTabSystemHacksNote}" />
  205. </StackPanel>
  206. <StackPanel
  207. Margin="10,0,0,0"
  208. Orientation="Horizontal">
  209. <TextBlock
  210. VerticalAlignment="Center"
  211. Text="{locale:Locale SettingsTabSystemDramSize}"
  212. Width="250" />
  213. <ComboBox
  214. SelectedIndex="{Binding DramSize}"
  215. ToolTip.Tip="{locale:Locale DRamTooltip}"
  216. HorizontalContentAlignment="Left"
  217. Width="350">
  218. <ComboBoxItem>
  219. <TextBlock Text="{locale:Locale SettingsTabSystemDramSize4GiB}" />
  220. </ComboBoxItem>
  221. <ComboBoxItem>
  222. <TextBlock Text="{locale:Locale SettingsTabSystemDramSize6GiB}" />
  223. </ComboBoxItem>
  224. <ComboBoxItem>
  225. <TextBlock Text="{locale:Locale SettingsTabSystemDramSize8GiB}" />
  226. </ComboBoxItem>
  227. <ComboBoxItem>
  228. <TextBlock Text="{locale:Locale SettingsTabSystemDramSize12GiB}" />
  229. </ComboBoxItem>
  230. </ComboBox>
  231. </StackPanel>
  232. <StackPanel
  233. Margin="10,0,0,0"
  234. HorizontalAlignment="Stretch"
  235. Orientation="Vertical">
  236. <CheckBox
  237. IsChecked="{Binding IgnoreMissingServices}"
  238. ToolTip.Tip="{locale:Locale IgnoreMissingServicesTooltip}">
  239. <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreMissingServices}" />
  240. </CheckBox>
  241. <CheckBox
  242. IsChecked="{Binding IgnoreApplet}"
  243. ToolTip.Tip="{locale:Locale IgnoreAppletTooltip}">
  244. <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreApplet}" />
  245. </CheckBox>
  246. </StackPanel>
  247. </StackPanel>
  248. </Border>
  249. </ScrollViewer>
  250. </UserControl>