mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
feat: add Danger Classes to replace Error Classes in ProgressBar.
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
Value="60" />
|
||||
<ProgressBar
|
||||
Width="200"
|
||||
Classes="Error"
|
||||
Classes="Danger"
|
||||
Maximum="100"
|
||||
Minimum="0"
|
||||
ShowProgressText="True"
|
||||
|
||||
@@ -185,6 +185,10 @@
|
||||
<Style Selector="^.Warning">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
||||
</Style>
|
||||
<Style Selector="^.Danger">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarDangerForeground}" />
|
||||
</Style>
|
||||
<!-- Error style is obsolete, use Danger instead -->
|
||||
<Style Selector="^.Error">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
||||
</Style>
|
||||
@@ -411,6 +415,10 @@
|
||||
<Style Selector="^.Warning">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
||||
</Style>
|
||||
<Style Selector="^.Danger">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarDangerForeground}" />
|
||||
</Style>
|
||||
<!-- Error style is obsolete, use Danger instead -->
|
||||
<Style Selector="^.Error">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
||||
</Style>
|
||||
|
||||
@@ -9,5 +9,7 @@
|
||||
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#888D92" />
|
||||
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#5DC264" />
|
||||
<SolidColorBrush x:Key="ProgressBarWarningForeground" Color="#FFAE43" />
|
||||
<SolidColorBrush x:Key="ProgressBarDangerForeground" Color="#FC725A" />
|
||||
<!-- Error style is obsolete, use Danger instead -->
|
||||
<SolidColorBrush x:Key="ProgressBarErrorForeground" Color="#FC725A" />
|
||||
</ResourceDictionary>
|
||||
@@ -9,5 +9,7 @@
|
||||
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#6B7075" />
|
||||
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#3BB346" />
|
||||
<SolidColorBrush x:Key="ProgressBarWarningForeground" Color="#FC8800" />
|
||||
<SolidColorBrush x:Key="ProgressBarDangerForeground" Color="#F93920" />
|
||||
<!-- Error style is obsolete, use Danger instead -->
|
||||
<SolidColorBrush x:Key="ProgressBarErrorForeground" Color="#F93920" />
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user