SettingsWindow.axaml 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  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="250"
  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. <CheckBox IsChecked="{Binding EnableMacroHLE}"
  572. ToolTip.Tip="{locale:Locale SettingsEnableMacroHLETooltip}">
  573. <TextBlock Text="{locale:Locale SettingsEnableMacroHLE}" />
  574. </CheckBox>
  575. </StackPanel>
  576. <StackPanel Orientation="Horizontal">
  577. <TextBlock VerticalAlignment="Center"
  578. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}"
  579. Text="{locale:Locale SettingsTabGraphicsResolutionScale}"
  580. Width="250" />
  581. <ComboBox SelectedIndex="{Binding ResolutionScale}"
  582. Width="350"
  583. HorizontalContentAlignment="Left"
  584. ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}">
  585. <ComboBoxItem>
  586. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleCustom}" />
  587. </ComboBoxItem>
  588. <ComboBoxItem>
  589. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleNative}" />
  590. </ComboBoxItem>
  591. <ComboBoxItem>
  592. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale2x}" />
  593. </ComboBoxItem>
  594. <ComboBoxItem>
  595. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale3x}" />
  596. </ComboBoxItem>
  597. <ComboBoxItem>
  598. <TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale4x}" />
  599. </ComboBoxItem>
  600. </ComboBox>
  601. <ui:NumberBox
  602. Margin="10,0,0,0"
  603. ToolTip.Tip="{locale:Locale ResolutionScaleEntryTooltip}"
  604. MinWidth="150"
  605. SmallChange="0.1"
  606. LargeChange="1"
  607. SimpleNumberFormat="F2"
  608. SpinButtonPlacementMode="Inline"
  609. IsVisible="{Binding IsCustomResolutionScaleActive}"
  610. Maximum="100"
  611. Minimum="0.1"
  612. Value="{Binding CustomResolutionScale}" />
  613. </StackPanel>
  614. <StackPanel Orientation="Horizontal">
  615. <TextBlock VerticalAlignment="Center"
  616. ToolTip.Tip="{locale:Locale AnisotropyTooltip}"
  617. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering}"
  618. Width="250" />
  619. <ComboBox SelectedIndex="{Binding MaxAnisotropy}"
  620. Width="350"
  621. HorizontalContentAlignment="Left"
  622. ToolTip.Tip="{locale:Locale AnisotropyTooltip}">
  623. <ComboBoxItem>
  624. <TextBlock
  625. Text="{locale:Locale SettingsTabGraphicsAnisotropicFilteringAuto}" />
  626. </ComboBoxItem>
  627. <ComboBoxItem>
  628. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering2x}" />
  629. </ComboBoxItem>
  630. <ComboBoxItem>
  631. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering4x}" />
  632. </ComboBoxItem>
  633. <ComboBoxItem>
  634. <TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering8x}" />
  635. </ComboBoxItem>
  636. <ComboBoxItem>
  637. <TextBlock
  638. Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering16x}" />
  639. </ComboBoxItem>
  640. </ComboBox>
  641. </StackPanel>
  642. <StackPanel Orientation="Horizontal">
  643. <TextBlock VerticalAlignment="Center"
  644. ToolTip.Tip="{locale:Locale AspectRatioTooltip}"
  645. Text="{locale:Locale SettingsTabGraphicsAspectRatio}"
  646. Width="250" />
  647. <ComboBox SelectedIndex="{Binding AspectRatio}"
  648. Width="350"
  649. HorizontalContentAlignment="Left"
  650. ToolTip.Tip="{locale:Locale AspectRatioTooltip}">
  651. <ComboBoxItem>
  652. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio4x3}" />
  653. </ComboBoxItem>
  654. <ComboBoxItem>
  655. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x9}" />
  656. </ComboBoxItem>
  657. <ComboBoxItem>
  658. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x10}" />
  659. </ComboBoxItem>
  660. <ComboBoxItem>
  661. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio21x9}" />
  662. </ComboBoxItem>
  663. <ComboBoxItem>
  664. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio32x9}" />
  665. </ComboBoxItem>
  666. <ComboBoxItem>
  667. <TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatioStretch}" />
  668. </ComboBoxItem>
  669. </ComboBox>
  670. </StackPanel>
  671. </StackPanel>
  672. <StackPanel
  673. Margin="10,0,0,0"
  674. HorizontalAlignment="Stretch"
  675. Orientation="Vertical"
  676. Spacing="10">
  677. <StackPanel Orientation="Horizontal">
  678. <TextBlock VerticalAlignment="Center"
  679. ToolTip.Tip="{locale:Locale GraphicsBackendThreadingTooltip}"
  680. Text="{locale:Locale SettingsTabGraphicsBackendMultithreading}"
  681. Width="250" />
  682. <ComboBox Width="350"
  683. HorizontalContentAlignment="Left"
  684. ToolTip.Tip="{locale:Locale GalThreadingTooltip}"
  685. SelectedIndex="{Binding GraphicsBackendMultithreadingIndex}">
  686. <ComboBoxItem>
  687. <TextBlock Text="{locale:Locale CommonAuto}" />
  688. </ComboBoxItem>
  689. <ComboBoxItem>
  690. <TextBlock Text="{locale:Locale CommonOff}" />
  691. </ComboBoxItem>
  692. <ComboBoxItem>
  693. <TextBlock Text="{locale:Locale CommonOn}" />
  694. </ComboBoxItem>
  695. </ComboBox>
  696. </StackPanel>
  697. </StackPanel>
  698. <Separator Height="1" />
  699. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsDeveloperOptions}" />
  700. <StackPanel
  701. Margin="10,0,0,0"
  702. HorizontalAlignment="Stretch"
  703. Orientation="Vertical"
  704. Spacing="10">
  705. <StackPanel Orientation="Horizontal">
  706. <TextBlock VerticalAlignment="Center"
  707. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}"
  708. Text="{locale:Locale SettingsTabGraphicsShaderDumpPath}"
  709. Width="250" />
  710. <TextBox Text="{Binding ShaderDumpPath}"
  711. Width="350"
  712. ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}" />
  713. </StackPanel>
  714. </StackPanel>
  715. </StackPanel>
  716. </Border>
  717. </ScrollViewer>
  718. <ScrollViewer
  719. Name="AudioPage"
  720. HorizontalAlignment="Stretch"
  721. VerticalAlignment="Stretch"
  722. HorizontalScrollBarVisibility="Disabled"
  723. VerticalScrollBarVisibility="Auto">
  724. <Border Classes="settings">
  725. <StackPanel
  726. Margin="10,5"
  727. HorizontalAlignment="Stretch"
  728. Orientation="Vertical"
  729. Spacing="10">
  730. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabAudio}" />
  731. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  732. <TextBlock VerticalAlignment="Center"
  733. Text="{locale:Locale SettingsTabSystemAudioBackend}"
  734. ToolTip.Tip="{locale:Locale AudioBackendTooltip}"
  735. Width="250" />
  736. <ComboBox SelectedIndex="{Binding AudioBackend}"
  737. Width="350"
  738. HorizontalContentAlignment="Left">
  739. <ComboBoxItem>
  740. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendDummy}" />
  741. </ComboBoxItem>
  742. <ComboBoxItem IsEnabled="{Binding IsOpenAlEnabled}">
  743. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendOpenAL}" />
  744. </ComboBoxItem>
  745. <ComboBoxItem IsEnabled="{Binding IsSoundIoEnabled}">
  746. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSoundIO}" />
  747. </ComboBoxItem>
  748. <ComboBoxItem IsEnabled="{Binding IsSDL2Enabled}">
  749. <TextBlock Text="{locale:Locale SettingsTabSystemAudioBackendSDL2}" />
  750. </ComboBoxItem>
  751. </ComboBox>
  752. </StackPanel>
  753. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  754. <TextBlock VerticalAlignment="Center"
  755. Text="{locale:Locale SettingsTabSystemAudioVolume}"
  756. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  757. Width="250" />
  758. <ui:NumberBox Value="{Binding Volume}"
  759. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  760. Width="350"
  761. SmallChange="1"
  762. LargeChange="10"
  763. SimpleNumberFormat="F0"
  764. SpinButtonPlacementMode="Inline"
  765. Minimum="0"
  766. Maximum="100" />
  767. </StackPanel>
  768. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  769. <Slider Value="{Binding Volume}"
  770. Margin="250,0,0,0"
  771. ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
  772. Minimum="0"
  773. Maximum="100"
  774. SmallChange="5"
  775. TickFrequency="5"
  776. IsSnapToTickEnabled="True"
  777. LargeChange="10"
  778. Width="350" />
  779. </StackPanel>
  780. </StackPanel>
  781. </Border>
  782. </ScrollViewer>
  783. <ScrollViewer
  784. Name="NetworkPage"
  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 SettingsTabNetworkConnection}" />
  796. <CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableInternetAccess}">
  797. <TextBlock Text="{locale:Locale SettingsTabSystemEnableInternetAccess}"
  798. ToolTip.Tip="{locale:Locale EnableInternetAccessTooltip}" />
  799. </CheckBox>
  800. </StackPanel>
  801. </Border>
  802. </ScrollViewer>
  803. <ScrollViewer
  804. Name="LoggingPage"
  805. HorizontalAlignment="Stretch"
  806. VerticalAlignment="Stretch"
  807. HorizontalScrollBarVisibility="Disabled"
  808. VerticalScrollBarVisibility="Auto">
  809. <Border Classes="settings">
  810. <StackPanel
  811. Margin="10,5"
  812. HorizontalAlignment="Stretch"
  813. Orientation="Vertical"
  814. Spacing="10">
  815. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabLoggingLogging}" />
  816. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  817. <CheckBox IsChecked="{Binding EnableFileLog}"
  818. ToolTip.Tip="{locale:Locale FileLogTooltip}">
  819. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableLoggingToFile}" />
  820. </CheckBox>
  821. <CheckBox IsChecked="{Binding EnableStub}"
  822. ToolTip.Tip="{locale:Locale StubLogTooltip}">
  823. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableStubLogs}" />
  824. </CheckBox>
  825. <CheckBox IsChecked="{Binding EnableInfo}"
  826. ToolTip.Tip="{locale:Locale InfoLogTooltip}">
  827. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableInfoLogs}" />
  828. </CheckBox>
  829. <CheckBox IsChecked="{Binding EnableWarn}"
  830. ToolTip.Tip="{locale:Locale WarnLogTooltip}">
  831. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableWarningLogs}" />
  832. </CheckBox>
  833. <CheckBox IsChecked="{Binding EnableError}"
  834. ToolTip.Tip="{locale:Locale ErrorLogTooltip}">
  835. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableErrorLogs}" />
  836. </CheckBox>
  837. <CheckBox IsChecked="{Binding EnableTrace}"
  838. ToolTip.Tip="{locale:Locale TraceLogTooltip}">
  839. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableTraceLogs}" />
  840. </CheckBox>
  841. <CheckBox IsChecked="{Binding EnableGuest}"
  842. ToolTip.Tip="{locale:Locale GuestLogTooltip}">
  843. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableGuestLogs}" />
  844. </CheckBox>
  845. </StackPanel>
  846. <Separator Height="1" />
  847. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabLoggingDeveloperOptions}" />
  848. <StackPanel
  849. Margin="10,0,0,0"
  850. HorizontalAlignment="Stretch"
  851. Orientation="Vertical"
  852. Spacing="10">
  853. <StackPanel Orientation="Vertical">
  854. <CheckBox IsChecked="{Binding EnableDebug}"
  855. ToolTip.Tip="{locale:Locale DebugLogTooltip}">
  856. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableDebugLogs}" />
  857. </CheckBox>
  858. <CheckBox IsChecked="{Binding EnableFsAccessLog}"
  859. ToolTip.Tip="{locale:Locale FileAccessLogTooltip}">
  860. <TextBlock Text="{locale:Locale SettingsTabLoggingEnableFsAccessLogs}" />
  861. </CheckBox>
  862. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Stretch">
  863. <TextBlock VerticalAlignment="Center"
  864. ToolTip.Tip="{locale:Locale FSAccessLogModeTooltip}"
  865. Text="{locale:Locale SettingsTabLoggingFsGlobalAccessLogMode}"
  866. Width="285" />
  867. <ui:NumberBox
  868. Maximum="3"
  869. Minimum="0"
  870. Width="150"
  871. SpinButtonPlacementMode="Inline"
  872. SmallChange="1"
  873. LargeChange="1"
  874. Value="{Binding FsGlobalAccessLogMode}" />
  875. </StackPanel>
  876. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  877. <TextBlock VerticalAlignment="Center"
  878. Text="{locale:Locale SettingsTabLoggingOpenglLogLevel}"
  879. ToolTip.Tip="{locale:Locale OpenGlLogLevel}"
  880. Width="285" />
  881. <ComboBox SelectedIndex="{Binding OpenglDebugLevel}"
  882. Width="150"
  883. HorizontalContentAlignment="Left"
  884. ToolTip.Tip="{locale:Locale OpenGlLogLevel}">
  885. <ComboBoxItem>
  886. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelNone}" />
  887. </ComboBoxItem>
  888. <ComboBoxItem>
  889. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelError}" />
  890. </ComboBoxItem>
  891. <ComboBoxItem>
  892. <TextBlock
  893. Text="{locale:Locale SettingsTabLoggingOpenglLogLevelPerformance}" />
  894. </ComboBoxItem>
  895. <ComboBoxItem>
  896. <TextBlock Text="{locale:Locale SettingsTabLoggingOpenglLogLevelAll}" />
  897. </ComboBoxItem>
  898. </ComboBox>
  899. </StackPanel>
  900. </StackPanel>
  901. </StackPanel>
  902. </StackPanel>
  903. </Border>
  904. </ScrollViewer>
  905. </Grid>
  906. <ui:NavigationView Grid.Row="1"
  907. IsSettingsVisible="False"
  908. Name="NavPanel"
  909. IsBackEnabled="False"
  910. PaneDisplayMode="Left"
  911. Margin="2,10,10,0"
  912. VerticalAlignment="Stretch"
  913. HorizontalAlignment="Stretch"
  914. OpenPaneLength="200">
  915. <ui:NavigationView.MenuItems>
  916. <ui:NavigationViewItem IsSelected="True"
  917. Content="{locale:Locale SettingsTabGeneral}"
  918. Tag="UiPage"
  919. Icon="New" />
  920. <ui:NavigationViewItem
  921. Content="{locale:Locale SettingsTabInput}"
  922. Tag="InputPage"
  923. Icon="Games" />
  924. <ui:NavigationViewItem
  925. Content="{locale:Locale SettingsTabHotkeys}"
  926. Tag="HotkeysPage"
  927. Icon="Keyboard" />
  928. <ui:NavigationViewItem
  929. Content="{locale:Locale SettingsTabSystem}"
  930. Tag="SystemPage"
  931. Icon="Settings" />
  932. <ui:NavigationViewItem
  933. Content="{locale:Locale SettingsTabCpu}"
  934. Tag="CpuPage">
  935. <ui:NavigationViewItem.Icon>
  936. <ui:FontIcon FontFamily="avares://Ryujinx.Ava/Assets/Fonts#Segoe Fluent Icons"
  937. Glyph="{controls:GlyphValueConverter Chip}" />
  938. </ui:NavigationViewItem.Icon>
  939. </ui:NavigationViewItem>
  940. <ui:NavigationViewItem
  941. Content="{locale:Locale SettingsTabGraphics}"
  942. Tag="GraphicsPage"
  943. Icon="Image" />
  944. <ui:NavigationViewItem
  945. Content="{locale:Locale SettingsTabAudio}"
  946. Icon="Audio"
  947. Tag="AudioPage" />
  948. <ui:NavigationViewItem
  949. Content="{locale:Locale SettingsTabNetwork}"
  950. Tag="NetworkPage"
  951. Icon="Globe" />
  952. <ui:NavigationViewItem
  953. Content="{locale:Locale SettingsTabLogging}"
  954. Tag="LoggingPage"
  955. Icon="Document" />
  956. </ui:NavigationView.MenuItems>
  957. </ui:NavigationView>
  958. <StackPanel
  959. Grid.Row="2"
  960. Margin="10"
  961. Spacing="10"
  962. Orientation="Horizontal"
  963. HorizontalAlignment="Right">
  964. <Button Content="{locale:Locale SettingsButtonSave}" Click="SaveButton_Clicked" />
  965. <Button Content="{locale:Locale SettingsButtonClose}" Click="CloseButton_Clicked" />
  966. <Button Content="{locale:Locale SettingsButtonApply}"
  967. Click="ApplyButton_Clicked" />
  968. </StackPanel>
  969. </Grid>
  970. </window:StyleableWindow>