SettingsWindow.axaml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. <window:StyleableWindow
  2. x:Class="Ryujinx.Ava.Ui.Windows.SettingsWindow"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. xmlns:controls="clr-namespace:Ryujinx.Ava.Ui.Controls"
  8. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:viewModels="clr-namespace:Ryujinx.Ava.Ui.ViewModels"
  11. xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
  12. Width="1100"
  13. Height="768"
  14. d:DesignWidth="800"
  15. d:DesignHeight="950"
  16. MinWidth="800"
  17. MinHeight="480"
  18. WindowStartupLocation="CenterOwner"
  19. x:CompileBindings="True"
  20. x:DataType="viewModels:SettingsViewModel"
  21. mc:Ignorable="d">
  22. <Design.DataContext>
  23. <viewModels:SettingsViewModel />
  24. </Design.DataContext>
  25. <Window.Resources>
  26. <controls:KeyValueConverter x:Key="Key" />
  27. </Window.Resources>
  28. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="600">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="Auto" />
  31. <RowDefinition />
  32. <RowDefinition Height="Auto" />
  33. </Grid.RowDefinitions>
  34. <ContentPresenter
  35. x:Name="ContentPresenter"
  36. Grid.Row="1"
  37. IsVisible="False"
  38. KeyboardNavigation.IsTabStop="False"/>
  39. <Grid Name="Pages" IsVisible="False" Grid.Row="2">
  40. <ScrollViewer Name="UiPage"
  41. Margin="0,0,10,0"
  42. HorizontalAlignment="Stretch"
  43. VerticalAlignment="Stretch"
  44. HorizontalScrollBarVisibility="Disabled"
  45. VerticalScrollBarVisibility="Auto">
  46. <Border>
  47. <StackPanel
  48. Margin="10,5"
  49. HorizontalAlignment="Stretch"
  50. Orientation="Vertical"
  51. Spacing="10">
  52. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGeneralGeneral}" />
  53. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  54. <CheckBox IsChecked="{Binding EnableDiscordIntegration}">
  55. <TextBlock VerticalAlignment="Center"
  56. ToolTip.Tip="{locale:Locale ToggleDiscordTooltip}"
  57. Text="{locale:Locale SettingsTabGeneralEnableDiscordRichPresence}" />
  58. </CheckBox>
  59. <CheckBox IsChecked="{Binding CheckUpdatesOnStart}">
  60. <TextBlock Text="{locale:Locale SettingsTabGeneralCheckUpdatesOnLaunch}" />
  61. </CheckBox>
  62. <CheckBox IsChecked="{Binding ShowConfirmExit}">
  63. <TextBlock Text="{locale:Locale SettingsTabGeneralShowConfirmExitDialog}" />
  64. </CheckBox>
  65. <CheckBox IsChecked="{Binding HideCursorOnIdle}">
  66. <TextBlock Text="{locale:Locale SettingsTabGeneralHideCursorOnIdle}" />
  67. </CheckBox>
  68. </StackPanel>
  69. <Separator Height="1" />
  70. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGeneralGameDirectories}" />
  71. <StackPanel
  72. Margin="10,0,0,0"
  73. HorizontalAlignment="Stretch"
  74. Orientation="Vertical"
  75. Spacing="10">
  76. <ListBox
  77. Name="GameList"
  78. MinHeight="150"
  79. Items="{Binding GameDirectories}" />
  80. <Grid HorizontalAlignment="Stretch">
  81. <Grid.ColumnDefinitions>
  82. <ColumnDefinition Width="*" />
  83. <ColumnDefinition Width="Auto" />
  84. <ColumnDefinition Width="Auto" />
  85. </Grid.ColumnDefinitions>
  86. <TextBox
  87. Name="PathBox"
  88. Margin="0"
  89. ToolTip.Tip="{locale:Locale AddGameDirBoxTooltip}"
  90. VerticalAlignment="Stretch" />
  91. <Button
  92. Name="AddButton"
  93. Grid.Column="1"
  94. MinWidth="90"
  95. Margin="10,0,0,0"
  96. ToolTip.Tip="{locale:Locale AddGameDirTooltip}"
  97. Click="AddButton_OnClick">
  98. <TextBlock HorizontalAlignment="Center"
  99. Text="{locale:Locale SettingsTabGeneralAdd}" />
  100. </Button>
  101. <Button
  102. Name="RemoveButton"
  103. Grid.Column="2"
  104. MinWidth="90"
  105. Margin="10,0,0,0"
  106. ToolTip.Tip="{locale:Locale RemoveGameDirTooltip}"
  107. Click="RemoveButton_OnClick">
  108. <TextBlock HorizontalAlignment="Center"
  109. Text="{locale:Locale SettingsTabGeneralRemove}" />
  110. </Button>
  111. </Grid>
  112. </StackPanel>
  113. <Separator Height="1" />
  114. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGeneralTheme}" />
  115. <Grid Margin="10,0,0,0">
  116. <Grid.ColumnDefinitions>
  117. <ColumnDefinition Width="Auto" />
  118. <ColumnDefinition />
  119. <ColumnDefinition Width="Auto" />
  120. </Grid.ColumnDefinitions>
  121. <Grid.RowDefinitions>
  122. <RowDefinition />
  123. <RowDefinition />
  124. <RowDefinition />
  125. </Grid.RowDefinitions>
  126. <CheckBox IsChecked="{Binding EnableCustomTheme}"
  127. ToolTip.Tip="{locale:Locale CustomThemeCheckTooltip}">
  128. <TextBlock Text="{locale:Locale SettingsTabGeneralThemeEnableCustomTheme}" />
  129. </CheckBox>
  130. <TextBlock VerticalAlignment="Center"
  131. Margin="0,10,0,0"
  132. Grid.Row="1"
  133. Text="{locale:Locale SettingsTabGeneralThemeCustomTheme}"
  134. ToolTip.Tip="{locale:Locale CustomThemePathTooltip}" />
  135. <TextBox Margin="0,10,0,0"
  136. Grid.Row="1"
  137. Grid.Column="1"
  138. Text="{Binding CustomThemePath}" />
  139. <Button Grid.Row="1"
  140. Grid.Column="2"
  141. Margin="10,10,0,0"
  142. Command="{ReflectionBinding BrowseTheme}"
  143. ToolTip.Tip="{locale:Locale CustomThemeBrowseTooltip}"
  144. Content="{locale:Locale ButtonBrowse}" />
  145. <TextBlock VerticalAlignment="Center"
  146. Margin="0,10,0,0"
  147. Grid.Row="2"
  148. Text="{locale:Locale SettingsTabGeneralThemeBaseStyle}" />
  149. <ComboBox VerticalAlignment="Center"
  150. Margin="0,10,0,0"
  151. Grid.Column="1"
  152. Grid.Row="2"
  153. MinWidth="100"
  154. SelectedIndex="{Binding BaseStyleIndex}">
  155. <ComboBoxItem>
  156. <TextBlock Text="{locale:Locale SettingsTabGeneralThemeBaseStyleLight}" />
  157. </ComboBoxItem>
  158. <ComboBoxItem>
  159. <TextBlock Text="{locale:Locale SettingsTabGeneralThemeBaseStyleDark}" />
  160. </ComboBoxItem>
  161. </ComboBox>
  162. </Grid>
  163. </StackPanel>
  164. </Border>
  165. </ScrollViewer>
  166. <ScrollViewer Name="InputPage"
  167. HorizontalAlignment="Stretch"
  168. VerticalAlignment="Stretch"
  169. Padding="0,0,2,0"
  170. HorizontalScrollBarVisibility="Disabled"
  171. VerticalScrollBarVisibility="Auto">
  172. <Border>
  173. <StackPanel Margin="4" Orientation="Vertical">
  174. <StackPanel Orientation="Horizontal">
  175. <CheckBox Margin="5,0"
  176. ToolTip.Tip="{locale:Locale DockModeToggleTooltip}"
  177. IsChecked="{Binding EnableDockedMode}">
  178. <TextBlock VerticalAlignment="Center"
  179. Text="{locale:Locale SettingsTabInputEnableDockedMode}" />
  180. </CheckBox>
  181. <CheckBox Margin="5,0"
  182. ToolTip.Tip="{locale:Locale DirectKeyboardTooltip}"
  183. IsChecked="{Binding EnableKeyboard}">
  184. <TextBlock Text="{locale:Locale SettingsTabInputDirectKeyboardAccess}" />
  185. </CheckBox>
  186. <CheckBox Margin="5,0"
  187. ToolTip.Tip="{locale:Locale DirectMouseTooltip}"
  188. IsChecked="{Binding EnableMouse}">
  189. <TextBlock Text="{locale:Locale SettingsTabInputDirectMouseAccess}" />
  190. </CheckBox>
  191. </StackPanel>
  192. <window:ControllerSettingsWindow Name="ControllerSettings" Margin="0,0,0,0" MinHeight="600" />
  193. </StackPanel>
  194. </Border>
  195. </ScrollViewer>
  196. <ScrollViewer Name="HotkeysPage"
  197. HorizontalAlignment="Stretch"
  198. VerticalAlignment="Stretch"
  199. HorizontalScrollBarVisibility="Disabled"
  200. VerticalScrollBarVisibility="Auto">
  201. <Border>
  202. <StackPanel Margin="10,5" Orientation="Vertical" Spacing="10">
  203. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabHotkeysHotkeys}" />
  204. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  205. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysToggleVsyncHotkey}" Width="230" />
  206. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  207. <TextBlock
  208. Text="{Binding KeyboardHotkeys.ToggleVsync, Mode=TwoWay, Converter={StaticResource Key}}"
  209. TextAlignment="Center" />
  210. </ToggleButton>
  211. </StackPanel>
  212. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  213. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysScreenshotHotkey}" Width="230" />
  214. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  215. <TextBlock
  216. Text="{Binding KeyboardHotkeys.Screenshot, Mode=TwoWay, Converter={StaticResource Key}}"
  217. TextAlignment="Center" />
  218. </ToggleButton>
  219. </StackPanel>
  220. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  221. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysShowUiHotkey}" Width="230" />
  222. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  223. <TextBlock
  224. Text="{Binding KeyboardHotkeys.ShowUi, Mode=TwoWay, Converter={StaticResource Key}}"
  225. TextAlignment="Center" />
  226. </ToggleButton>
  227. </StackPanel>
  228. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  229. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysPauseHotkey}" Width="230" />
  230. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  231. <TextBlock
  232. Text="{Binding KeyboardHotkeys.Pause, Mode=TwoWay, Converter={StaticResource Key}}"
  233. TextAlignment="Center" />
  234. </ToggleButton>
  235. </StackPanel>
  236. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  237. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysToggleMuteHotkey}" Width="230" />
  238. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  239. <TextBlock
  240. Text="{Binding KeyboardHotkeys.ToggleMute, Mode=TwoWay, Converter={StaticResource Key}}"
  241. TextAlignment="Center" />
  242. </ToggleButton>
  243. </StackPanel>
  244. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  245. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysResScaleUpHotkey}" Width="230" />
  246. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  247. <TextBlock
  248. Text="{Binding KeyboardHotkeys.ResScaleUp, Mode=TwoWay, Converter={StaticResource Key}}"
  249. TextAlignment="Center" />
  250. </ToggleButton>
  251. </StackPanel>
  252. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  253. <TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysResScaleDownHotkey}" Width="230" />
  254. <ToggleButton Width="90" Height="27" Checked="Button_Checked" Unchecked="Button_Unchecked">
  255. <TextBlock
  256. Text="{Binding KeyboardHotkeys.ResScaleDown, Mode=TwoWay, Converter={StaticResource Key}}"
  257. TextAlignment="Center" />
  258. </ToggleButton>
  259. </StackPanel>
  260. </StackPanel>
  261. </Border>
  262. </ScrollViewer>
  263. <ScrollViewer Name="SystemPage"
  264. HorizontalAlignment="Stretch"
  265. VerticalAlignment="Stretch"
  266. HorizontalScrollBarVisibility="Disabled"
  267. VerticalScrollBarVisibility="Auto">
  268. <Border>
  269. <StackPanel
  270. Margin="10,5"
  271. HorizontalAlignment="Stretch"
  272. Orientation="Vertical"
  273. Spacing="10">
  274. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabSystemCore}" />
  275. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  276. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  277. <TextBlock VerticalAlignment="Center"
  278. Text="{locale:Locale SettingsTabSystemSystemRegion}"
  279. Width="250" />
  280. <ComboBox SelectedIndex="{Binding Region}"
  281. ToolTip.Tip="{locale:Locale RegionTooltip}"
  282. HorizontalContentAlignment="Left"
  283. Width="350">
  284. <ComboBoxItem>
  285. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionJapan}" />
  286. </ComboBoxItem>
  287. <ComboBoxItem>
  288. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionUSA}" />
  289. </ComboBoxItem>
  290. <ComboBoxItem>
  291. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionEurope}" />
  292. </ComboBoxItem>
  293. <ComboBoxItem>
  294. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionAustralia}" />
  295. </ComboBoxItem>
  296. <ComboBoxItem>
  297. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionChina}" />
  298. </ComboBoxItem>
  299. <ComboBoxItem>
  300. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionKorea}" />
  301. </ComboBoxItem>
  302. <ComboBoxItem>
  303. <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionTaiwan}" />
  304. </ComboBoxItem>
  305. </ComboBox>
  306. </StackPanel>
  307. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  308. <TextBlock VerticalAlignment="Center"
  309. Text="{locale:Locale SettingsTabSystemSystemLanguage}"
  310. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  311. Width="250" />
  312. <ComboBox SelectedIndex="{Binding Language}"
  313. ToolTip.Tip="{locale:Locale LanguageTooltip}"
  314. HorizontalContentAlignment="Left"
  315. Width="350">
  316. <ComboBoxItem>
  317. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageJapanese}" />
  318. </ComboBoxItem>
  319. <ComboBoxItem>
  320. <TextBlock
  321. Text="{locale:Locale SettingsTabSystemSystemLanguageAmericanEnglish}" />
  322. </ComboBoxItem>
  323. <ComboBoxItem>
  324. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageFrench}" />
  325. </ComboBoxItem>
  326. <ComboBoxItem>
  327. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageGerman}" />
  328. </ComboBoxItem>
  329. <ComboBoxItem>
  330. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageItalian}" />
  331. </ComboBoxItem>
  332. <ComboBoxItem>
  333. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSpanish}" />
  334. </ComboBoxItem>
  335. <ComboBoxItem>
  336. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageChinese}" />
  337. </ComboBoxItem>
  338. <ComboBoxItem>
  339. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageKorean}" />
  340. </ComboBoxItem>
  341. <ComboBoxItem>
  342. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageDutch}" />
  343. </ComboBoxItem>
  344. <ComboBoxItem>
  345. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguagePortuguese}" />
  346. </ComboBoxItem>
  347. <ComboBoxItem>
  348. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageRussian}" />
  349. </ComboBoxItem>
  350. <ComboBoxItem>
  351. <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTaiwanese}" />
  352. </ComboBoxItem>
  353. <ComboBoxItem>
  354. <TextBlock
  355. Text="{locale:Locale SettingsTabSystemSystemLanguageBritishEnglish}" />
  356. </ComboBoxItem>
  357. <ComboBoxItem>
  358. <TextBlock
  359. Text="{locale:Locale SettingsTabSystemSystemLanguageCanadianFrench}" />
  360. </ComboBoxItem>
  361. <ComboBoxItem>
  362. <TextBlock
  363. Text="{locale:Locale SettingsTabSystemSystemLanguageLatinAmericanSpanish}" />
  364. </ComboBoxItem>
  365. <ComboBoxItem>
  366. <TextBlock
  367. Text="{locale:Locale SettingsTabSystemSystemLanguageSimplifiedChinese}" />
  368. </ComboBoxItem>
  369. <ComboBoxItem>
  370. <TextBlock
  371. Text="{locale:Locale SettingsTabSystemSystemLanguageTraditionalChinese}" />
  372. </ComboBoxItem>
  373. <ComboBoxItem>
  374. <TextBlock
  375. Text="{locale:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" />
  376. </ComboBoxItem>
  377. </ComboBox>
  378. </StackPanel>
  379. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  380. <TextBlock VerticalAlignment="Center"
  381. Text="{locale:Locale SettingsTabSystemSystemTimeZone}"
  382. ToolTip.Tip="{locale:Locale TimezoneTooltip}"
  383. Width="250" />
  384. <AutoCompleteBox
  385. Name="TimeZoneBox"
  386. Width="350"
  387. FilterMode="Contains"
  388. Items="{Binding TimeZones}"
  389. SelectionChanged="TimeZoneBox_OnSelectionChanged"
  390. Text="{Binding Path=TimeZone, Mode=OneWay}"
  391. TextChanged="TimeZoneBox_OnTextChanged"
  392. ValueMemberBinding="{ReflectionBinding TzMultiBinding}"
  393. ToolTip.Tip="{locale:Locale TimezoneTooltip}" />
  394. </StackPanel>
  395. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  396. <TextBlock VerticalAlignment="Center"
  397. Text="{locale:Locale SettingsTabSystemSystemTime}"
  398. ToolTip.Tip="{locale:Locale TimeTooltip}"
  399. Width="250"/>
  400. <DatePicker VerticalAlignment="Center" SelectedDate="{Binding DateOffset}"
  401. ToolTip.Tip="{locale:Locale TimeTooltip}"
  402. Width="350" />
  403. </StackPanel>
  404. <StackPanel Margin="250,0,0,10" Orientation="Horizontal">
  405. <TimePicker
  406. VerticalAlignment="Center"
  407. ClockIdentifier="24HourClock"
  408. SelectedTime="{Binding TimeOffset}"
  409. Width="350"
  410. ToolTip.Tip="{locale:Locale TimeTooltip}" />
  411. </StackPanel>
  412. <CheckBox IsChecked="{Binding EnableVsync}">
  413. <TextBlock Text="{locale:Locale SettingsTabSystemEnableVsync}"
  414. ToolTip.Tip="{locale:Locale VSyncToggleTooltip}" />
  415. </CheckBox>
  416. <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}">
  417. <TextBlock Text="{locale:Locale SettingsTabSystemEnableFsIntegrityChecks}"
  418. ToolTip.Tip="{locale:Locale FsIntegrityToggleTooltip}" />
  419. </CheckBox>
  420. </StackPanel>
  421. <Separator Height="1" />
  422. <StackPanel Orientation="Horizontal">
  423. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabSystemHacks}" />
  424. <TextBlock Text="{locale:Locale SettingsTabSystemHacksNote}" />
  425. </StackPanel>
  426. <StackPanel
  427. Margin="10,0,0,0"
  428. HorizontalAlignment="Stretch"
  429. Orientation="Vertical">
  430. <CheckBox IsChecked="{Binding ExpandDramSize}"
  431. ToolTip.Tip="{locale:Locale DRamTooltip}">
  432. <TextBlock Text="{locale:Locale SettingsTabSystemExpandDramSize}" />
  433. </CheckBox>
  434. <CheckBox IsChecked="{Binding IgnoreMissingServices}"
  435. ToolTip.Tip="{locale:Locale IgnoreMissingServicesTooltip}">
  436. <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreMissingServices}" />
  437. </CheckBox>
  438. </StackPanel>
  439. </StackPanel>
  440. </Border>
  441. </ScrollViewer>
  442. <ScrollViewer
  443. Name="CpuPage"
  444. HorizontalAlignment="Stretch"
  445. VerticalAlignment="Stretch"
  446. HorizontalScrollBarVisibility="Disabled"
  447. VerticalScrollBarVisibility="Auto">
  448. <Border>
  449. <StackPanel
  450. Margin="10,5"
  451. HorizontalAlignment="Stretch"
  452. Orientation="Vertical"
  453. Spacing="10">
  454. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabCpuCache}" />
  455. <StackPanel
  456. Margin="10,0,0,0"
  457. HorizontalAlignment="Stretch"
  458. Orientation="Vertical">
  459. <CheckBox IsChecked="{Binding EnablePptc}">
  460. <TextBlock Text="{locale:Locale SettingsTabSystemEnablePptc}"
  461. ToolTip.Tip="{locale:Locale PptcToggleTooltip}" />
  462. </CheckBox>
  463. </StackPanel>
  464. <Separator Height="1" />
  465. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabCpuMemory}" />
  466. <StackPanel
  467. Margin="10,0,0,0"
  468. HorizontalAlignment="Stretch"
  469. Orientation="Vertical">
  470. <StackPanel Orientation="Horizontal">
  471. <TextBlock VerticalAlignment="Center"
  472. Text="{locale:Locale SettingsTabSystemMemoryManagerMode}"
  473. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  474. Width="250" />
  475. <ComboBox SelectedIndex="{Binding MemoryMode}"
  476. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  477. HorizontalContentAlignment="Left"
  478. Width="350">
  479. <ComboBoxItem
  480. ToolTip.Tip="{locale:Locale MemoryManagerSoftwareTooltip}">
  481. <TextBlock
  482. Text="{locale:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
  483. </ComboBoxItem>
  484. <ComboBoxItem
  485. ToolTip.Tip="{locale:Locale MemoryManagerHostTooltip}">
  486. <TextBlock Text="{locale:Locale SettingsTabSystemMemoryManagerModeHost}" />
  487. </ComboBoxItem>
  488. <ComboBoxItem
  489. ToolTip.Tip="{locale:Locale MemoryManagerUnsafeTooltip}">
  490. <TextBlock
  491. Text="{locale:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
  492. </ComboBoxItem>
  493. </ComboBox>
  494. </StackPanel>
  495. </StackPanel>
  496. </StackPanel>
  497. </Border>
  498. </ScrollViewer>
  499. <ScrollViewer
  500. Name="GraphicsPage"
  501. HorizontalAlignment="Stretch"
  502. VerticalAlignment="Stretch"
  503. HorizontalScrollBarVisibility="Disabled"
  504. VerticalScrollBarVisibility="Auto">
  505. <Border>
  506. <StackPanel
  507. Margin="10,5"
  508. HorizontalAlignment="Stretch"
  509. Orientation="Vertical"
  510. Spacing="10">
  511. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGraphicsAPI}" />
  512. <StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
  513. <StackPanel Orientation="Horizontal">
  514. <TextBlock VerticalAlignment="Center"
  515. ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
  516. Text="{locale:Locale SettingsTabGraphicsBackend}"
  517. Width="250" />
  518. <ComboBox Width="350"
  519. HorizontalContentAlignment="Left"
  520. ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
  521. SelectedIndex="{Binding GraphicsBackendIndex}">
  522. <ComboBoxItem IsVisible="{Binding IsVulkanAvailable}">
  523. <TextBlock Text="Vulkan" />
  524. </ComboBoxItem>
  525. <ComboBoxItem>
  526. <TextBlock Text="OpenGL" />
  527. </ComboBoxItem>
  528. </ComboBox>
  529. </StackPanel>
  530. <StackPanel Orientation="Horizontal" IsVisible="{Binding IsVulkanSelected}">
  531. <TextBlock VerticalAlignment="Center"
  532. ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
  533. Text="{locale:Locale SettingsTabGraphicsPreferredGpu}"
  534. Width="250" />
  535. <ComboBox Width="350"
  536. HorizontalContentAlignment="Left"
  537. ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
  538. SelectedIndex="{Binding PreferredGpuIndex}"
  539. Items="{Binding AvailableGpus}"/>
  540. </StackPanel>
  541. <Separator Height="1" />
  542. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGraphicsFeatures}" />
  543. <StackPanel Orientation="Vertical">
  544. <CheckBox IsChecked="{Binding EnableShaderCache}"
  545. ToolTip.Tip="{locale:Locale ShaderCacheToggleTooltip}">
  546. <TextBlock Text="{locale:Locale SettingsTabGraphicsEnableShaderCache}" />
  547. </CheckBox>
  548. <CheckBox IsChecked="{Binding EnableTextureRecompression}"
  549. ToolTip.Tip="{locale:Locale SettingsEnableTextureRecompressionTooltip}">
  550. <TextBlock Text="{locale:Locale SettingsEnableTextureRecompression}" />
  551. </CheckBox>
  552. </StackPanel>
  553. <StackPanel Orientation="Horizontal">
  554. <TextBlock VerticalAlignment="Center"
  555. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}"
  556. Text="{locale:Locale SettingsTabGraphicsResolutionScale}"
  557. Width="250" />
  558. <ComboBox SelectedIndex="{Binding ResolutionScale}"
  559. Width="350"
  560. HorizontalContentAlignment="Left"
  561. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}">
  562. <ComboBoxItem>
  563. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleCustom}" />
  564. </ComboBoxItem>
  565. <ComboBoxItem>
  566. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleNative}" />
  567. </ComboBoxItem>
  568. <ComboBoxItem>
  569. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale2x}" />
  570. </ComboBoxItem>
  571. <ComboBoxItem>
  572. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale3x}" />
  573. </ComboBoxItem>
  574. <ComboBoxItem>
  575. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale4x}" />
  576. </ComboBoxItem>
  577. </ComboBox>
  578. <ui:NumberBox
  579. Margin="10,0,0,0"
  580. ToolTip.Tip="{locale:Locale ResolutionScaleEntryTooltip}"
  581. MinWidth="150"
  582. SmallChange="0.1"
  583. LargeChange="1"
  584. SimpleNumberFormat="F2"
  585. SpinButtonPlacementMode="Inline"
  586. IsVisible="{Binding IsCustomResolutionScaleActive}"
  587. Maximum="100"
  588. Minimum="0.1"
  589. Value="{Binding CustomResolutionScale}" />
  590. </StackPanel>
  591. <StackPanel Orientation="Horizontal">
  592. <TextBlock VerticalAlignment="Center"
  593. ToolTip.Tip="{locale:Locale AnisotropyTooltip}"
  594. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering}"
  595. Width="250" />
  596. <ComboBox SelectedIndex="{Binding MaxAnisotropy}"
  597. Width="350"
  598. HorizontalContentAlignment="Left"
  599. ToolTip.Tip="{locale:Locale AnisotropyTooltip}">
  600. <ComboBoxItem>
  601. <TextBlock
  602. Text="{locale:Locale SettingsTabGraphicsAnisotropicFilteringAuto}" />
  603. </ComboBoxItem>
  604. <ComboBoxItem>
  605. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering2x}" />
  606. </ComboBoxItem>
  607. <ComboBoxItem>
  608. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering4x}" />
  609. </ComboBoxItem>
  610. <ComboBoxItem>
  611. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering8x}" />
  612. </ComboBoxItem>
  613. <ComboBoxItem>
  614. <TextBlock
  615. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering16x}" />
  616. </ComboBoxItem>
  617. </ComboBox>
  618. </StackPanel>
  619. <StackPanel Orientation="Horizontal">
  620. <TextBlock VerticalAlignment="Center"
  621. ToolTip.Tip="{locale:Locale AspectRatioTooltip}"
  622. Text="{locale:Locale SettingsTabGraphicsAspectRatio}"
  623. Width="250" />
  624. <ComboBox SelectedIndex="{Binding AspectRatio}"
  625. Width="350"
  626. HorizontalContentAlignment="Left"
  627. ToolTip.Tip="{locale:Locale AspectRatioTooltip}">
  628. <ComboBoxItem>
  629. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio4x3}" />
  630. </ComboBoxItem>
  631. <ComboBoxItem>
  632. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x9}" />
  633. </ComboBoxItem>
  634. <ComboBoxItem>
  635. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x10}" />
  636. </ComboBoxItem>
  637. <ComboBoxItem>
  638. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio21x9}" />
  639. </ComboBoxItem>
  640. <ComboBoxItem>
  641. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio32x9}" />
  642. </ComboBoxItem>
  643. <ComboBoxItem>
  644. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatioStretch}" />
  645. </ComboBoxItem>
  646. </ComboBox>
  647. </StackPanel>
  648. </StackPanel>
  649. <StackPanel
  650. Margin="10,0,0,0"
  651. HorizontalAlignment="Stretch"
  652. Orientation="Vertical"
  653. Spacing="10">
  654. <StackPanel Orientation="Horizontal">
  655. <TextBlock VerticalAlignment="Center"
  656. ToolTip.Tip="{locale:Locale GraphicsBackendThreadingTooltip}"
  657. Text="{locale:Locale SettingsTabGraphicsBackendMultithreading}"
  658. Width="250" />
  659. <ComboBox Width="350"
  660. HorizontalContentAlignment="Left"
  661. ToolTip.Tip="{locale:Locale GalThreadingTooltip}"
  662. SelectedIndex="{Binding GraphicsBackendMultithreadingIndex}">
  663. <ComboBoxItem>
  664. <TextBlock Text="{locale:Locale CommonAuto}" />
  665. </ComboBoxItem>
  666. <ComboBoxItem>
  667. <TextBlock Text="{locale:Locale CommonOff}" />
  668. </ComboBoxItem>
  669. <ComboBoxItem>
  670. <TextBlock Text="{locale:Locale CommonOn}" />
  671. </ComboBoxItem>
  672. </ComboBox>
  673. </StackPanel>
  674. </StackPanel>
  675. <Separator Height="1" />
  676. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabGraphicsDeveloperOptions}" />
  677. <StackPanel
  678. Margin="10,0,0,0"
  679. HorizontalAlignment="Stretch"
  680. Orientation="Vertical"
  681. Spacing="10">
  682. <StackPanel Orientation="Horizontal">
  683. <TextBlock VerticalAlignment="Center"
  684. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}"
  685. Text="{locale:Locale SettingsTabGraphicsShaderDumpPath}"
  686. Width="250" />
  687. <TextBox Text="{Binding ShaderDumpPath}"
  688. Width="350"
  689. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}" />
  690. </StackPanel>
  691. </StackPanel>
  692. </StackPanel>
  693. </Border>
  694. </ScrollViewer>
  695. <ScrollViewer
  696. Name="AudioPage"
  697. HorizontalAlignment="Stretch"
  698. VerticalAlignment="Stretch"
  699. HorizontalScrollBarVisibility="Disabled"
  700. VerticalScrollBarVisibility="Auto">
  701. <Border>
  702. <StackPanel
  703. Margin="10,5"
  704. HorizontalAlignment="Stretch"
  705. Orientation="Vertical"
  706. Spacing="10">
  707. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabAudio}" />
  708. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  709. <TextBlock VerticalAlignment="Center"
  710. Text="{locale:Locale SettingsTabSystemAudioBackend}"
  711. ToolTip.Tip="{locale:Locale AudioBackendTooltip}"
  712. Width="250" />
  713. <ComboBox SelectedIndex="{Binding AudioBackend}"
  714. Width="350"
  715. HorizontalContentAlignment="Left">
  716. <ComboBoxItem>
  717. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendDummy}" />
  718. </ComboBoxItem>
  719. <ComboBoxItem IsEnabled="{Binding IsOpenAlEnabled}">
  720. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendOpenAL}" />
  721. </ComboBoxItem>
  722. <ComboBoxItem IsEnabled="{Binding IsSoundIoEnabled}">
  723. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSoundIO}" />
  724. </ComboBoxItem>
  725. <ComboBoxItem IsEnabled="{Binding IsSDL2Enabled}">
  726. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSDL2}" />
  727. </ComboBoxItem>
  728. </ComboBox>
  729. </StackPanel>
  730. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  731. <TextBlock VerticalAlignment="Center"
  732. Text="{locale:Locale SettingsTabSystemAudioVolume}"
  733. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  734. Width="250" />
  735. <ui:NumberBox Value="{Binding Volume}"
  736. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  737. Width="350"
  738. SmallChange="1"
  739. LargeChange="10"
  740. SimpleNumberFormat="F0"
  741. SpinButtonPlacementMode="Inline"
  742. Minimum="0"
  743. Maximum="100" />
  744. </StackPanel>
  745. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  746. <Slider Value="{Binding Volume}"
  747. Margin="250,0,0,0"
  748. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  749. Minimum="0"
  750. Maximum="100"
  751. SmallChange="5"
  752. TickFrequency="5"
  753. IsSnapToTickEnabled="True"
  754. LargeChange="10"
  755. Width="350" />
  756. </StackPanel>
  757. </StackPanel>
  758. </Border>
  759. </ScrollViewer>
  760. <ScrollViewer
  761. Name="NetworkPage"
  762. HorizontalAlignment="Stretch"
  763. VerticalAlignment="Stretch"
  764. HorizontalScrollBarVisibility="Disabled"
  765. VerticalScrollBarVisibility="Auto">
  766. <Border>
  767. <StackPanel
  768. Margin="10,5"
  769. HorizontalAlignment="Stretch"
  770. Orientation="Vertical"
  771. Spacing="10">
  772. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabNetworkConnection}" />
  773. <CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableInternetAccess}">
  774. <TextBlock Text="{locale:Locale SettingsTabSystemEnableInternetAccess}"
  775. ToolTip.Tip="{locale:Locale EnableInternetAccessTooltip}" />
  776. </CheckBox>
  777. </StackPanel>
  778. </Border>
  779. </ScrollViewer>
  780. <ScrollViewer
  781. Name="LoggingPage"
  782. HorizontalAlignment="Stretch"
  783. VerticalAlignment="Stretch"
  784. HorizontalScrollBarVisibility="Disabled"
  785. VerticalScrollBarVisibility="Auto">
  786. <Border>
  787. <StackPanel
  788. Margin="10,5"
  789. HorizontalAlignment="Stretch"
  790. Orientation="Vertical"
  791. Spacing="10">
  792. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabLoggingLogging}" />
  793. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  794. <CheckBox IsChecked="{Binding EnableFileLog}"
  795. ToolTip.Tip="{locale:Locale FileLogTooltip}">
  796. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableLoggingToFile}" />
  797. </CheckBox>
  798. <CheckBox IsChecked="{Binding EnableStub}"
  799. ToolTip.Tip="{locale:Locale StubLogTooltip}">
  800. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableStubLogs}" />
  801. </CheckBox>
  802. <CheckBox IsChecked="{Binding EnableInfo}"
  803. ToolTip.Tip="{locale:Locale InfoLogTooltip}">
  804. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableInfoLogs}" />
  805. </CheckBox>
  806. <CheckBox IsChecked="{Binding EnableWarn}"
  807. ToolTip.Tip="{locale:Locale WarnLogTooltip}">
  808. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableWarningLogs}" />
  809. </CheckBox>
  810. <CheckBox IsChecked="{Binding EnableError}"
  811. ToolTip.Tip="{locale:Locale ErrorLogTooltip}">
  812. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableErrorLogs}" />
  813. </CheckBox>
  814. <CheckBox IsChecked="{Binding EnableTrace}"
  815. ToolTip.Tip="{locale:Locale TraceLogTooltip}">
  816. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableTraceLogs}" />
  817. </CheckBox>
  818. <CheckBox IsChecked="{Binding EnableGuest}"
  819. ToolTip.Tip="{locale:Locale GuestLogTooltip}">
  820. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableGuestLogs}" />
  821. </CheckBox>
  822. </StackPanel>
  823. <Separator Height="1" />
  824. <TextBlock FontWeight="Bold" Text="{locale:Locale SettingsTabLoggingDeveloperOptions}" />
  825. <StackPanel
  826. Margin="10,0,0,0"
  827. HorizontalAlignment="Stretch"
  828. Orientation="Vertical"
  829. Spacing="10">
  830. <StackPanel Orientation="Vertical">
  831. <CheckBox IsChecked="{Binding EnableDebug}"
  832. ToolTip.Tip="{locale:Locale DebugLogTooltip}">
  833. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableDebugLogs}" />
  834. </CheckBox>
  835. <CheckBox IsChecked="{Binding EnableFsAccessLog}"
  836. ToolTip.Tip="{locale:Locale FileAccessLogTooltip}">
  837. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableFsAccessLogs}" />
  838. </CheckBox>
  839. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Stretch">
  840. <TextBlock VerticalAlignment="Center"
  841. ToolTip.Tip="{locale:Locale FSAccessLogModeTooltip}"
  842. Text="{locale:Locale SettingsTabLoggingFsGlobalAccessLogMode}"
  843. Width="285" />
  844. <ui:NumberBox
  845. Maximum="3"
  846. Minimum="0"
  847. Width="150"
  848. SpinButtonPlacementMode="Inline"
  849. SmallChange="1"
  850. LargeChange="1"
  851. Value="{Binding FsGlobalAccessLogMode}" />
  852. </StackPanel>
  853. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  854. <TextBlock VerticalAlignment="Center"
  855. Text="{locale:Locale SettingsTabLoggingOpenglLogLevel}"
  856. ToolTip.Tip="{locale:Locale OpenGlLogLevel}"
  857. Width="285" />
  858. <ComboBox SelectedIndex="{Binding OpenglDebugLevel}"
  859. Width="150"
  860. HorizontalContentAlignment="Left"
  861. ToolTip.Tip="{locale:Locale OpenGlLogLevel}">
  862. <ComboBoxItem>
  863. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelNone}" />
  864. </ComboBoxItem>
  865. <ComboBoxItem>
  866. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelError}" />
  867. </ComboBoxItem>
  868. <ComboBoxItem>
  869. <TextBlock
  870. Text="{locale:Locale SettingsTabLoggingOpenglLogLevelPerformance}" />
  871. </ComboBoxItem>
  872. <ComboBoxItem>
  873. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelAll}" />
  874. </ComboBoxItem>
  875. </ComboBox>
  876. </StackPanel>
  877. </StackPanel>
  878. </StackPanel>
  879. </StackPanel>
  880. </Border>
  881. </ScrollViewer>
  882. </Grid>
  883. <ui:NavigationView Grid.Row="1" IsSettingsVisible="False" Name="NavPanel" IsBackEnabled="False"
  884. PaneDisplayMode="LeftCompact"
  885. Margin="2,10,10,0"
  886. VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
  887. <ui:NavigationView.MenuItems>
  888. <ui:NavigationViewItem IsSelected="True"
  889. Content="{locale:Locale SettingsTabGeneral}"
  890. Tag="UiPage"
  891. Icon="New" />
  892. <ui:NavigationViewItem
  893. Content="{locale:Locale SettingsTabInput}"
  894. Tag="InputPage"
  895. Icon="Games" />
  896. <ui:NavigationViewItem
  897. Content="{locale:Locale SettingsTabHotkeys}"
  898. Tag="HotkeysPage"
  899. Icon="Keyboard" />
  900. <ui:NavigationViewItem
  901. Content="{locale:Locale SettingsTabSystem}"
  902. Tag="SystemPage"
  903. Icon="Settings" />
  904. <ui:NavigationViewItem
  905. Content="{locale:Locale SettingsTabCpu}"
  906. Tag="CpuPage">
  907. <ui:NavigationViewItem.Icon>
  908. <ui:FontIcon FontFamily="avares://Ryujinx.Ava/Assets/Fonts#Segoe Fluent Icons"
  909. Glyph="{controls:GlyphValueConverter Chip}" />
  910. </ui:NavigationViewItem.Icon>
  911. </ui:NavigationViewItem>
  912. <ui:NavigationViewItem
  913. Content="{locale:Locale SettingsTabGraphics}"
  914. Tag="GraphicsPage"
  915. Icon="Image" />
  916. <ui:NavigationViewItem
  917. Content="{locale:Locale SettingsTabAudio}"
  918. Icon="Audio"
  919. Tag="AudioPage" />
  920. <ui:NavigationViewItem
  921. Content="{locale:Locale SettingsTabNetwork}"
  922. Tag="NetworkPage"
  923. Icon="Globe" />
  924. <ui:NavigationViewItem
  925. Content="{locale:Locale SettingsTabLogging}"
  926. Tag="LoggingPage"
  927. Icon="Document" />
  928. </ui:NavigationView.MenuItems>
  929. </ui:NavigationView>
  930. <StackPanel
  931. Grid.Row="2"
  932. Margin="10"
  933. Spacing="10"
  934. Orientation="Horizontal"
  935. HorizontalAlignment="Right">
  936. <Button Content="{locale:Locale SettingsButtonSave}" Click="SaveButton_Clicked" />
  937. <Button Content="{locale:Locale SettingsButtonClose}" Click="CloseButton_Clicked" />
  938. <Button Content="{locale:Locale SettingsButtonApply}"
  939. Click="ApplyButton_Clicked" />
  940. </StackPanel>
  941. </Grid>
  942. </window:StyleableWindow>