SettingsWindow.axaml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  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,2,0"
  42. HorizontalAlignment="Stretch"
  43. VerticalAlignment="Stretch"
  44. HorizontalScrollBarVisibility="Disabled"
  45. VerticalScrollBarVisibility="Auto">
  46. <Border Classes="settings">
  47. <StackPanel
  48. Margin="10,5"
  49. HorizontalAlignment="Stretch"
  50. Orientation="Vertical"
  51. Spacing="10">
  52. <TextBlock Classes="h1" 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 Classes="h1" 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 Classes="h1" 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 Classes="settings">
  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 Classes="settings">
  202. <StackPanel Margin="10,5" Orientation="Vertical" Spacing="10">
  203. <TextBlock Classes="h1" 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 Classes="settings">
  269. <StackPanel
  270. Margin="10,5"
  271. HorizontalAlignment="Stretch"
  272. Orientation="Vertical"
  273. Spacing="10">
  274. <TextBlock Classes="h1" 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. MaxDropDownHeight="500"
  388. FilterMode="Contains"
  389. Items="{Binding TimeZones}"
  390. SelectionChanged="TimeZoneBox_OnSelectionChanged"
  391. Text="{Binding Path=TimeZone, Mode=OneWay}"
  392. TextChanged="TimeZoneBox_OnTextChanged"
  393. ValueMemberBinding="{ReflectionBinding TzMultiBinding}"
  394. ToolTip.Tip="{locale:Locale TimezoneTooltip}" />
  395. </StackPanel>
  396. <StackPanel Margin="0,0,0,10" Orientation="Horizontal">
  397. <TextBlock VerticalAlignment="Center"
  398. Text="{locale:Locale SettingsTabSystemSystemTime}"
  399. ToolTip.Tip="{locale:Locale TimeTooltip}"
  400. Width="250"/>
  401. <DatePicker VerticalAlignment="Center" SelectedDate="{Binding DateOffset}"
  402. ToolTip.Tip="{locale:Locale TimeTooltip}"
  403. Width="350" />
  404. </StackPanel>
  405. <StackPanel Margin="250,0,0,10" Orientation="Horizontal">
  406. <TimePicker
  407. VerticalAlignment="Center"
  408. ClockIdentifier="24HourClock"
  409. SelectedTime="{Binding TimeOffset}"
  410. Width="350"
  411. ToolTip.Tip="{locale:Locale TimeTooltip}" />
  412. </StackPanel>
  413. <CheckBox IsChecked="{Binding EnableVsync}">
  414. <TextBlock Text="{locale:Locale SettingsTabSystemEnableVsync}"
  415. ToolTip.Tip="{locale:Locale VSyncToggleTooltip}" />
  416. </CheckBox>
  417. <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}">
  418. <TextBlock Text="{locale:Locale SettingsTabSystemEnableFsIntegrityChecks}"
  419. ToolTip.Tip="{locale:Locale FsIntegrityToggleTooltip}" />
  420. </CheckBox>
  421. </StackPanel>
  422. <Separator Height="1" />
  423. <StackPanel Orientation="Horizontal">
  424. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabSystemHacks}" />
  425. <TextBlock Text="{locale:Locale SettingsTabSystemHacksNote}" />
  426. </StackPanel>
  427. <StackPanel
  428. Margin="10,0,0,0"
  429. HorizontalAlignment="Stretch"
  430. Orientation="Vertical">
  431. <CheckBox IsChecked="{Binding ExpandDramSize}"
  432. ToolTip.Tip="{locale:Locale DRamTooltip}">
  433. <TextBlock Text="{locale:Locale SettingsTabSystemExpandDramSize}" />
  434. </CheckBox>
  435. <CheckBox IsChecked="{Binding IgnoreMissingServices}"
  436. ToolTip.Tip="{locale:Locale IgnoreMissingServicesTooltip}">
  437. <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreMissingServices}" />
  438. </CheckBox>
  439. </StackPanel>
  440. </StackPanel>
  441. </Border>
  442. </ScrollViewer>
  443. <ScrollViewer
  444. Name="CpuPage"
  445. HorizontalAlignment="Stretch"
  446. VerticalAlignment="Stretch"
  447. HorizontalScrollBarVisibility="Disabled"
  448. VerticalScrollBarVisibility="Auto">
  449. <Border Classes="settings">
  450. <StackPanel
  451. Margin="10,5"
  452. HorizontalAlignment="Stretch"
  453. Orientation="Vertical"
  454. Spacing="10">
  455. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuCache}" />
  456. <StackPanel
  457. Margin="10,0,0,0"
  458. HorizontalAlignment="Stretch"
  459. Orientation="Vertical">
  460. <CheckBox IsChecked="{Binding EnablePptc}">
  461. <TextBlock Text="{locale:Locale SettingsTabSystemEnablePptc}"
  462. ToolTip.Tip="{locale:Locale PptcToggleTooltip}" />
  463. </CheckBox>
  464. </StackPanel>
  465. <Separator Height="1" />
  466. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuMemory}" />
  467. <StackPanel
  468. Margin="10,0,0,0"
  469. HorizontalAlignment="Stretch"
  470. Orientation="Vertical">
  471. <StackPanel Orientation="Horizontal">
  472. <TextBlock VerticalAlignment="Center"
  473. Text="{locale:Locale SettingsTabSystemMemoryManagerMode}"
  474. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  475. Width="250" />
  476. <ComboBox SelectedIndex="{Binding MemoryMode}"
  477. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  478. HorizontalContentAlignment="Left"
  479. Width="350">
  480. <ComboBoxItem
  481. ToolTip.Tip="{locale:Locale MemoryManagerSoftwareTooltip}">
  482. <TextBlock
  483. Text="{locale:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
  484. </ComboBoxItem>
  485. <ComboBoxItem
  486. ToolTip.Tip="{locale:Locale MemoryManagerHostTooltip}">
  487. <TextBlock Text="{locale:Locale SettingsTabSystemMemoryManagerModeHost}" />
  488. </ComboBoxItem>
  489. <ComboBoxItem
  490. ToolTip.Tip="{locale:Locale MemoryManagerUnsafeTooltip}">
  491. <TextBlock
  492. Text="{locale:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
  493. </ComboBoxItem>
  494. </ComboBox>
  495. </StackPanel>
  496. </StackPanel>
  497. </StackPanel>
  498. </Border>
  499. </ScrollViewer>
  500. <ScrollViewer
  501. Name="GraphicsPage"
  502. HorizontalAlignment="Stretch"
  503. VerticalAlignment="Stretch"
  504. HorizontalScrollBarVisibility="Disabled"
  505. VerticalScrollBarVisibility="Auto">
  506. <Border Classes="settings">
  507. <StackPanel
  508. Margin="10,5"
  509. HorizontalAlignment="Stretch"
  510. Orientation="Vertical"
  511. Spacing="10">
  512. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsAPI}" />
  513. <StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
  514. <StackPanel Orientation="Horizontal">
  515. <TextBlock VerticalAlignment="Center"
  516. ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
  517. Text="{locale:Locale SettingsTabGraphicsBackend}"
  518. Width="250" />
  519. <ComboBox Width="350"
  520. HorizontalContentAlignment="Left"
  521. ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
  522. SelectedIndex="{Binding GraphicsBackendIndex}">
  523. <ComboBoxItem IsVisible="{Binding IsVulkanAvailable}">
  524. <TextBlock Text="Vulkan" />
  525. </ComboBoxItem>
  526. <ComboBoxItem>
  527. <TextBlock Text="OpenGL" />
  528. </ComboBoxItem>
  529. </ComboBox>
  530. </StackPanel>
  531. <StackPanel Orientation="Horizontal" IsVisible="{Binding IsVulkanSelected}">
  532. <TextBlock VerticalAlignment="Center"
  533. ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
  534. Text="{locale:Locale SettingsTabGraphicsPreferredGpu}"
  535. Width="250" />
  536. <ComboBox Width="350"
  537. HorizontalContentAlignment="Left"
  538. ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
  539. SelectedIndex="{Binding PreferredGpuIndex}"
  540. Items="{Binding AvailableGpus}"/>
  541. </StackPanel>
  542. </StackPanel>
  543. <Separator Height="1" />
  544. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsFeatures}" />
  545. <StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
  546. <StackPanel Orientation="Vertical">
  547. <CheckBox IsChecked="{Binding EnableShaderCache}"
  548. ToolTip.Tip="{locale:Locale ShaderCacheToggleTooltip}">
  549. <TextBlock Text="{locale:Locale SettingsTabGraphicsEnableShaderCache}" />
  550. </CheckBox>
  551. <CheckBox IsChecked="{Binding EnableTextureRecompression}"
  552. ToolTip.Tip="{locale:Locale SettingsEnableTextureRecompressionTooltip}">
  553. <TextBlock Text="{locale:Locale SettingsEnableTextureRecompression}" />
  554. </CheckBox>
  555. </StackPanel>
  556. <StackPanel Orientation="Horizontal">
  557. <TextBlock VerticalAlignment="Center"
  558. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}"
  559. Text="{locale:Locale SettingsTabGraphicsResolutionScale}"
  560. Width="250" />
  561. <ComboBox SelectedIndex="{Binding ResolutionScale}"
  562. Width="350"
  563. HorizontalContentAlignment="Left"
  564. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}">
  565. <ComboBoxItem>
  566. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleCustom}" />
  567. </ComboBoxItem>
  568. <ComboBoxItem>
  569. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleNative}" />
  570. </ComboBoxItem>
  571. <ComboBoxItem>
  572. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale2x}" />
  573. </ComboBoxItem>
  574. <ComboBoxItem>
  575. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale3x}" />
  576. </ComboBoxItem>
  577. <ComboBoxItem>
  578. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale4x}" />
  579. </ComboBoxItem>
  580. </ComboBox>
  581. <ui:NumberBox
  582. Margin="10,0,0,0"
  583. ToolTip.Tip="{locale:Locale ResolutionScaleEntryTooltip}"
  584. MinWidth="150"
  585. SmallChange="0.1"
  586. LargeChange="1"
  587. SimpleNumberFormat="F2"
  588. SpinButtonPlacementMode="Inline"
  589. IsVisible="{Binding IsCustomResolutionScaleActive}"
  590. Maximum="100"
  591. Minimum="0.1"
  592. Value="{Binding CustomResolutionScale}" />
  593. </StackPanel>
  594. <StackPanel Orientation="Horizontal">
  595. <TextBlock VerticalAlignment="Center"
  596. ToolTip.Tip="{locale:Locale AnisotropyTooltip}"
  597. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering}"
  598. Width="250" />
  599. <ComboBox SelectedIndex="{Binding MaxAnisotropy}"
  600. Width="350"
  601. HorizontalContentAlignment="Left"
  602. ToolTip.Tip="{locale:Locale AnisotropyTooltip}">
  603. <ComboBoxItem>
  604. <TextBlock
  605. Text="{locale:Locale SettingsTabGraphicsAnisotropicFilteringAuto}" />
  606. </ComboBoxItem>
  607. <ComboBoxItem>
  608. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering2x}" />
  609. </ComboBoxItem>
  610. <ComboBoxItem>
  611. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering4x}" />
  612. </ComboBoxItem>
  613. <ComboBoxItem>
  614. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering8x}" />
  615. </ComboBoxItem>
  616. <ComboBoxItem>
  617. <TextBlock
  618. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering16x}" />
  619. </ComboBoxItem>
  620. </ComboBox>
  621. </StackPanel>
  622. <StackPanel Orientation="Horizontal">
  623. <TextBlock VerticalAlignment="Center"
  624. ToolTip.Tip="{locale:Locale AspectRatioTooltip}"
  625. Text="{locale:Locale SettingsTabGraphicsAspectRatio}"
  626. Width="250" />
  627. <ComboBox SelectedIndex="{Binding AspectRatio}"
  628. Width="350"
  629. HorizontalContentAlignment="Left"
  630. ToolTip.Tip="{locale:Locale AspectRatioTooltip}">
  631. <ComboBoxItem>
  632. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio4x3}" />
  633. </ComboBoxItem>
  634. <ComboBoxItem>
  635. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x9}" />
  636. </ComboBoxItem>
  637. <ComboBoxItem>
  638. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x10}" />
  639. </ComboBoxItem>
  640. <ComboBoxItem>
  641. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio21x9}" />
  642. </ComboBoxItem>
  643. <ComboBoxItem>
  644. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio32x9}" />
  645. </ComboBoxItem>
  646. <ComboBoxItem>
  647. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatioStretch}" />
  648. </ComboBoxItem>
  649. </ComboBox>
  650. </StackPanel>
  651. </StackPanel>
  652. <StackPanel
  653. Margin="10,0,0,0"
  654. HorizontalAlignment="Stretch"
  655. Orientation="Vertical"
  656. Spacing="10">
  657. <StackPanel Orientation="Horizontal">
  658. <TextBlock VerticalAlignment="Center"
  659. ToolTip.Tip="{locale:Locale GraphicsBackendThreadingTooltip}"
  660. Text="{locale:Locale SettingsTabGraphicsBackendMultithreading}"
  661. Width="250" />
  662. <ComboBox Width="350"
  663. HorizontalContentAlignment="Left"
  664. ToolTip.Tip="{locale:Locale GalThreadingTooltip}"
  665. SelectedIndex="{Binding GraphicsBackendMultithreadingIndex}">
  666. <ComboBoxItem>
  667. <TextBlock Text="{locale:Locale CommonAuto}" />
  668. </ComboBoxItem>
  669. <ComboBoxItem>
  670. <TextBlock Text="{locale:Locale CommonOff}" />
  671. </ComboBoxItem>
  672. <ComboBoxItem>
  673. <TextBlock Text="{locale:Locale CommonOn}" />
  674. </ComboBoxItem>
  675. </ComboBox>
  676. </StackPanel>
  677. </StackPanel>
  678. <Separator Height="1" />
  679. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsDeveloperOptions}" />
  680. <StackPanel
  681. Margin="10,0,0,0"
  682. HorizontalAlignment="Stretch"
  683. Orientation="Vertical"
  684. Spacing="10">
  685. <StackPanel Orientation="Horizontal">
  686. <TextBlock VerticalAlignment="Center"
  687. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}"
  688. Text="{locale:Locale SettingsTabGraphicsShaderDumpPath}"
  689. Width="250" />
  690. <TextBox Text="{Binding ShaderDumpPath}"
  691. Width="350"
  692. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}" />
  693. </StackPanel>
  694. </StackPanel>
  695. </StackPanel>
  696. </Border>
  697. </ScrollViewer>
  698. <ScrollViewer
  699. Name="AudioPage"
  700. HorizontalAlignment="Stretch"
  701. VerticalAlignment="Stretch"
  702. HorizontalScrollBarVisibility="Disabled"
  703. VerticalScrollBarVisibility="Auto">
  704. <Border Classes="settings">
  705. <StackPanel
  706. Margin="10,5"
  707. HorizontalAlignment="Stretch"
  708. Orientation="Vertical"
  709. Spacing="10">
  710. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabAudio}" />
  711. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  712. <TextBlock VerticalAlignment="Center"
  713. Text="{locale:Locale SettingsTabSystemAudioBackend}"
  714. ToolTip.Tip="{locale:Locale AudioBackendTooltip}"
  715. Width="250" />
  716. <ComboBox SelectedIndex="{Binding AudioBackend}"
  717. Width="350"
  718. HorizontalContentAlignment="Left">
  719. <ComboBoxItem>
  720. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendDummy}" />
  721. </ComboBoxItem>
  722. <ComboBoxItem IsEnabled="{Binding IsOpenAlEnabled}">
  723. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendOpenAL}" />
  724. </ComboBoxItem>
  725. <ComboBoxItem IsEnabled="{Binding IsSoundIoEnabled}">
  726. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSoundIO}" />
  727. </ComboBoxItem>
  728. <ComboBoxItem IsEnabled="{Binding IsSDL2Enabled}">
  729. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSDL2}" />
  730. </ComboBoxItem>
  731. </ComboBox>
  732. </StackPanel>
  733. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  734. <TextBlock VerticalAlignment="Center"
  735. Text="{locale:Locale SettingsTabSystemAudioVolume}"
  736. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  737. Width="250" />
  738. <ui:NumberBox Value="{Binding Volume}"
  739. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  740. Width="350"
  741. SmallChange="1"
  742. LargeChange="10"
  743. SimpleNumberFormat="F0"
  744. SpinButtonPlacementMode="Inline"
  745. Minimum="0"
  746. Maximum="100" />
  747. </StackPanel>
  748. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  749. <Slider Value="{Binding Volume}"
  750. Margin="250,0,0,0"
  751. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  752. Minimum="0"
  753. Maximum="100"
  754. SmallChange="5"
  755. TickFrequency="5"
  756. IsSnapToTickEnabled="True"
  757. LargeChange="10"
  758. Width="350" />
  759. </StackPanel>
  760. </StackPanel>
  761. </Border>
  762. </ScrollViewer>
  763. <ScrollViewer
  764. Name="NetworkPage"
  765. HorizontalAlignment="Stretch"
  766. VerticalAlignment="Stretch"
  767. HorizontalScrollBarVisibility="Disabled"
  768. VerticalScrollBarVisibility="Auto">
  769. <Border Classes="settings">
  770. <StackPanel
  771. Margin="10,5"
  772. HorizontalAlignment="Stretch"
  773. Orientation="Vertical"
  774. Spacing="10">
  775. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabNetworkConnection}" />
  776. <CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableInternetAccess}">
  777. <TextBlock Text="{locale:Locale SettingsTabSystemEnableInternetAccess}"
  778. ToolTip.Tip="{locale:Locale EnableInternetAccessTooltip}" />
  779. </CheckBox>
  780. </StackPanel>
  781. </Border>
  782. </ScrollViewer>
  783. <ScrollViewer
  784. Name="LoggingPage"
  785. HorizontalAlignment="Stretch"
  786. VerticalAlignment="Stretch"
  787. HorizontalScrollBarVisibility="Disabled"
  788. VerticalScrollBarVisibility="Auto">
  789. <Border Classes="settings">
  790. <StackPanel
  791. Margin="10,5"
  792. HorizontalAlignment="Stretch"
  793. Orientation="Vertical"
  794. Spacing="10">
  795. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabLoggingLogging}" />
  796. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  797. <CheckBox IsChecked="{Binding EnableFileLog}"
  798. ToolTip.Tip="{locale:Locale FileLogTooltip}">
  799. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableLoggingToFile}" />
  800. </CheckBox>
  801. <CheckBox IsChecked="{Binding EnableStub}"
  802. ToolTip.Tip="{locale:Locale StubLogTooltip}">
  803. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableStubLogs}" />
  804. </CheckBox>
  805. <CheckBox IsChecked="{Binding EnableInfo}"
  806. ToolTip.Tip="{locale:Locale InfoLogTooltip}">
  807. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableInfoLogs}" />
  808. </CheckBox>
  809. <CheckBox IsChecked="{Binding EnableWarn}"
  810. ToolTip.Tip="{locale:Locale WarnLogTooltip}">
  811. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableWarningLogs}" />
  812. </CheckBox>
  813. <CheckBox IsChecked="{Binding EnableError}"
  814. ToolTip.Tip="{locale:Locale ErrorLogTooltip}">
  815. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableErrorLogs}" />
  816. </CheckBox>
  817. <CheckBox IsChecked="{Binding EnableTrace}"
  818. ToolTip.Tip="{locale:Locale TraceLogTooltip}">
  819. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableTraceLogs}" />
  820. </CheckBox>
  821. <CheckBox IsChecked="{Binding EnableGuest}"
  822. ToolTip.Tip="{locale:Locale GuestLogTooltip}">
  823. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableGuestLogs}" />
  824. </CheckBox>
  825. </StackPanel>
  826. <Separator Height="1" />
  827. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabLoggingDeveloperOptions}" />
  828. <StackPanel
  829. Margin="10,0,0,0"
  830. HorizontalAlignment="Stretch"
  831. Orientation="Vertical"
  832. Spacing="10">
  833. <StackPanel Orientation="Vertical">
  834. <CheckBox IsChecked="{Binding EnableDebug}"
  835. ToolTip.Tip="{locale:Locale DebugLogTooltip}">
  836. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableDebugLogs}" />
  837. </CheckBox>
  838. <CheckBox IsChecked="{Binding EnableFsAccessLog}"
  839. ToolTip.Tip="{locale:Locale FileAccessLogTooltip}">
  840. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableFsAccessLogs}" />
  841. </CheckBox>
  842. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Stretch">
  843. <TextBlock VerticalAlignment="Center"
  844. ToolTip.Tip="{locale:Locale FSAccessLogModeTooltip}"
  845. Text="{locale:Locale SettingsTabLoggingFsGlobalAccessLogMode}"
  846. Width="285" />
  847. <ui:NumberBox
  848. Maximum="3"
  849. Minimum="0"
  850. Width="150"
  851. SpinButtonPlacementMode="Inline"
  852. SmallChange="1"
  853. LargeChange="1"
  854. Value="{Binding FsGlobalAccessLogMode}" />
  855. </StackPanel>
  856. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  857. <TextBlock VerticalAlignment="Center"
  858. Text="{locale:Locale SettingsTabLoggingOpenglLogLevel}"
  859. ToolTip.Tip="{locale:Locale OpenGlLogLevel}"
  860. Width="285" />
  861. <ComboBox SelectedIndex="{Binding OpenglDebugLevel}"
  862. Width="150"
  863. HorizontalContentAlignment="Left"
  864. ToolTip.Tip="{locale:Locale OpenGlLogLevel}">
  865. <ComboBoxItem>
  866. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelNone}" />
  867. </ComboBoxItem>
  868. <ComboBoxItem>
  869. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelError}" />
  870. </ComboBoxItem>
  871. <ComboBoxItem>
  872. <TextBlock
  873. Text="{locale:Locale SettingsTabLoggingOpenglLogLevelPerformance}" />
  874. </ComboBoxItem>
  875. <ComboBoxItem>
  876. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelAll}" />
  877. </ComboBoxItem>
  878. </ComboBox>
  879. </StackPanel>
  880. </StackPanel>
  881. </StackPanel>
  882. </StackPanel>
  883. </Border>
  884. </ScrollViewer>
  885. </Grid>
  886. <ui:NavigationView Grid.Row="1"
  887. IsSettingsVisible="False"
  888. Name="NavPanel"
  889. IsBackEnabled="False"
  890. PaneDisplayMode="Left"
  891. Margin="2,10,10,0"
  892. VerticalAlignment="Stretch"
  893. HorizontalAlignment="Stretch"
  894. OpenPaneLength="200">
  895. <ui:NavigationView.MenuItems>
  896. <ui:NavigationViewItem IsSelected="True"
  897. Content="{locale:Locale SettingsTabGeneral}"
  898. Tag="UiPage"
  899. Icon="New" />
  900. <ui:NavigationViewItem
  901. Content="{locale:Locale SettingsTabInput}"
  902. Tag="InputPage"
  903. Icon="Games" />
  904. <ui:NavigationViewItem
  905. Content="{locale:Locale SettingsTabHotkeys}"
  906. Tag="HotkeysPage"
  907. Icon="Keyboard" />
  908. <ui:NavigationViewItem
  909. Content="{locale:Locale SettingsTabSystem}"
  910. Tag="SystemPage"
  911. Icon="Settings" />
  912. <ui:NavigationViewItem
  913. Content="{locale:Locale SettingsTabCpu}"
  914. Tag="CpuPage">
  915. <ui:NavigationViewItem.Icon>
  916. <ui:FontIcon FontFamily="avares://Ryujinx.Ava/Assets/Fonts#Segoe Fluent Icons"
  917. Glyph="{controls:GlyphValueConverter Chip}" />
  918. </ui:NavigationViewItem.Icon>
  919. </ui:NavigationViewItem>
  920. <ui:NavigationViewItem
  921. Content="{locale:Locale SettingsTabGraphics}"
  922. Tag="GraphicsPage"
  923. Icon="Image" />
  924. <ui:NavigationViewItem
  925. Content="{locale:Locale SettingsTabAudio}"
  926. Icon="Audio"
  927. Tag="AudioPage" />
  928. <ui:NavigationViewItem
  929. Content="{locale:Locale SettingsTabNetwork}"
  930. Tag="NetworkPage"
  931. Icon="Globe" />
  932. <ui:NavigationViewItem
  933. Content="{locale:Locale SettingsTabLogging}"
  934. Tag="LoggingPage"
  935. Icon="Document" />
  936. </ui:NavigationView.MenuItems>
  937. </ui:NavigationView>
  938. <StackPanel
  939. Grid.Row="2"
  940. Margin="10"
  941. Spacing="10"
  942. Orientation="Horizontal"
  943. HorizontalAlignment="Right">
  944. <Button Content="{locale:Locale SettingsButtonSave}" Click="SaveButton_Clicked" />
  945. <Button Content="{locale:Locale SettingsButtonClose}" Click="CloseButton_Clicked" />
  946. <Button Content="{locale:Locale SettingsButtonApply}"
  947. Click="ApplyButton_Clicked" />
  948. </StackPanel>
  949. </Grid>
  950. </window:StyleableWindow>