<Window
    x:Class="PicView.WPF.Views.Windows.EffectsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:buttons="clr-namespace:PicView.WPF.Views.UserControls.Buttons"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:misc="clr-namespace:PicView.WPF.Views.UserControls.Misc"
    Width="600"
    Height="580"
    AllowsTransparency="True"
    BorderBrush="{StaticResource BorderBrush}"
    BorderThickness="1"
    Foreground="{StaticResource MainColorBrush}"
    ResizeMode="CanMinimize"
    Style="{DynamicResource MyWindowStyle}"
    WindowStyle="None"
    mc:Ignorable="d">
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="Width" Value="135" />
            <Setter Property="Margin" Value="10,5,5,5" />
            <Setter Property="TextWrapping" Value="WrapWithOverflow" />
            <Setter Property="FontFamily" Value="/PicView;component/Themes/Resources/fonts/#Roboto Medium" />
        </Style>
        <Style x:Key="CheckBorder" TargetType="Border">
            <Setter Property="Margin" Value="5,3,5,3" />
            <Setter Property="Height" Value="35" />
            <Setter Property="Background" Value="{StaticResource BackgroundColorBrushAlt}" />
            <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="CornerRadius" Value="4" />
        </Style>
    </Window.Resources>

    <DockPanel LastChildFill="True">
        <DockPanel
            x:Name="TitleBar"
            Background="{StaticResource WindowBackgroundColorBrush}"
            DockPanel.Dock="Top">

            <misc:Icon x:Name="Logo" />

            <StackPanel
                Background="{StaticResource AltInterfaceBrush}"
                DockPanel.Dock="Right"
                Orientation="Horizontal">

                <buttons:MinButton
                    x:Name="MinButton"
                    Width="30"
                    Height="30"
                    BorderBrush="{StaticResource BorderBrush}"
                    BorderThickness="1,0,1,0"
                    DockPanel.Dock="Right" />

                <buttons:CloseButton
                    x:Name="CloseButton"
                    Width="30"
                    Height="30"
                    DockPanel.Dock="Right" />
            </StackPanel>

            <TextBlock
                x:Name="TitleText"
                Width="Auto"
                Margin="0,0,0,0"
                VerticalAlignment="Center"
                d:Text=" Effects"
                FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto Bold"
                FontSize="14"
                Text="Loading..."
                TextAlignment="Center" />
        </DockPanel>

        <Rectangle
            Height="1"
            DockPanel.Dock="Top"
            Fill="{StaticResource BorderBrush}" />

        <StackPanel Background="{StaticResource MenuBg}">

            <WrapPanel
                x:Name="EffectsContainer"
                Margin="0,15,0,0"
                HorizontalAlignment="Center"
                Orientation="Horizontal">

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="NegativeButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="NegativeButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="NegativeColors" d:Text=" NegativeColors">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="NegativeColorsText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="GrayscaleButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="GrayscaleButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="BlackAndWhite" d:Text=" BlackAndWhite">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="GrayscaleText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="ColorToneButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="ColorToneButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="ColorTone" d:Text=" ColorTone">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="ColorToneText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="OldMovieButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="OldMovieButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="OldMovie" d:Text=" OldMovie">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="OldMovieText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="BloomButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="BloomButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="BloomTxt" d:Text=" Bloom">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="BloomText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="GloomButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="GloomButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="GloomTxt" d:Text=" Gloom">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="GloomText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="MonochromeButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="MonochromeButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="MonochromeTxt" d:Text=" Monochrome">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="MonochromeText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="WavewarperButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="WaveWarperButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="WaveWarper" d:Text=" WaveWarper">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="WaveWarperText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="UnderwaterButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="UnderwaterButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Underwater" d:Text=" Underwater">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="UnderwaterText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="BandedSwirlButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="BandedSwirlButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="BandedSwirl" d:Text=" BandedSwirl">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="BandedSwirlText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="SwirlButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="SwirlButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Swirl" d:Text="Swirl">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="SwirlText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="RippleButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="RippleButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Ripple" d:Text=" Ripple">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="RippleText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="RippleAltButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="RippleAltButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="RippleAlt" d:Text=" RippleAlt">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="RippleAltText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="BlurButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="BlurButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Blur" d:Text=" Blur">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="BlurText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="DirectionalBlurButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="DirectionalBlurButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="DirectionalBlur" d:Text=" DirectionalBlur">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="DirectionalBlurText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="TelescopicBlurButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="TelescopicBlurButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="TelescopicBlur" d:Text=" TelescopicBlur">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="TelescopicBlurText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="PixelateButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="PixelateButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Pixelate" d:Text=" Pixelate">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="PixelateText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="EmbossedButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="EmbossedButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="EmbossedTxt" d:Text=" Embossed">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="EmbossedText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="SmoothMagnifyButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="SmoothMagnifyButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="SmoothMagnify" d:Text=" SmoothMagnify">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="SmoothMagnifyText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="PivotButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="PivotButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="Pivot" d:Text=" Pivot">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="PivotText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="PaperfoldButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="PaperfoldButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="PaperFold" d:Text=" PaperFold">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="PaperFoldText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="PencilSketchButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="PencilSketchButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="PencilSketch" d:Text=" PencilSketch">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="PencilSketchText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="SketchButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="SketchButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock x:Name="SketchTxt" d:Text=" Sketch">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="SketchText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="ToneMappingButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="ToneMappingButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock d:Text=" ToneMapping" x:Name="ToneMappingTxt">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="ToneMappingText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="FrostyOutlineButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="FrostyOutlineButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock d:Text=" FrostyOutline" x:Name="FrostyOutline">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="FrostyOutlineText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="BandsButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="BandsButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock d:Text=" Bands" x:Name="BandsTxt">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="BandsText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>

                <Border Style="{StaticResource CheckBorder}">
                    <CheckBox x:Name="GlasTileButton">
                        <CheckBox.Background>
                            <SolidColorBrush x:Name="GlasTileButtonBrush" Color="Transparent" />
                        </CheckBox.Background>
                        <TextBlock d:Text=" GlassTile" x:Name="GlassTile">
                            <TextBlock.Foreground>
                                <SolidColorBrush x:Name="GlassTileText" Color="{StaticResource MainColor}" />
                            </TextBlock.Foreground>
                        </TextBlock>
                    </CheckBox>
                </Border>
            </WrapPanel>

            <Slider
                x:Name="IntensitySlider"
                Width="265"
                Height="30"
                Margin="0,10,0,7"
                HorizontalAlignment="Center"
                VerticalAlignment="Bottom"
                IsEnabled="False"
                IsMoveToPointEnabled="True"
                IsSnapToTickEnabled="True"
                Maximum="200"
                Minimum="0"
                TickFrequency="1.5"
                Value="100" />

            <StackPanel
                Margin="0,0,0,5"
                HorizontalAlignment="Center"
                Orientation="Horizontal">

                <ComboBox
                    x:Name="WallpaperBox"
                    Margin="0,0,3,0"
                    HorizontalAlignment="Left"
                    IsTabStop="False">
                    <ComboBoxItem
                        x:Name="Fill"
                        d:Content=" Fill"
                        IsSelected="True" />
                    <ComboBoxItem x:Name="Center" d:Content=" Center" />
                    <ComboBoxItem x:Name="Fit" d:Content=" Fit" />
                    <ComboBoxItem x:Name="Tile" d:Content=" Tile" />
                    <ComboBoxItem x:Name="Stretch" d:Content=" Stretch" />
                </ComboBox>

                <Border
                    MinWidth="165"
                    Background="{StaticResource BackgroundColorBrushAlt}"
                    BorderBrush="{StaticResource BorderBrush}"
                    BorderThickness="1"
                    Focusable="False">
                    <Button
                        x:Name="SetAsWallpaperButton"
                        d:Content=" SetAsWallpaper"
                        FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto Bold">
                        <Button.Background>
                            <SolidColorBrush x:Name="SetAsWallpaperButtonBrush" Color="Transparent" />
                        </Button.Background>
                        <Button.Foreground>
                            <SolidColorBrush x:Name="SetAsWallpaperText" Color="{StaticResource MainColor}" />
                        </Button.Foreground>
                    </Button>
                </Border>

                <Border
                    Height="35"
                    MinWidth="195"
                    Margin="13,0,0,0"
                    Background="{StaticResource BackgroundColorBrushAlt}"
                    BorderBrush="{StaticResource BorderBrush}"
                    BorderThickness="1"
                    Focusable="False">
                    <Button
                        x:Name="SetAsLockScreenButton"
                        d:Content=" SetAsLockScreenImage"
                        FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto Bold">
                        <Button.Background>
                            <SolidColorBrush x:Name="SetAsLockscreenButtonBrush" Color="Transparent" />
                        </Button.Background>
                        <Button.Foreground>
                            <SolidColorBrush x:Name="SetAsLockscreenText" Color="{StaticResource MainColor}" />
                        </Button.Foreground>
                    </Button>
                </Border>
            </StackPanel>

            <StackPanel
                Margin="0,10,0,5"
                HorizontalAlignment="Center"
                VerticalAlignment="Bottom"
                Orientation="Horizontal">

                <Border
                    Height="35"
                    MinWidth="85"
                    Margin="0,0,5,0"
                    Background="{StaticResource BackgroundColorBrushAlt}"
                    BorderBrush="{StaticResource BorderBrush}"
                    BorderThickness="1"
                    CornerRadius="2"
                    Focusable="False">
                    <Button
                        x:Name="SaveButton"
                        d:Content=" Save"
                        FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto Bold">
                        <Button.Background>
                            <SolidColorBrush x:Name="SaveBrush" Color="Transparent" />
                        </Button.Background>
                        <Button.Foreground>
                            <SolidColorBrush x:Name="SaveText" Color="{StaticResource MainColor}" />
                        </Button.Foreground>
                    </Button>
                </Border>

                <Border
                    Height="35"
                    MinWidth="85"
                    Background="{StaticResource BackgroundColorBrushAlt}"
                    BorderBrush="{StaticResource BorderBrush}"
                    BorderThickness="1"
                    CornerRadius="2"
                    Focusable="False">
                    <Button
                        x:Name="CopyButton"
                        d:Content=" Copy}"
                        FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto Bold"
                        ToolTip="CopyImageTooltip">
                        <Button.Background>
                            <SolidColorBrush x:Name="CopyBrush" Color="Transparent" />
                        </Button.Background>
                        <Button.Foreground>
                            <SolidColorBrush x:Name="CopyText" Color="{StaticResource MainColor}" />
                        </Button.Foreground>
                    </Button>
                </Border>
            </StackPanel>
        </StackPanel>
    </DockPanel>
</Window>