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