<commit_before>﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:converters="clr-namespace:AuraPhotoViewer.Styles.Converters">
    <converters:RightMarginConverter x:Key="RightMarginConverter" />
    <converters:UriToBitmapConverter x:Key="UriToBitmapConverter" />

    <!--Control colors.-->
    <Color x:Key="WindowColor">#D7D7D7</Color>
    <Color x:Key="ControlBorderBrush">#A8A8A8</Color>
    
    <!--Control-specific resources.-->
    <Color x:Key="TextForeground">#666666</Color>
    <Color x:Key="SelectedBackgroundColor">#5C90FF</Color>
    <Color x:Key="SelectedUnfocusedColor">#87ADFF</Color>
    <Color x:Key="WindowButtonBackgroundColor">#8B8B8B</Color>
    <Color x:Key="WindowButtonMouseOverColor">#B5B5B5</Color>

    <!--Window Style-->
    <Style x:Key="AuraWindowStyle" TargetType="{x:Type Window}">
        <Setter Property="WindowChrome.WindowChrome">
            <Setter.Value>
                <WindowChrome GlassFrameThickness="0" CornerRadius="0" ResizeBorderThickness="4"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Window}">
                    <Border BorderThickness="1" Margin="2">
                        <Border.BorderBrush>
                            <SolidColorBrush Color="{StaticResource ControlBorderBrush}" />
                        </Border.BorderBrush>
                        <Grid>
                            <Grid.Background>
                                <SolidColorBrush Color="{StaticResource WindowColor}" />
                            </Grid.Background>
                            <Border Background="Transparent" BorderThickness="0" Margin="{x:Static SystemParameters.WindowNonClientFrameThickness}">
                                <ContentPresenter Content="{TemplateBinding Content}" />
                            </Border>
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left"
											Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness}">
                                <Image Source="{TemplateBinding Icon}" Width="{x:Static SystemParameters.SmallIconWidth}" WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <TextBlock Text="{TemplateBinding Title}" FontWeight="DemiBold" Margin="5,0,0,0">
                                    <TextBlock.Foreground>
                                        <SolidColorBrush Color="{StaticResource TextForeground}" />
                                    </TextBlock.Foreground>
                                </TextBlock>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" FlowDirection="RightToLeft" VerticalAlignment="Top" HorizontalAlignment="Right"
										 Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness, 
								Converter={StaticResource RightMarginConverter}}">
                                <Button KeyboardNavigation.TabIndex="3" Width="40" Height="17"
										Command="{x:Static SystemCommands.CloseWindowCommand}" 
										Style="{DynamicResource CloseButton}" 
										ToolTip="Close"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <Button x:Name="MaximizeButton" KeyboardNavigation.TabIndex="4" Width="40" Height="17"
										Command="{x:Static SystemCommands.MaximizeWindowCommand}" 
										Style="{DynamicResource MaximizeButton}" 
										ToolTip="Maximize"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <Button x:Name="MinimizeButton" KeyboardNavigation.TabIndex="5" Width="40" Height="17"
										Command="{x:Static SystemCommands.MinimizeWindowCommand}" 
										Style="{DynamicResource MinimizeButton}" 
										ToolTip="Minimize"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                            </StackPanel>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="WindowState" Value="Maximized">
                            <Setter TargetName="MaximizeButton" Property="ToolTip" Value="Restore"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CloseButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="Close" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="Transparent">
                        <Path x:Name="PartIcon" HorizontalAlignment="Center" Stretch="Uniform" Margin="0,3,0,3" Data="M0.50000498,0.5 L2.9380055,0.5511561 5.125006,3.0764948 7.312002,0.55116302 9.7500027,0.50000703 6.2863034,4.4174498 9.7500046,8.4170002 7.500008,8.4170002 5.1250075,5.7308758 2.7500032,8.4170049 0.5,8.4170049 3.9637094,4.4174479 z">
                            <Path.Fill>
                                <SolidColorBrush Color="{StaticResource WindowButtonBackgroundColor}" />
                            </Path.Fill>
                        </Path>
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Close" Property="Background" >
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource WindowButtonMouseOverColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="PartIcon" Property="Fill" Value="White"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MaximizeButton" TargetType="{x:Type Button}"><commit_msg>experiment with colors part 1<commit_after>﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:converters="clr-namespace:AuraPhotoViewer.Styles.Converters">
    <converters:RightMarginConverter x:Key="RightMarginConverter" />
    <converters:UriToBitmapConverter x:Key="UriToBitmapConverter" />

    <!--Control colors.-->
    <Color x:Key="WindowColor">#ECECEC</Color>
    <Color x:Key="ControlBorderBrush">#CCCCCC</Color>
    
    <!--Control-specific resources.-->
    <Color x:Key="TextForeground">#666666</Color>
    <Color x:Key="SelectedBackgroundColor">#5C90FF</Color>
    <Color x:Key="SelectedUnfocusedColor">#87ADFF</Color>
    <Color x:Key="PathButtonFillColor">#8B8B8B</Color>
    <Color x:Key="PathButtonFillMouseOverColor">#5C90FF</Color>
    <Color x:Key="WindowButtonMouseOverColor">White</Color>

    <!--Window Style-->
    <Style x:Key="AuraWindowStyle" TargetType="{x:Type Window}">
        <Setter Property="WindowChrome.WindowChrome">
            <Setter.Value>
                <WindowChrome GlassFrameThickness="0" CornerRadius="0" ResizeBorderThickness="4"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Window}">
                    <Border BorderThickness="1" Margin="2">
                        <Border.BorderBrush>
                            <SolidColorBrush Color="{StaticResource ControlBorderBrush}" />
                        </Border.BorderBrush>
                        <Grid>
                            <Grid.Background>
                                <SolidColorBrush Color="{StaticResource WindowColor}" />
                            </Grid.Background>
                            <Border Background="Transparent" BorderThickness="0" Margin="{x:Static SystemParameters.WindowNonClientFrameThickness}">
                                <ContentPresenter Content="{TemplateBinding Content}" />
                            </Border>
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left"
											Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness}">
                                <Image Source="{TemplateBinding Icon}" Width="{x:Static SystemParameters.SmallIconWidth}" WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <TextBlock Text="{TemplateBinding Title}" FontWeight="DemiBold" Margin="5,0,0,0">
                                    <TextBlock.Foreground>
                                        <SolidColorBrush Color="{StaticResource TextForeground}" />
                                    </TextBlock.Foreground>
                                </TextBlock>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" FlowDirection="RightToLeft" VerticalAlignment="Top" HorizontalAlignment="Right"
										 Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness, 
								Converter={StaticResource RightMarginConverter}}">
                                <Button KeyboardNavigation.TabIndex="3" Width="40" Height="17"
										Command="{x:Static SystemCommands.CloseWindowCommand}" 
										Style="{DynamicResource CloseButton}" 
										ToolTip="Close"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <Button x:Name="MaximizeButton" KeyboardNavigation.TabIndex="4" Width="40" Height="17"
										Command="{x:Static SystemCommands.MaximizeWindowCommand}" 
										Style="{DynamicResource MaximizeButton}" 
										ToolTip="Maximize"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                                <Button x:Name="MinimizeButton" KeyboardNavigation.TabIndex="5" Width="40" Height="17"
										Command="{x:Static SystemCommands.MinimizeWindowCommand}" 
										Style="{DynamicResource MinimizeButton}" 
										ToolTip="Minimize"
										WindowChrome.IsHitTestVisibleInChrome="True"/>
                            </StackPanel>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="WindowState" Value="Maximized">
                            <Setter TargetName="MaximizeButton" Property="ToolTip" Value="Restore"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CloseButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="Close" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="Transparent">
                        <Path x:Name="PartIcon" HorizontalAlignment="Center" Stretch="Uniform" Margin="0,3,0,3" Data="M0.50000498,0.5 L2.9380055,0.5511561 5.125006,3.0764948 7.312002,0.55116302 9.7500027,0.50000703 6.2863034,4.4174498 9.7500046,8.4170002 7.500008,8.4170002 5.1250075,5.7308758 2.7500032,8.4170049 0.5,8.4170049 3.9637094,4.4174479 z">
                            <Path.Fill>
                                <SolidColorBrush Color="{StaticResource PathButtonFillColor}" />
                            </Path.Fill>
                        </Path>
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Close" Property="Background" >
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource WindowButtonMouseOverColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="PartIcon" Property="Fill" >
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource PathButtonFillMouseOverColor}" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MaximizeButton" TargetType="{x:Type Button}">
{'fraction_non_alphanumeric': 0.11538176151962604, 'fraction_numerical': 0.03524523261853528, 'mean_word_length': 2.0064688824447914, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3426882', 'n_tokens_mistral': 4068, 'n_tokens_neox': 3285, 'n_words': 476}