initial
This commit is contained in:
109
F4SD-ResourceDictionaries/CheckBoxResources.xaml
Normal file
109
F4SD-ResourceDictionaries/CheckBoxResources.xaml
Normal file
@@ -0,0 +1,109 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="ToggleSwitch"
|
||||
TargetType="CheckBox">
|
||||
<Setter Property="Height"
|
||||
Value="15" />
|
||||
<Setter Property="ToolTipService.ShowOnDisabled"
|
||||
Value="True" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="CheckBox">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnChecking">
|
||||
<DoubleAnimation Storyboard.TargetName="MySlider"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
|
||||
Duration="00:00:00.25"
|
||||
From="0"
|
||||
To="25.5" />
|
||||
<ColorAnimation Duration="00:00:00.25"
|
||||
Storyboard.TargetName="MySliderBackground"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
To="{StaticResource Color.LoadingDot.Primary}" />
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnUnchecking">
|
||||
<DoubleAnimation Storyboard.TargetName="MySlider"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
|
||||
Duration="00:00:00.25"
|
||||
From="25.5"
|
||||
To="0" />
|
||||
<ColorAnimation Duration="00:00:00.25"
|
||||
Storyboard.TargetName="MySliderBackground"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
From="{StaticResource Color.LoadingDot.Primary}" />
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnChecking}"
|
||||
x:Name="OnChecking_BeginStoryboard" />
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnUnchecking}"
|
||||
x:Name="OnUnchecking_BeginStoryboard" />
|
||||
</Trigger.ExitActions>
|
||||
<Setter Property="Background"
|
||||
Value="#1F92EE" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="False">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="Opacity"
|
||||
Value="0.7" />
|
||||
<Setter Property="Cursor"
|
||||
Value="{x:Null}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
|
||||
<Viewbox
|
||||
ToolTip="{TemplateBinding ToolTip}"
|
||||
ToolTipService.ShowOnDisabled="True">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Border x:Name="MySliderBackground"
|
||||
Background="{TemplateBinding Background}"
|
||||
Width="50"
|
||||
Height="25"
|
||||
CornerRadius="12.5"
|
||||
Cursor="Hand">
|
||||
<Grid HorizontalAlignment="Left">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="MySlider"
|
||||
Grid.Column="1">
|
||||
<Border.RenderTransform>
|
||||
<TransformGroup>
|
||||
<TranslateTransform X="0"
|
||||
Y="0" />
|
||||
</TransformGroup>
|
||||
</Border.RenderTransform>
|
||||
<Ellipse Height="21.5"
|
||||
Width="21.5"
|
||||
Fill="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}"
|
||||
DockPanel.Dock="Left"
|
||||
Margin="2 1.5" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="5,0,0,0"
|
||||
Content="{TemplateBinding Content}" />
|
||||
</StackPanel>
|
||||
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
76
F4SD-ResourceDictionaries/DarkModeResources.xaml
Normal file
76
F4SD-ResourceDictionaries/DarkModeResources.xaml
Normal file
@@ -0,0 +1,76 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--Common Styles-->
|
||||
<SolidColorBrush x:Key="Color.AppBackground"
|
||||
Color="#363636" />
|
||||
<SolidColorBrush x:Key="Color.F4SD"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="Color.BlurBorder"
|
||||
Color="#8C8C8C" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="Color.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="Color.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="Color.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="HighlightColor.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.SoftContrast"
|
||||
Color="#313131" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.FunctionMarker"
|
||||
Color="#1F92EE" />
|
||||
|
||||
<Color x:Key="Color.LoadingDot.Primary">#1F92EE</Color>
|
||||
<Color x:Key="Color.LoadingDot.Secondary">#DBDBDB</Color>
|
||||
|
||||
<!--Menu Styles-->
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon.Hover"
|
||||
Color="#0077A8" />
|
||||
<SolidColorBrush x:Key="Background.Menu.Icon.Hover"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.Categories"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory"
|
||||
Color="#1A1A1A" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory.Hover"
|
||||
Color="#121212" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory"
|
||||
Color="#303030" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory.Hover"
|
||||
Color="#414141" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories.Hover"
|
||||
Color="#009DDD" />
|
||||
<Color x:Key="DropShadowColor.Menu">#9B9B9B</Color>
|
||||
<SolidColorBrush x:Key="BorderColor.Menu.KeyBoardShortcut"
|
||||
Color="#414141" />
|
||||
<Color x:Key="ShadowColor.Menu.KeyBoardShortcut">#8C8C8C</Color>
|
||||
|
||||
<!--Chart Colors-->
|
||||
<SolidColorBrush x:Key="HorizontalLineColor">#414141</SolidColorBrush>
|
||||
|
||||
<!--ScrollBar Colors-->
|
||||
<Color x:Key="ControlLightColor">#303030</Color>
|
||||
<Color x:Key="ControlMediumColor">#303030</Color>
|
||||
<Color x:Key="ControlDarkColor">#303030</Color>
|
||||
<SolidColorBrush x:Key="Scrollbar.Track.Color">#404040</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="TestColor"
|
||||
Color="MediumVioletRed"/>
|
||||
|
||||
</ResourceDictionary>
|
||||
76
F4SD-ResourceDictionaries/LightModeResources.xaml
Normal file
76
F4SD-ResourceDictionaries/LightModeResources.xaml
Normal file
@@ -0,0 +1,76 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--Common Styles-->
|
||||
<SolidColorBrush x:Key="Color.AppBackground"
|
||||
Color="#E9E9E9" />
|
||||
<SolidColorBrush x:Key="Color.F4SD"
|
||||
Color="#1c4A99" />
|
||||
<SolidColorBrush x:Key="Color.BlurBorder"
|
||||
Color="#8C8C8C" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="Color.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="Color.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="Color.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="HighlightColor.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.SoftContrast"
|
||||
Color="#DBDBDB" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.FunctionMarker"
|
||||
Color="#1F92EE" />
|
||||
|
||||
<Color x:Key="Color.LoadingDot.Primary">#1F92EE</Color>
|
||||
<Color x:Key="Color.LoadingDot.Secondary">#DBDBDB</Color>
|
||||
|
||||
<!--Menu Styles-->
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon.Hover"
|
||||
Color="#1F92EE" />
|
||||
<SolidColorBrush x:Key="Background.Menu.Icon.Hover"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.Categories"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory"
|
||||
Color="#F7FAFA" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory.Hover"
|
||||
Color="#FAFCFC" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory"
|
||||
Color="#EBEBEB" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory.Hover"
|
||||
Color="#E2E2E2" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories.Hover"
|
||||
Color="#005FAC" />
|
||||
<Color x:Key="DropShadowColor.Menu">#3D3C3C</Color>
|
||||
<SolidColorBrush x:Key="BorderColor.Menu.KeyBoardShortcut"
|
||||
Color="#DBDBDB" />
|
||||
<Color x:Key="ShadowColor.Menu.KeyBoardShortcut">#8C8C8C</Color>
|
||||
|
||||
<!--Chart Colors-->
|
||||
<SolidColorBrush x:Key="HorizontalLineColor">#707070</SolidColorBrush>
|
||||
|
||||
<!--ScrollBar Colors-->
|
||||
<Color x:Key="ControlLightColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlMediumColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlDarkColor">#DBDBDB</Color>
|
||||
<SolidColorBrush x:Key="Scrollbar.Track.Color">#EBEBEB</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="TestColor"
|
||||
Color="DarkOrange" />
|
||||
|
||||
</ResourceDictionary>
|
||||
90
F4SD-ResourceDictionaries/RadioButtonResources.xaml
Normal file
90
F4SD-ResourceDictionaries/RadioButtonResources.xaml
Normal file
@@ -0,0 +1,90 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="FocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="OptionMarkFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="14,0,0,0" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF707070"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#FFF3F9FF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF5593FF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#FFD9ECFF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF3C77DD"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#FFE6E6E6"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FFBCBCBC"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF707070"/>
|
||||
|
||||
<Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}">
|
||||
<Setter Property="Width" Value="15" />
|
||||
<Setter Property="Height" Value="15" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
||||
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RadioButton}">
|
||||
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="radioButtonBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Height="15" Width="15" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,0,0,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||
<Grid x:Name="markGrid" Margin="2">
|
||||
<Ellipse x:Name="optionMark" Fill="{StaticResource RadioButton.Static.Glyph}" MinWidth="6" MinHeight="6" Opacity="0"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="HasContent" Value="true">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}"/>
|
||||
<Setter Property="Padding" Value="4,-1,0,0"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.MouseOver.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Disabled.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Pressed.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Opacity" TargetName="optionMark" Value="1"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="{x:Null}">
|
||||
<Setter Property="Opacity" TargetName="optionMark" Value="0.56"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user