SettingsSystemView.axaml
1 <UserControl 2 x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsSystemView" 3 xmlns="https://github.com/avaloniaui" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 6 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 7 xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale" 8 xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels" 9 xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers" 10 mc:Ignorable="d" 11 x:DataType="viewModels:SettingsViewModel"> 12 <UserControl.Resources> 13 <helpers:TimeZoneConverter x:Key="TimeZone" /> 14 </UserControl.Resources> 15 <Design.DataContext> 16 <viewModels:SettingsViewModel /> 17 </Design.DataContext> 18 <ScrollViewer 19 Name="SystemPage" 20 HorizontalAlignment="Stretch" 21 VerticalAlignment="Stretch" 22 HorizontalScrollBarVisibility="Disabled" 23 VerticalScrollBarVisibility="Auto"> 24 <Border Classes="settings"> 25 <StackPanel 26 Margin="10" 27 HorizontalAlignment="Stretch" 28 Orientation="Vertical" 29 Spacing="10"> 30 <TextBlock 31 Classes="h1" 32 Text="{locale:Locale SettingsTabSystemCore}" /> 33 <StackPanel 34 Margin="10,0,0,0" 35 Orientation="Vertical"> 36 <StackPanel 37 Margin="0,0,0,10" 38 Orientation="Horizontal"> 39 <TextBlock 40 VerticalAlignment="Center" 41 Text="{locale:Locale SettingsTabSystemSystemRegion}" 42 Width="250" /> 43 <ComboBox 44 SelectedIndex="{Binding Region}" 45 ToolTip.Tip="{locale:Locale RegionTooltip}" 46 HorizontalContentAlignment="Left" 47 Width="350"> 48 <ComboBoxItem> 49 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionJapan}" /> 50 </ComboBoxItem> 51 <ComboBoxItem> 52 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionUSA}" /> 53 </ComboBoxItem> 54 <ComboBoxItem> 55 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionEurope}" /> 56 </ComboBoxItem> 57 <ComboBoxItem> 58 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionAustralia}" /> 59 </ComboBoxItem> 60 <ComboBoxItem> 61 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionChina}" /> 62 </ComboBoxItem> 63 <ComboBoxItem> 64 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionKorea}" /> 65 </ComboBoxItem> 66 <ComboBoxItem> 67 <TextBlock Text="{locale:Locale SettingsTabSystemSystemRegionTaiwan}" /> 68 </ComboBoxItem> 69 </ComboBox> 70 </StackPanel> 71 <StackPanel 72 Margin="0,0,0,10" 73 Orientation="Horizontal"> 74 <TextBlock 75 VerticalAlignment="Center" 76 Text="{locale:Locale SettingsTabSystemSystemLanguage}" 77 ToolTip.Tip="{locale:Locale LanguageTooltip}" 78 Width="250" /> 79 <ComboBox 80 SelectedIndex="{Binding Language}" 81 ToolTip.Tip="{locale:Locale LanguageTooltip}" 82 HorizontalContentAlignment="Left" 83 Width="350"> 84 <ComboBoxItem> 85 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageJapanese}" /> 86 </ComboBoxItem> 87 <ComboBoxItem> 88 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageAmericanEnglish}" /> 89 </ComboBoxItem> 90 <ComboBoxItem> 91 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageFrench}" /> 92 </ComboBoxItem> 93 <ComboBoxItem> 94 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageGerman}" /> 95 </ComboBoxItem> 96 <ComboBoxItem> 97 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageItalian}" /> 98 </ComboBoxItem> 99 <ComboBoxItem> 100 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSpanish}" /> 101 </ComboBoxItem> 102 <ComboBoxItem> 103 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageChinese}" /> 104 </ComboBoxItem> 105 <ComboBoxItem> 106 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageKorean}" /> 107 </ComboBoxItem> 108 <ComboBoxItem> 109 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageDutch}" /> 110 </ComboBoxItem> 111 <ComboBoxItem> 112 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguagePortuguese}" /> 113 </ComboBoxItem> 114 <ComboBoxItem> 115 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageRussian}" /> 116 </ComboBoxItem> 117 <ComboBoxItem> 118 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTaiwanese}" /> 119 </ComboBoxItem> 120 <ComboBoxItem> 121 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageBritishEnglish}" /> 122 </ComboBoxItem> 123 <ComboBoxItem> 124 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageCanadianFrench}" /> 125 </ComboBoxItem> 126 <ComboBoxItem> 127 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageLatinAmericanSpanish}" /> 128 </ComboBoxItem> 129 <ComboBoxItem> 130 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageSimplifiedChinese}" /> 131 </ComboBoxItem> 132 <ComboBoxItem> 133 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageTraditionalChinese}" /> 134 </ComboBoxItem> 135 <ComboBoxItem> 136 <TextBlock Text="{locale:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" /> 137 </ComboBoxItem> 138 </ComboBox> 139 </StackPanel> 140 <StackPanel 141 Margin="0,0,0,10" 142 Orientation="Horizontal"> 143 <TextBlock 144 VerticalAlignment="Center" 145 Text="{locale:Locale SettingsTabSystemSystemTimeZone}" 146 ToolTip.Tip="{locale:Locale TimezoneTooltip}" 147 Width="250" /> 148 <AutoCompleteBox 149 Name="TimeZoneBox" 150 Width="350" 151 MaxDropDownHeight="500" 152 FilterMode="Contains" 153 ItemsSource="{Binding TimeZones}" 154 SelectionChanged="TimeZoneBox_OnSelectionChanged" 155 Text="{Binding Path=TimeZone, Mode=OneWay}" 156 TextChanged="TimeZoneBox_OnTextChanged" 157 ToolTip.Tip="{locale:Locale TimezoneTooltip}" 158 ValueMemberBinding="{Binding Mode=OneWay, Converter={StaticResource TimeZone}}" /> 159 </StackPanel> 160 <StackPanel 161 Margin="0,0,0,10" 162 Orientation="Horizontal"> 163 <TextBlock 164 VerticalAlignment="Center" 165 Text="{locale:Locale SettingsTabSystemSystemTime}" 166 ToolTip.Tip="{locale:Locale TimeTooltip}" 167 Width="250"/> 168 <DatePicker 169 VerticalAlignment="Center" 170 SelectedDate="{Binding CurrentDate}" 171 ToolTip.Tip="{locale:Locale TimeTooltip}" 172 Width="350" /> 173 </StackPanel> 174 <StackPanel 175 Margin="250,0,0,10" 176 Orientation="Horizontal"> 177 <TimePicker 178 VerticalAlignment="Center" 179 ClockIdentifier="24HourClock" 180 SelectedTime="{Binding CurrentTime}" 181 Width="350" 182 ToolTip.Tip="{locale:Locale TimeTooltip}" /> 183 </StackPanel> 184 <CheckBox IsChecked="{Binding EnableVsync}"> 185 <TextBlock 186 Text="{locale:Locale SettingsTabSystemEnableVsync}" 187 ToolTip.Tip="{locale:Locale VSyncToggleTooltip}" /> 188 </CheckBox> 189 <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}"> 190 <TextBlock 191 Text="{locale:Locale SettingsTabSystemEnableFsIntegrityChecks}" 192 ToolTip.Tip="{locale:Locale FsIntegrityToggleTooltip}" /> 193 </CheckBox> 194 </StackPanel> 195 <Separator Height="1" /> 196 <StackPanel 197 Orientation="Vertical" 198 Spacing="2"> 199 <TextBlock 200 Classes="h1" 201 Text="{locale:Locale SettingsTabSystemHacks}" /> 202 <TextBlock 203 Foreground="{DynamicResource SecondaryTextColor}" 204 Text="{locale:Locale SettingsTabSystemHacksNote}" /> 205 </StackPanel> 206 <StackPanel 207 Margin="10,0,0,0" 208 HorizontalAlignment="Stretch" 209 Orientation="Vertical"> 210 <CheckBox 211 IsChecked="{Binding ExpandDramSize}" 212 ToolTip.Tip="{locale:Locale DRamTooltip}"> 213 <TextBlock Text="{locale:Locale SettingsTabSystemExpandDramSize}" /> 214 </CheckBox> 215 <CheckBox 216 IsChecked="{Binding IgnoreMissingServices}" 217 ToolTip.Tip="{locale:Locale IgnoreMissingServicesTooltip}"> 218 <TextBlock Text="{locale:Locale SettingsTabSystemIgnoreMissingServices}" /> 219 </CheckBox> 220 </StackPanel> 221 </StackPanel> 222 </Border> 223 </ScrollViewer> 224 </UserControl>