<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Class="Minint.Views.ContrastDialog"
        Title="Adjust Contrast"
        Width="320"
        WindowStartupLocation="CenterOwner"
        CanResize="False"
        SizeToContent="Height">
    <StackPanel Margin="16" Spacing="10">
        <TextBlock Text="Contrast factor (0 = gray, 1 = no change, >1 = more contrast):"/>
        <Slider x:Name="FactorSlider" Minimum="0" Maximum="3" Value="1"
                TickFrequency="0.1" IsSnapToTickEnabled="True"/>
        <TextBlock x:Name="FactorLabel" Text="1.0" HorizontalAlignment="Center"/>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8" Margin="0,8,0,0">
            <Button Content="Apply" x:Name="OkButton" IsDefault="True" Padding="16,6"/>
            <Button Content="Cancel" x:Name="CancelButton" IsCancel="True" Padding="16,6"/>
        </StackPanel>
    </StackPanel>
</Window>
