SettingsUIView.axaml
1 <UserControl 2 x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsUiView" 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 mc:Ignorable="d" 10 x:DataType="viewModels:SettingsViewModel"> 11 <Design.DataContext> 12 <viewModels:SettingsViewModel /> 13 </Design.DataContext> 14 <ScrollViewer 15 Name="UiPage" 16 HorizontalAlignment="Stretch" 17 VerticalAlignment="Stretch" 18 HorizontalScrollBarVisibility="Disabled" 19 VerticalScrollBarVisibility="Auto"> 20 <Border Classes="settings"> 21 <StackPanel 22 Margin="10" 23 HorizontalAlignment="Stretch" 24 Orientation="Vertical" 25 Spacing="10"> 26 <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGeneralGeneral}" /> 27 <StackPanel Margin="10,0,0,0" Orientation="Vertical"> 28 <CheckBox IsChecked="{Binding EnableDiscordIntegration}"> 29 <TextBlock VerticalAlignment="Center" 30 ToolTip.Tip="{locale:Locale ToggleDiscordTooltip}" 31 Text="{locale:Locale SettingsTabGeneralEnableDiscordRichPresence}" /> 32 </CheckBox> 33 <CheckBox IsChecked="{Binding CheckUpdatesOnStart}"> 34 <TextBlock Text="{locale:Locale SettingsTabGeneralCheckUpdatesOnLaunch}" /> 35 </CheckBox> 36 <CheckBox IsChecked="{Binding ShowConfirmExit}"> 37 <TextBlock Text="{locale:Locale SettingsTabGeneralShowConfirmExitDialog}" /> 38 </CheckBox> 39 <CheckBox IsChecked="{Binding RememberWindowState}"> 40 <TextBlock Text="{locale:Locale SettingsTabGeneralRememberWindowState}" /> 41 </CheckBox> 42 <StackPanel Margin="0, 15, 0, 0" Orientation="Horizontal"> 43 <TextBlock VerticalAlignment="Center" 44 Text="{locale:Locale SettingsTabGeneralHideCursor}" 45 Width="150" /> 46 <ComboBox SelectedIndex="{Binding HideCursor}" 47 HorizontalContentAlignment="Left" 48 MinWidth="100"> 49 <ComboBoxItem> 50 <TextBlock Text="{locale:Locale SettingsTabGeneralHideCursorNever}" /> 51 </ComboBoxItem> 52 <ComboBoxItem> 53 <TextBlock Text="{locale:Locale SettingsTabGeneralHideCursorOnIdle}" /> 54 </ComboBoxItem> 55 <ComboBoxItem> 56 <TextBlock Text="{locale:Locale SettingsTabGeneralHideCursorAlways}" /> 57 </ComboBoxItem> 58 </ComboBox> 59 </StackPanel> 60 <StackPanel Margin="0, 15, 0, 10" Orientation="Horizontal"> 61 <TextBlock 62 VerticalAlignment="Center" 63 Text="{locale:Locale SettingsTabGeneralTheme}" 64 Width="150" /> 65 <ComboBox SelectedIndex="{Binding BaseStyleIndex}" 66 HorizontalContentAlignment="Left" 67 MinWidth="100"> 68 <ComboBoxItem> 69 <TextBlock Text="{locale:Locale SettingsTabGeneralThemeAuto}" /> 70 </ComboBoxItem> 71 <ComboBoxItem> 72 <TextBlock Text="{locale:Locale SettingsTabGeneralThemeLight}" /> 73 </ComboBoxItem> 74 <ComboBoxItem> 75 <TextBlock Text="{locale:Locale SettingsTabGeneralThemeDark}" /> 76 </ComboBoxItem> 77 </ComboBox> 78 </StackPanel> 79 </StackPanel> 80 <Separator Height="1" /> 81 <TextBlock Classes="h1" Text="{locale:Locale SettingsTabGeneralGameDirectories}" /> 82 <StackPanel 83 Margin="10,0,0,0" 84 HorizontalAlignment="Stretch" 85 Orientation="Vertical" 86 Spacing="10"> 87 <ListBox 88 Name="GameList" 89 MinHeight="230" 90 ItemsSource="{Binding GameDirectories}"> 91 <ListBox.Styles> 92 <Style Selector="ListBoxItem"> 93 <Setter Property="Padding" Value="10" /> 94 <Setter Property="Background" Value="{DynamicResource ListBoxBackground}" /> 95 </Style> 96 </ListBox.Styles> 97 </ListBox> 98 <Grid HorizontalAlignment="Stretch"> 99 <Grid.ColumnDefinitions> 100 <ColumnDefinition Width="*" /> 101 <ColumnDefinition Width="Auto" /> 102 <ColumnDefinition Width="Auto" /> 103 </Grid.ColumnDefinitions> 104 <TextBox 105 Name="PathBox" 106 Margin="0" 107 ToolTip.Tip="{locale:Locale AddGameDirBoxTooltip}" 108 VerticalAlignment="Stretch" /> 109 <Button 110 Name="AddButton" 111 Grid.Column="1" 112 MinWidth="90" 113 Margin="10,0,0,0" 114 ToolTip.Tip="{locale:Locale AddGameDirTooltip}" 115 Click="AddButton_OnClick"> 116 <TextBlock HorizontalAlignment="Center" 117 Text="{locale:Locale SettingsTabGeneralAdd}" /> 118 </Button> 119 <Button 120 Name="RemoveButton" 121 Grid.Column="2" 122 MinWidth="90" 123 Margin="10,0,0,0" 124 ToolTip.Tip="{locale:Locale RemoveGameDirTooltip}" 125 Click="RemoveButton_OnClick"> 126 <TextBlock HorizontalAlignment="Center" 127 Text="{locale:Locale SettingsTabGeneralRemove}" /> 128 </Button> 129 </Grid> 130 </StackPanel> 131 </StackPanel> 132 </Border> 133 </ScrollViewer> 134 </UserControl>