GTPCorrgir/SettingsWindow.xaml

83 lines
4.4 KiB
Plaintext
Raw Normal View History

2024-11-14 12:37:08 -03:00
<Window x:Class="GTPCorrgir.SettingsWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Configuración" Height="450" Width="400"
WindowStartupLocation="CenterOwner">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TabControl Grid.Row="1" Margin="0,10">
<TabItem Header="Apariencia">
<StackPanel Margin="10">
<GroupBox Header="Tema" Margin="0,0,0,10">
<StackPanel Margin="5">
<RadioButton x:Name="LightTheme" Content="Claro" Margin="0,5" />
<RadioButton x:Name="DarkTheme" Content="Oscuro" Margin="0,5" />
</StackPanel>
</GroupBox>
<GroupBox Header="Fuente" Margin="0,0,0,10">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Tamaño:" Margin="0,5" />
<ComboBox x:Name="FontSizeCombo" Grid.Column="1" Margin="5" />
<TextBlock Text="Familia:" Grid.Row="1" Margin="0,5" />
<ComboBox x:Name="FontFamilyCombo" Grid.Row="1" Grid.Column="1" Margin="5" />
</Grid>
</GroupBox>
<GroupBox Header="Opacidad" Margin="0,0,0,10">
<StackPanel Margin="5">
<TextBlock Text="Retraso antes de transparencia (segundos):" />
<Slider x:Name="OpacityDelaySlider" Minimum="1" Maximum="30" Value="10" TickFrequency="1"
IsSnapToTickEnabled="True" />
<TextBlock Text="{Binding ElementName=OpacityDelaySlider, Path=Value, StringFormat={}{0} s}" />
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem Header="Comportamiento">
<StackPanel Margin="10">
<CheckBox x:Name="AutoSaveCheckbox" Content="Guardar historial automáticamente" Margin="0,5" />
<CheckBox x:Name="ShowNotificationsCheckbox" Content="Mostrar notificaciones" Margin="0,5" />
<CheckBox x:Name="AutoCopyCheckbox" Content="Copiar respuestas al portapapeles" Margin="0,5" />
<GroupBox Header="Notificaciones" Margin="0,10,0,0">
<StackPanel Margin="5">
<TextBlock Text="Duración de notificaciones (segundos):" />
<Slider x:Name="NotificationDurationSlider" Minimum="1" Maximum="10" Value="5"
TickFrequency="1" IsSnapToTickEnabled="True" />
<TextBlock
Text="{Binding ElementName=NotificationDurationSlider, Path=Value, StringFormat={}{0} s}" />
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem Header="Avanzado">
<StackPanel Margin="10">
<Button Content="Ver registros de error" Click="ViewErrorLogs_Click" Margin="0,5" />
<Button Content="Borrar historial" Click="ClearHistory_Click" Margin="0,5" />
<Button Content="Restablecer configuración" Click="ResetSettings_Click" Margin="0,5" />
</StackPanel>
</TabItem>
</TabControl>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Guardar" Width="80" Click="SaveButton_Click" Margin="0,0,10,0" />
<Button Content="Cancelar" Width="80" Click="CancelButton_Click" />
</StackPanel>
</Grid>
</Window>