SettingsSystemView.axaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. mc:Ignorable="d"
  10. x:CompileBindings="True"
  11. x:DataType="viewModels:SettingsViewModel">
  12. <Design.DataContext>
  13. <viewModels:SettingsViewModel />
  14. </Design.DataContext>
  15. <ScrollViewer
  16. Name="SystemPage"
  17. HorizontalAlignment="Stretch"
  18. VerticalAlignment="Stretch"
  19. HorizontalScrollBarVisibility="Disabled"
  20. VerticalScrollBarVisibility="Auto">
  21. <Border Classes="settings">
  22. <StackPanel
  23. Margin="10"
  24. HorizontalAlignment="Stretch"
  25. Orientation="Vertical"
  26. Spacing="10">
  27. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabSystemCore}" />
  28. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  29. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  30. <TextBlock VerticalAlignment="Center"
  31. Text="{locale:Locale SettingsTabSystemSystemRegion}"
  32. Width="250" />
  33. <ComboBox SelectedIndex="{Binding Region}"
  34. ToolTip.Tip="{locale:Locale RegionTooltip}"
  35. HorizontalContentAlignment="Left"
  36. Width="350">
  37. <ComboBoxItem>
  38. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionJapan}" />
  39. </ComboBoxItem>
  40. <ComboBoxItem>
  41. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionUSA}" />
  42. </ComboBoxItem>
  43. <ComboBoxItem>
  44. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionEurope}" />
  45. </ComboBoxItem>
  46. <ComboBoxItem>
  47. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionAustralia}" />
  48. </ComboBoxItem>
  49. <ComboBoxItem>
  50. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionChina}" />
  51. </ComboBoxItem>
  52. <ComboBoxItem>
  53. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionKorea}" />
  54. </ComboBoxItem>
  55. <ComboBoxItem>
  56. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionTaiwan}" />
  57. </ComboBoxItem>
  58. </ComboBox>
  59. </StackPanel>
  60. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  61. <TextBlock VerticalAlignment="Center"
  62. Text="{locale:Locale SettingsTabSystemSystemLanguage}"
  63. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  64. Width="250" />
  65. <ComboBox SelectedIndex="{Binding Language}"
  66. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  67. HorizontalContentAlignment="Left"
  68. Width="350">
  69. <ComboBoxItem>
  70. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageJapanese}" />
  71. </ComboBoxItem>
  72. <ComboBoxItem>
  73. <TextBlock
  74. Text="{locale:Locale SettingsTabSystemSystemLanguageAmericanEnglish}" />
  75. </ComboBoxItem>
  76. <ComboBoxItem>
  77. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageFrench}" />
  78. </ComboBoxItem>
  79. <ComboBoxItem>
  80. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageGerman}" />
  81. </ComboBoxItem>
  82. <ComboBoxItem>
  83. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageItalian}" />
  84. </ComboBoxItem>
  85. <ComboBoxItem>
  86. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSpanish}" />
  87. </ComboBoxItem>
  88. <ComboBoxItem>
  89. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageChinese}" />
  90. </ComboBoxItem>
  91. <ComboBoxItem>
  92. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageKorean}" />
  93. </ComboBoxItem>
  94. <ComboBoxItem>
  95. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageDutch}" />
  96. </ComboBoxItem>
  97. <ComboBoxItem>
  98. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguagePortuguese}" />
  99. </ComboBoxItem>
  100. <ComboBoxItem>
  101. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageRussian}" />
  102. </ComboBoxItem>
  103. <ComboBoxItem>
  104. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTaiwanese}" />
  105. </ComboBoxItem>
  106. <ComboBoxItem>
  107. <TextBlock
  108. Text="{locale:Locale SettingsTabSystemSystemLanguageBritishEnglish}" />
  109. </ComboBoxItem>
  110. <ComboBoxItem>
  111. <TextBlock
  112. Text="{locale:Locale SettingsTabSystemSystemLanguageCanadianFrench}" />
  113. </ComboBoxItem>
  114. <ComboBoxItem>
  115. <TextBlock
  116. Text="{locale:Locale SettingsTabSystemSystemLanguageLatinAmericanSpanish}" />
  117. </ComboBoxItem>
  118. <ComboBoxItem>
  119. <TextBlock
  120. Text="{locale:Locale SettingsTabSystemSystemLanguageSimplifiedChinese}" />
  121. </ComboBoxItem>
  122. <ComboBoxItem>
  123. <TextBlock
  124. Text="{locale:Locale SettingsTabSystemSystemLanguageTraditionalChinese}" />
  125. </ComboBoxItem>
  126. <ComboBoxItem>
  127. <TextBlock
  128. Text="{locale:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" />
  129. </ComboBoxItem>
  130. </ComboBox>
  131. </StackPanel>
  132. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  133. <TextBlock VerticalAlignment="Center"
  134. Text="{locale:Locale SettingsTabSystemSystemTimeZone}"
  135. ToolTip.Tip="{locale:Locale TimezoneTooltip}"
  136. Width="250" />
  137. <AutoCompleteBox
  138. Name="TimeZoneBox"
  139. Width="350"
  140. MaxDropDownHeight="500"
  141. FilterMode="Contains"
  142. Items="{Binding TimeZones}"
  143. SelectionChanged="TimeZoneBox_OnSelectionChanged"
  144. Text="{Binding Path=TimeZone, Mode=OneWay}"
  145. TextChanged="TimeZoneBox_OnTextChanged"
  146. ToolTip.Tip="{locale:Locale TimezoneTooltip}" />
  147. </StackPanel>
  148. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  149. <TextBlock VerticalAlignment="Center"
  150. Text="{locale:Locale SettingsTabSystemSystemTime}"
  151. ToolTip.Tip="{locale:Locale TimeTooltip}"
  152. Width="250"/>
  153. <DatePicker VerticalAlignment="Center" SelectedDate="{Binding DateOffset}"
  154. ToolTip.Tip="{locale:Locale TimeTooltip}"
  155. Width="350" />
  156. </StackPanel>
  157. <StackPanel Margin="250,0,0,10" Orientation="Horizontal">
  158. <TimePicker
  159. VerticalAlignment="Center"
  160. ClockIdentifier="24HourClock"
  161. SelectedTime="{Binding TimeOffset}"
  162. Width="350"
  163. ToolTip.Tip="{locale:Locale TimeTooltip}" />
  164. </StackPanel>
  165. <CheckBox IsChecked="{Binding EnableVsync}">
  166. <TextBlock Text="{locale:Locale SettingsTabSystemEnableVsync}"
  167. ToolTip.Tip="{locale:Locale VSyncToggleTooltip}" />
  168. </CheckBox>
  169. <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}">
  170. <TextBlock Text="{locale:Locale SettingsTabSystemEnableFsIntegrityChecks}"
  171. ToolTip.Tip="{locale:Locale FsIntegrityToggleTooltip}" />
  172. </CheckBox>
  173. </StackPanel>
  174. <Separator Height="1" />
  175. <StackPanel Orientation="Vertical" Spacing="2">
  176. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabSystemHacks}" />
  177. <TextBlock Foreground="{DynamicResource SecondaryTextColor}" Text="{locale:Locale SettingsTabSystemHacksNote}" />
  178. </StackPanel>
  179. <StackPanel
  180. Margin="10,0,0,0"
  181. HorizontalAlignment="Stretch"
  182. Orientation="Vertical">
  183. <CheckBox IsChecked="{Binding ExpandDramSize}"
  184. ToolTip.Tip="{locale:Locale DRamTooltip}">
  185. <TextBlock Text="{locale:Locale SettingsTabSystemExpandDramSize}" />
  186. </CheckBox>
  187. <CheckBox IsChecked="{Binding IgnoreMissingServices}"
  188. ToolTip.Tip="{locale:Locale IgnoreMissingServicesTooltip}">
  189. <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreMissingServices}" />
  190. </CheckBox>
  191. </StackPanel>
  192. </StackPanel>
  193. </Border>
  194. </ScrollViewer>
  195. </UserControl>