SettingsWindow.axaml 56 KB

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