Styles.xaml 3.72 KB
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
                    >
    <Style TargetType="Button" x:Key="ButtonStyle_empty">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border 
                        Background="{TemplateBinding Background}" 
                        Height="{TemplateBinding Height}" 
                        Width="{TemplateBinding Width}"
                        
                        >
                        <ContentPresenter RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <Style TargetType="Grid" x:Key="GridStyle_shadow">
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect BlurRadius="15" Direction="-90" RenderingBias="Quality" Opacity=".2" ShadowDepth="1"/>
            </Setter.Value>
        </Setter>
    </Style>


    <x:Array x:Key="RandomColors" Type="SolidColorBrush">
        <SolidColorBrush>#2195f2</SolidColorBrush>
        <SolidColorBrush>#f34336</SolidColorBrush>
        <SolidColorBrush>#fec007</SolidColorBrush>
        <SolidColorBrush>#607d8a</SolidColorBrush>
        <SolidColorBrush>#e81e63</SolidColorBrush>
        <SolidColorBrush>#4cae50</SolidColorBrush>
        <SolidColorBrush>#3f51b4</SolidColorBrush>
        <SolidColorBrush>#ccdb39</SolidColorBrush>
    </x:Array>

  
    <SolidColorBrush x:Key="AreaColors0">Red</SolidColorBrush>
    <SolidColorBrush x:Key="AreaColors1">Orange</SolidColorBrush>
    <SolidColorBrush x:Key="AreaColors2">Green</SolidColorBrush>
    <SolidColorBrush x:Key="AreaColors3">Blue</SolidColorBrush>
    <SolidColorBrush x:Key="AreaColors4">Purple</SolidColorBrush>



    <Style x:Key="AccentCircleButtonStyle"
               BasedOn="{StaticResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
               TargetType="{x:Type ButtonBase}">
        <Setter Property="Width" Value="48"/>
        <Setter Property="Height" Value="48"/>
        <Setter Property="Margin" Value="4"/>
        <Setter Property="Foreground" Value="{DynamicResource AccentColorBrush}" />
        <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderBrush" Value="{DynamicResource AccentColorBrush}" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="{DynamicResource GrayBrush7}" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="AccentCircleIconPackStyle"
                       TargetType="{x:Type iconPacks:PackIconBase}">
        <Setter Property="Width" Value="20"/>
        <Setter Property="Height" Value="20"/>
    </Style>

    <Thickness x:Key="ControlMargin">5</Thickness>
</ResourceDictionary>