SettingsWindow.axaml 61 KB

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