|
|
@@ -1,8 +1,6 @@
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
- <!--<ResourceDictionary Source="pack://application:,,,/SKMC.UI;component/Themes/Dark.xaml"/>
|
|
|
- <ResourceDictionary Source="pack://application:,,,/SKMC.UI;component/Assets/Brushes.xaml"/>-->
|
|
|
<ResourceDictionary Source="pack://application:,,,/SKMC.UI;component/Assets/Icons.xaml"/>
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
<!--年-->
|
|
|
@@ -28,48 +26,19 @@
|
|
|
<ContentPresenter Name="NormalText" Margin="1,0,1,1"
|
|
|
HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- TextElement.Foreground="{DynamicResource Brush.Text}" />
|
|
|
- <VisualStateManager.VisualStateGroups>
|
|
|
- <VisualStateGroup x:Name="CommonStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0:0:0.1" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Normal" />
|
|
|
- <VisualState x:Name="MouseOver">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To=".5" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="Pressed">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To=".5" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="SelectionStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Unselected" />
|
|
|
- <VisualState x:Name="Selected">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To=".75" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="ActiveStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Active" />
|
|
|
- <VisualState x:Name="Inactive">
|
|
|
- <Storyboard>
|
|
|
- <ColorAnimation Storyboard.TargetName="NormalText" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" To="#FF777777" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- </VisualStateManager.VisualStateGroups>
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
</Grid>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter TargetName="Background" Property="Opacity" Value="0.5"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsPressed" Value="True">
|
|
|
+ <Setter TargetName="Background" Property="Opacity" Value="0.5"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsInactive" Value="True">
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FF777777"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
@@ -77,7 +46,7 @@
|
|
|
<Setter Property="Width" Value="80" />
|
|
|
</Style>
|
|
|
<Style x:Key="{x:Type CalendarButton}" BasedOn="{StaticResource Calendar.CalendarButton}" TargetType="{x:Type CalendarButton}" />
|
|
|
-
|
|
|
+ <!--天-->
|
|
|
<Style x:Key="Calendar.DayButton" TargetType="{x:Type CalendarDayButton}">
|
|
|
<Setter Property="FontFamily" Value="Arial" />
|
|
|
<Setter Property="FontSize" Value="13" />
|
|
|
@@ -101,7 +70,7 @@
|
|
|
<ContentPresenter Name="NormalText" Margin="5,1,5,1"
|
|
|
HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- TextElement.Foreground="{DynamicResource Brush.Text}" />
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
<Path Name="Blackout" Margin="3"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch"
|
|
|
@@ -109,81 +78,32 @@
|
|
|
Fill="#FF000000" Opacity="0"
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
Stretch="Fill" />
|
|
|
- <VisualStateManager.VisualStateGroups>
|
|
|
- <VisualStateGroup x:Name="CommonStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0:0:0.1" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Normal" />
|
|
|
- <VisualState x:Name="MouseOver">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="HighlightBackground" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="Pressed">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="HighlightBackground" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="Disabled">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="HighlightBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0" />
|
|
|
- <DoubleAnimation Storyboard.TargetName="NormalText" Storyboard.TargetProperty="Opacity" To=".35" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="SelectionStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Unselected" />
|
|
|
- <VisualState x:Name="Selected">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To=".75" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="CalendarButtonFocusStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="ActiveStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="Active" />
|
|
|
- <VisualState x:Name="Inactive">
|
|
|
- <Storyboard>
|
|
|
- <ColorAnimation Storyboard.TargetName="NormalText" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" To="#FF777777" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="DayStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="RegularDay" />
|
|
|
- <VisualState x:Name="Today">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="TodayBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
|
|
|
- <ColorAnimation Storyboard.TargetName="NormalText" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" To="#FFFFFFFF" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="BlackoutDayStates">
|
|
|
- <VisualStateGroup.Transitions>
|
|
|
- <VisualTransition GeneratedDuration="0" />
|
|
|
- </VisualStateGroup.Transitions>
|
|
|
- <VisualState x:Name="NormalDay" />
|
|
|
- <VisualState x:Name="BlackoutDay">
|
|
|
- <Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="Blackout" Storyboard.TargetProperty="Opacity" To=".2" Duration="0" />
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- </VisualStateManager.VisualStateGroups>
|
|
|
</Grid>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsEnabled" Value="False">
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0"/>
|
|
|
+ <Setter TargetName="NormalText" Property="Opacity" Value="0.35"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsPressed" Value="True">
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsSelected" Value="True">
|
|
|
+ <Setter TargetName="SelectedBackground" Property="Opacity" Value="0.75"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsInactive" Value="True">
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsToday" Value="True">
|
|
|
+ <Setter TargetName="TodayBackground" Property="Opacity" Value="1"/>
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsBlackedOut" Value="True">
|
|
|
+ <Setter TargetName="Blackout" Property="Opacity" Value="0.2"/>
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
@@ -204,7 +124,7 @@
|
|
|
<TextBlock Margin="0,6,0,6" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
FontFamily="Arial"
|
|
|
FontSize="16"
|
|
|
- Foreground="{DynamicResource Brush.Text}"
|
|
|
+ Foreground="#FFFFFF"
|
|
|
Text="{Binding}" />
|
|
|
</DataTemplate>
|
|
|
</ResourceDictionary>
|
|
|
@@ -229,14 +149,14 @@
|
|
|
VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
Content="{TemplateBinding ContentControl.Content}"
|
|
|
ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
- TextElement.Foreground="{DynamicResource Brush.Text}" />
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
<Setter TargetName="buttonContent" Property="TextElement.Foreground" Value="{DynamicResource Brush.Signature}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver" Value="False">
|
|
|
- <Setter TargetName="buttonContent" Property="TextElement.Foreground" Value="{DynamicResource Brush.Text}" />
|
|
|
+ <Setter TargetName="buttonContent" Property="TextElement.Foreground" Value="#FFFFFF" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
<Setter TargetName="buttonContent" Property="Opacity" Value=".5" />
|
|
|
@@ -262,7 +182,7 @@
|
|
|
<Path Width="16" Height="16" StrokeThickness="2"
|
|
|
Data="{StaticResource Icon.ChevronLeft}"
|
|
|
Stretch="Uniform"
|
|
|
- Stroke="{DynamicResource Brush.Icon}"/>
|
|
|
+ Stroke="#FFFFFF"/>
|
|
|
<Button.Style>
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
<Setter Property="Width" Value="48"/>
|
|
|
@@ -270,7 +190,7 @@
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
<Setter Property="Focusable" Value="False"/>
|
|
|
- <Setter Property="Foreground" Value="{DynamicResource Brush.Text}"/>
|
|
|
+ <Setter Property="Foreground" Value="#FFFFFF"/>
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.SecondaryButton}"/>
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
|
@@ -305,7 +225,7 @@
|
|
|
<Path Width="16" Height="16"
|
|
|
StrokeThickness="2"
|
|
|
Data="{StaticResource Icon.ChevronRight}"
|
|
|
- Stroke="{DynamicResource Brush.Icon}"
|
|
|
+ Stroke="#FFFFFF"
|
|
|
Stretch="Uniform"/>
|
|
|
<Button.Style>
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
@@ -404,7 +324,7 @@
|
|
|
<Style x:Key="{x:Type CalendarItem}" BasedOn="{StaticResource Calendar.Item}" TargetType="{x:Type CalendarItem}" />
|
|
|
|
|
|
<Style x:Key="Calendar.Primary" TargetType="{x:Type Calendar}">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.DarkBackground}" />
|
|
|
+ <Setter Property="Background" Value="#161616" />
|
|
|
<Setter Property="Calendar.CalendarButtonStyle" Value="{StaticResource Calendar.CalendarButton}" />
|
|
|
<Setter Property="Calendar.CalendarDayButtonStyle" Value="{StaticResource Calendar.DayButton}" />
|
|
|
<Setter Property="Template">
|