Merge pull request #380 from irihitech/issue/379
Add Danger Classes to replace Error Classes in ProgressBar.
This commit is contained in:
commit
e6541b4741
@ -155,7 +155,7 @@
|
|||||||
Value="60" />
|
Value="60" />
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
Width="200"
|
Width="200"
|
||||||
Classes="Error"
|
Classes="Danger"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
ShowProgressText="True"
|
ShowProgressText="True"
|
||||||
|
@ -185,6 +185,10 @@
|
|||||||
<Style Selector="^.Warning">
|
<Style Selector="^.Warning">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="^.Danger">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarDangerForeground}" />
|
||||||
|
</Style>
|
||||||
|
<!-- Error style is obsolete, use Danger instead -->
|
||||||
<Style Selector="^.Error">
|
<Style Selector="^.Error">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
@ -411,6 +415,10 @@
|
|||||||
<Style Selector="^.Warning">
|
<Style Selector="^.Warning">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarWarningForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="^.Danger">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarDangerForeground}" />
|
||||||
|
</Style>
|
||||||
|
<!-- Error style is obsolete, use Danger instead -->
|
||||||
<Style Selector="^.Error">
|
<Style Selector="^.Error">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
@ -9,5 +9,7 @@
|
|||||||
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#888D92" />
|
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#888D92" />
|
||||||
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#5DC264" />
|
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#5DC264" />
|
||||||
<SolidColorBrush x:Key="ProgressBarWarningForeground" Color="#FFAE43" />
|
<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" />
|
<SolidColorBrush x:Key="ProgressBarErrorForeground" Color="#FC725A" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -9,5 +9,7 @@
|
|||||||
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#6B7075" />
|
<SolidColorBrush x:Key="ProgressBarTertiaryForeground" Color="#6B7075" />
|
||||||
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#3BB346" />
|
<SolidColorBrush x:Key="ProgressBarSuccessForeground" Color="#3BB346" />
|
||||||
<SolidColorBrush x:Key="ProgressBarWarningForeground" Color="#FC8800" />
|
<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" />
|
<SolidColorBrush x:Key="ProgressBarErrorForeground" Color="#F93920" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
Loading…
x
Reference in New Issue
Block a user