SettingsWindow.axaml 60 KB

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