Skip to content

Commit

Permalink
Initial commit version 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Deytron committed Apr 14, 2020
1 parent 483d9ec commit 688acb7
Show file tree
Hide file tree
Showing 34 changed files with 2,154 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Common.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d">

<Style x:Key="BaseStyle" TargetType="Control">
<Setter Property="FontSize" Value="{DynamicResource FontSize}" />
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</Style.Triggers>
</Style>

<Style x:Key="BaseTextBlockStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="{DynamicResource FontSize}" />
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</Style.Triggers>
</Style>

<Style x:Key="PopupBorder" TargetType="Border">
<Setter Property="Background" Value="{DynamicResource PopupBackgroundBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource PopupBorderBrush}" />
<Setter Property="BorderThickness" Value="{DynamicResource PopupBorderThickness}" />
</Style>
</ResourceDictionary>
74 changes: 74 additions & 0 deletions Constants.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">

<sys:Double x:Key="FontSizeSmall">12</sys:Double>
<sys:Double x:Key="FontSize">14</sys:Double>
<sys:Double x:Key="FontSizeLarge">15</sys:Double>
<sys:Double x:Key="FontSizeLarger">20</sys:Double>
<sys:Double x:Key="FontSizeLargest">29</sys:Double>
<FontFamily x:Key="FontFamily">Arial</FontFamily>
<Thickness x:Key="PopupBorderThickness">1</Thickness>
<Thickness x:Key="ControlBorderThickness">1</Thickness>
<sys:Double x:Key="EllipseBorderThickness">1</sys:Double>
<CornerRadius x:Key="ControlCornerRadius">2</CornerRadius>

<Color x:Key="BlackColor">#FF000000</Color>
<Color x:Key="WhiteColor">#FFFFFFFF</Color>
<Color x:Key="TextColor">#f2f2f2</Color>
<Color x:Key="TextColorDarker">#a3a3a3</Color>
<Color x:Key="TextColorDark">#FF000000</Color>
<Color x:Key="MainColor">#FF65636F</Color>
<Color x:Key="MainColorDark">#FF25282F</Color>
<Color x:Key="HoverColor">#247BA0</Color>
<Color x:Key="GlyphColor">#55CDFF</Color>
<Color x:Key="HighlightGlyphColor">#696773</Color>
<Color x:Key="PopupBackgroundColor">#171e26</Color>
<Color x:Key="PopupBorderColor">Transparent</Color>
<Color x:Key="BackgroundToneColor">#2C3A67</Color>
<Color x:Key="GridItemBackgroundColor">#151e3d</Color>
<Color x:Key="PanelSeparatorColor">#662C3A67</Color>

<SolidColorBrush x:Key="ControlBackgroundBrush" Color="Transparent" />
<SolidColorBrush x:Key="TextBrush" Color="{DynamicResource TextColor}" />
<SolidColorBrush x:Key="TextBrushDarker" Color="{DynamicResource TextColorDarker}" />
<SolidColorBrush x:Key="TextBrushDark" Color="{DynamicResource TextColorDark}" />
<SolidColorBrush x:Key="NormalBrush" Color="{DynamicResource MainColor}" />
<SolidColorBrush x:Key="NormalBrushDark" Color="{DynamicResource MainColorDark}" />
<SolidColorBrush x:Key="NormalBorderBrush" Color="#5555CDFF" />
<SolidColorBrush x:Key="HoverBrush" Color="{DynamicResource HighlightGlyphColor}" />
<SolidColorBrush x:Key="GlyphBrush" Color="#FFA9ADB2"/>
<LinearGradientBrush x:Key="PlayButtonBrush" EndPoint="1,1" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
<GradientStop Color="#FF18B04E" Offset="1"/>
<GradientStop Color="#FF50C832" Offset="0"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="GroupBrush" EndPoint="1,1" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
<GradientStop Color="#292f3b" Offset="0"/>
<GradientStop Color="#242930" Offset="1"/>
</LinearGradientBrush>
<SolidColorBrush x:Key="HighlightGlyphBrush" Color="#8755CDFF"/>
<SolidColorBrush x:Key="PopupBorderBrush" Color="{DynamicResource PopupBorderColor}" />
<SolidColorBrush x:Key="TooltipBackgroundBrush" Color="#4c515a" />
<SolidColorBrush x:Key="ButtonBackgroundBrush" Color="#FF48505A" />
<SolidColorBrush x:Key="GridItemBackgroundBrush" Color="{DynamicResource GridItemBackgroundColor}" />
<SolidColorBrush x:Key="PanelSeparatorBrush" Color="Transparent"/>
<SolidColorBrush x:Key="PopupBackgroundBrush" Color="#4c515a" />

<SolidColorBrush x:Key="PositiveRatingBrush" Color="#78ffa0" />
<SolidColorBrush x:Key="NegativeRatingBrush" Color="#ff6b6b" />
<SolidColorBrush x:Key="MixedRatingBrush" Color="#fffca1" />

<LinearGradientBrush x:Key="ExpanderBackgroundBrush" StartPoint="-0.1,0.5" EndPoint="1.2,1" >
<GradientStop Color="#FF2C3A67" Offset="0"/>
<GradientStop Color="#002C3A67" Offset="0.7"/>
</LinearGradientBrush>

<LinearGradientBrush x:Key="WindowBackgourndBrush" StartPoint="0.5,-0.2" EndPoint="0.4,1" >
<GradientStop Color="#202b4d" Offset="0"/>
<GradientStop Color="{DynamicResource MainColorDark}" Offset="0.4"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="ContextBrush" EndPoint="1,1" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
<GradientStop Color="#FF4250CD" Offset="1"/>
<GradientStop Color="#FF5592EB" Offset="0"/>
</LinearGradientBrush>
</ResourceDictionary>
12 changes: 12 additions & 0 deletions DefaultControls/Border.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d">

<Style TargetType="Border">
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
</ResourceDictionary>
39 changes: 39 additions & 0 deletions DefaultControls/Button.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d">

<Style TargetType="{x:Type Button}" BasedOn="{StaticResource BaseStyle}">
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundBrush}" />
<Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" />
<Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Padding" Value="10,5,10,5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Border" BorderThickness="0" Background="{TemplateBinding Background}"
CornerRadius="{DynamicResource ControlCornerRadius}" Style="{DynamicResource HighlightBorder}">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="White" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
23 changes: 23 additions & 0 deletions DefaultControls/Label.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d">

<Style TargetType="{x:Type Label}" BasedOn="{StaticResource BaseStyle}">
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Label}">
<ContentPresenter RecognizesAccessKey="True"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
Loading

0 comments on commit 688acb7

Please sign in to comment.