更新
This commit is contained in:
@@ -1,31 +1,22 @@
|
||||
<!--
|
||||
This Source Code Form is subject to the terms of the MIT License.
|
||||
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
All Rights Reserved.
|
||||
-->
|
||||
|
||||
<ResourceDictionary
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFluent.Controls">
|
||||
|
||||
<!--<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/WPFluent;component/Themes/Light.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>-->
|
||||
<Thickness x:Key="InfoBarPadding">14,8,14,8</Thickness>
|
||||
<Thickness x:Key="InfoBarBorderThemeThickness">1</Thickness>
|
||||
|
||||
<Style TargetType="{x:Type controls:InfoBar}">
|
||||
<Setter Property="Background">
|
||||
<Setter.Value>
|
||||
<SolidColorBrush Color="{DynamicResource ControlFillColorDefault}" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Foreground" Value="{DynamicResource InfoBarTitleForeground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ControlFillColorDefaultBrush}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<Setter Property="Padding" Value="{StaticResource InfoBarPadding}" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource InfoBarBorderBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" />
|
||||
<Setter Property="BorderThickness" Value="{StaticResource InfoBarBorderThemeThickness}" />
|
||||
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
|
||||
<Setter Property="FontWeight" Value="Normal" />
|
||||
@@ -60,7 +51,6 @@
|
||||
Filled="True"
|
||||
FontSize="16" />
|
||||
</Border>
|
||||
|
||||
<WrapPanel Grid.Column="1" VerticalAlignment="Top">
|
||||
<TextBlock
|
||||
x:Name="InfoTitle"
|
||||
@@ -114,29 +104,25 @@
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
|
||||
<Trigger Property="Severity" Value="Informational">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground">
|
||||
<Setter.Value>
|
||||
<SolidColorBrush Color="{DynamicResource SystemAccentColorSecondary}" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Trigger Property="Severity" Value="Attention">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource SystemFillColorAttentionBrush}"/>
|
||||
<Setter TargetName="SymbolIcon" Property="Symbol" Value="Info24" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource InfoBarInformationalSeverityBackgroundBrush}" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource SystemFillColorAttentionBackgroundBrush}" />
|
||||
</Trigger>
|
||||
<Trigger Property="Severity" Value="Success">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource InfoBarSuccessSeverityIconBackground}" />
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource SystemFillColorSuccessBrush}" />
|
||||
<Setter TargetName="SymbolIcon" Property="Symbol" Value="CheckmarkCircle24" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource InfoBarSuccessSeverityBackgroundBrush}" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource SystemFillColorSuccessBackgroundBrush}" />
|
||||
</Trigger>
|
||||
<Trigger Property="Severity" Value="Warning">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource InfoBarWarningSeverityIconBackground}" />
|
||||
<Trigger Property="Severity" Value="Caution">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource SystemFillColorCautionBrush}" />
|
||||
<Setter TargetName="SymbolIcon" Property="Symbol" Value="ErrorCircle24" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource InfoBarWarningSeverityBackgroundBrush}" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource SystemFillColorCautionBackgroundBrush}" />
|
||||
</Trigger>
|
||||
<Trigger Property="Severity" Value="Error">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource InfoBarErrorSeverityIconBackground}" />
|
||||
<Trigger Property="Severity" Value="Critical">
|
||||
<Setter TargetName="SymbolIcon" Property="Foreground" Value="{DynamicResource SystemFillColorCriticalBrush}" />
|
||||
<Setter TargetName="SymbolIcon" Property="Symbol" Value="DismissCircle24" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource InfoBarErrorSeverityBackgroundBrush}" />
|
||||
<Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource SystemFillColorCriticalBackgroundBrush}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
Reference in New Issue
Block a user