feat: add success styles.
This commit is contained in:
@@ -89,6 +89,9 @@
|
|||||||
<u:Badge BadgeContent="URSA" Classes="Danger">
|
<u:Badge BadgeContent="URSA" Classes="Danger">
|
||||||
<Border Width="100" Height="50" />
|
<Border Width="100" Height="50" />
|
||||||
</u:Badge>
|
</u:Badge>
|
||||||
|
<u:Badge BadgeContent="URSA" Classes="Success">
|
||||||
|
<Border Width="100" Height="50" />
|
||||||
|
</u:Badge>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<u:Badge
|
<u:Badge
|
||||||
@@ -121,6 +124,12 @@
|
|||||||
Dot="True">
|
Dot="True">
|
||||||
<Border Width="100" Height="50" />
|
<Border Width="100" Height="50" />
|
||||||
</u:Badge>
|
</u:Badge>
|
||||||
|
<u:Badge
|
||||||
|
BadgeContent="URSA"
|
||||||
|
Classes="Success"
|
||||||
|
Dot="True">
|
||||||
|
<Border Width="100" Height="50" />
|
||||||
|
</u:Badge>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<u:Badge VerticalAlignment="Center" BadgeContent="Hello" />
|
<u:Badge VerticalAlignment="Center" BadgeContent="Hello" />
|
||||||
|
|||||||
@@ -130,5 +130,8 @@
|
|||||||
<Style Selector="^.Danger">
|
<Style Selector="^.Danger">
|
||||||
<Setter Property="u:Badge.Background" Value="{DynamicResource BadgeDangerBadgeBackground}" />
|
<Setter Property="u:Badge.Background" Value="{DynamicResource BadgeDangerBadgeBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="^.Success">
|
||||||
|
<Setter Property="u:Badge.Background" Value="{DynamicResource BadgeSuccessBadgeBackground}" />
|
||||||
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
<SolidColorBrush x:Key="BadgeTertiaryBadgeBackground" Color="#FF888D92" />
|
<SolidColorBrush x:Key="BadgeTertiaryBadgeBackground" Color="#FF888D92" />
|
||||||
<SolidColorBrush x:Key="BadgeWarningBadgeBackground" Color="#FFFFAE43" />
|
<SolidColorBrush x:Key="BadgeWarningBadgeBackground" Color="#FFFFAE43" />
|
||||||
<SolidColorBrush x:Key="BadgeDangerBadgeBackground" Color="#FFFC725A" />
|
<SolidColorBrush x:Key="BadgeDangerBadgeBackground" Color="#FFFC725A" />
|
||||||
|
<SolidColorBrush x:Key="BadgeSuccessBadgeBackground" Color="#FF5DC264" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
<SolidColorBrush x:Key="BadgeTertiaryBadgeBackground" Color="#6B7075" />
|
<SolidColorBrush x:Key="BadgeTertiaryBadgeBackground" Color="#6B7075" />
|
||||||
<SolidColorBrush x:Key="BadgeWarningBadgeBackground" Color="#FC8800" />
|
<SolidColorBrush x:Key="BadgeWarningBadgeBackground" Color="#FC8800" />
|
||||||
<SolidColorBrush x:Key="BadgeDangerBadgeBackground" Color="#F93920" />
|
<SolidColorBrush x:Key="BadgeDangerBadgeBackground" Color="#F93920" />
|
||||||
|
<SolidColorBrush x:Key="BadgeSuccessBadgeBackground" Color="#3BB346" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
Reference in New Issue
Block a user