291 lines
11 KiB
XML
291 lines
11 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<BooleanToVisibilityConverter x:Key="BoolToVisibility" />
|
|
<SolidColorBrush x:Key="BrandBrush" Color="#98638F" />
|
|
<SolidColorBrush x:Key="BrandSoftBrush" Color="#F3EAF2" />
|
|
<SolidColorBrush x:Key="LineBrush" Color="#DDE2E8" />
|
|
<SolidColorBrush x:Key="TextBrush" Color="#1F2933" />
|
|
<SolidColorBrush x:Key="SubTextBrush" Color="#6B7785" />
|
|
<SolidColorBrush x:Key="PriceBrush" Color="#C2410C" />
|
|
<SolidColorBrush x:Key="BackgroundBrush" Color="#EEF1F4" />
|
|
<SolidColorBrush x:Key="PanelBrush" Color="#FFFFFF" />
|
|
<SolidColorBrush x:Key="OtherBubbleBrush" Color="#F1F3F6" />
|
|
<SolidColorBrush x:Key="WaitingBrush" Color="#B45309" />
|
|
<SolidColorBrush x:Key="WaitingBackgroundBrush" Color="#FDF0DA" />
|
|
<SolidColorBrush x:Key="RepliedBrush" Color="#1D5FA8" />
|
|
<SolidColorBrush x:Key="RepliedBackgroundBrush" Color="#E2EDF9" />
|
|
<SolidColorBrush x:Key="DoneBrush" Color="#5B6673" />
|
|
<SolidColorBrush x:Key="DoneBackgroundBrush" Color="#E9ECF0" />
|
|
|
|
<Style x:Key="CopyableOrderIdStyle" TargetType="TextBlock">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
|
|
<Setter Property="ToolTip" Value="点击复制订单号" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Foreground" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="TextDecorations" Value="Underline" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style x:Key="PrimaryButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Background" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="14,6" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
x:Name="Root"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4">
|
|
<ContentPresenter
|
|
Margin="{TemplateBinding Padding}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Root" Property="Opacity" Value="0.88" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="Root" Property="Opacity" Value="0.72" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Root" Property="Opacity" Value="0.45" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="GhostButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="12,5" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
x:Name="Root"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4">
|
|
<ContentPresenter
|
|
Margin="{TemplateBinding Padding}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Root" Property="Background" Value="{StaticResource BrandSoftBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Root" Property="Opacity" Value="0.42" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="StatusTagStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="{StaticResource DoneBackgroundBrush}" />
|
|
<Setter Property="CornerRadius" Value="10" />
|
|
<Setter Property="Padding" Value="8,2" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Status}" Value="waiting_reply">
|
|
<Setter Property="Background" Value="{StaticResource WaitingBackgroundBrush}" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Status}" Value="replied">
|
|
<Setter Property="Background" Value="{StaticResource RepliedBackgroundBrush}" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style x:Key="StatusTextStyle" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="{StaticResource DoneBrush}" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Status}" Value="waiting_reply">
|
|
<Setter Property="Foreground" Value="{StaticResource WaitingBrush}" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Status}" Value="replied">
|
|
<Setter Property="Foreground" Value="{StaticResource RepliedBrush}" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style x:Key="TicketListItemStyle" TargetType="ListBoxItem">
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<Border
|
|
x:Name="Root"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="3,0,0,0">
|
|
<ContentPresenter />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Root" Property="Background" Value="{StaticResource BackgroundBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Root" Property="Background" Value="{StaticResource BrandSoftBrush}" />
|
|
<Setter TargetName="Root" Property="BorderBrush" Value="{StaticResource BrandBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ChatListItemStyle" TargetType="ListBoxItem">
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<ContentPresenter />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="AttachmentRemoveButtonStyle" TargetType="Button">
|
|
<Setter Property="Width" Value="20" />
|
|
<Setter Property="Height" Value="20" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Background" Value="#CC1F2933" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
x:Name="Root"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="10">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Root" Property="Background" Value="#E61F2933" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="StatusTabItemStyle" TargetType="TabItem">
|
|
<Setter Property="Padding" Value="6,6" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Foreground" Value="{StaticResource SubTextBrush}" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TabItem">
|
|
<Border
|
|
x:Name="Root"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="Transparent"
|
|
BorderBrush="{StaticResource BrandBrush}"
|
|
BorderThickness="0,0,0,2">
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Foreground" Value="{StaticResource BrandBrush}" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Root" Property="BorderBrush" Value="Transparent" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Root" Property="Background" Value="{StaticResource BrandSoftBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ChatScrollBarStyle" TargetType="ScrollBar">
|
|
<Setter Property="Width" Value="8" />
|
|
<Setter Property="MinWidth" Value="8" />
|
|
<Setter Property="MaxWidth" Value="8" />
|
|
<Setter Property="Margin" Value="0,4,2,4" />
|
|
<Setter Property="Opacity" Value="0.65" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ScrollBar">
|
|
<Grid Background="Transparent">
|
|
<Track
|
|
x:Name="PART_Track"
|
|
Focusable="False"
|
|
IsDirectionReversed="True">
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton
|
|
Command="ScrollBar.PageUpCommand"
|
|
Focusable="False"
|
|
Opacity="0" />
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.Thumb>
|
|
<Thumb MinHeight="32">
|
|
<Thumb.Template>
|
|
<ControlTemplate TargetType="Thumb">
|
|
<Border
|
|
x:Name="ThumbBorder"
|
|
Margin="1,0"
|
|
Background="#AAB4C0"
|
|
CornerRadius="3" />
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ThumbBorder" Property="Background" Value="{StaticResource BrandBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsDragging" Value="True">
|
|
<Setter TargetName="ThumbBorder" Property="Background" Value="#7F4F77" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Thumb.Template>
|
|
</Thumb>
|
|
</Track.Thumb>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton
|
|
Command="ScrollBar.PageDownCommand"
|
|
Focusable="False"
|
|
Opacity="0" />
|
|
</Track.IncreaseRepeatButton>
|
|
</Track>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Opacity" Value="1" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|