|
21 | 21 |
|
22 | 22 | <converters:RangeLengthConverter x:Key="RangeLengthConverter" />
|
23 | 23 | <converters:MathConverter x:Key="MathAddConverter" Operation="Add" />
|
24 |
| - <system:Int32 x:Key="ProgressRingStrokeWidth">3</system:Int32> |
| 24 | + <system:Int32 x:Key="ProgressRingStrokeWidth">4</system:Int32> |
25 | 25 |
|
26 | 26 | <SolidColorBrush x:Key="AttentionToActionBrush" Color="{StaticResource MaterialDesignShadow}" Opacity=".23" po:Freeze="True" />
|
27 | 27 |
|
|
177 | 177 | </Style>
|
178 | 178 |
|
179 | 179 | <Style x:Key="MaterialDesignFloatingActionMiniButton" TargetType="{x:Type Button}">
|
180 |
| - <Style.Resources> |
181 |
| - <SolidColorBrush x:Key="SecondaryAccentBrush" Color="{x:Static wpf:ButtonProgressAssist.StrokeForeground}" po:Freeze="True" /> |
182 |
| - <SolidColorBrush x:Key="SecondaryAccentBrush" Color="{x:Static wpf:ButtonProgressAssist.StrokeBackground}" po:Freeze="True" Opacity=".28" /> |
183 |
| - </Style.Resources> |
184 | 180 | <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
185 | 181 | <Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
186 | 182 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
187 | 183 | <Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}"/>
|
188 | 184 | <Setter Property="wpf:RippleAssist.Feedback" Value="White" />
|
| 185 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorForeground" Value="{DynamicResource PrimaryHueDarkBrush}" /> |
| 186 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorBackground" Value="{DynamicResource PrimaryHueLightBrush}" /> |
189 | 187 | <Setter Property="BorderThickness" Value="1"/>
|
190 | 188 | <Setter Property="Cursor" Value="Hand"/>
|
191 | 189 | <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
205 | 203 | </Ellipse>
|
206 | 204 | </AdornerDecorator>
|
207 | 205 | <ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}"
|
208 |
| - Foreground="{DynamicResource {x:Static wpf:ButtonProgressAssist.StrokeForeground}}" |
209 |
| - Foreground="{DynamicResource {x:Static wpf:ButtonProgressAssist.StrokeBackground}}" |
210 |
| - Value="-1" |
211 |
| - IsIndeterminate="True" |
212 |
| - Margin="-3" |
213 |
| - Width="{TemplateBinding Width, Converter={StaticResource MathAddConverter}, ConverterParameter={StaticResource ProgressRingStrokeWidth}}" |
214 |
| - Height="{TemplateBinding Height, Converter={StaticResource MathAddConverter}, ConverterParameter={StaticResource ProgressRingStrokeWidth}}" |
215 |
| - HorizontalAlignment="Stretch" |
216 |
| - VerticalAlignment="Stretch" /> |
| 206 | + Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.IndicatorForeground)}" |
| 207 | + Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.IndicatorBackground)}" |
| 208 | + Value="-1" |
| 209 | + IsIndeterminate="True" |
| 210 | + Margin="-3" |
| 211 | + Width="{TemplateBinding Width, Converter={StaticResource MathAddConverter}, ConverterParameter={StaticResource ProgressRingStrokeWidth}}" |
| 212 | + Height="{TemplateBinding Height, Converter={StaticResource MathAddConverter}, ConverterParameter={StaticResource ProgressRingStrokeWidth}}" |
| 213 | + HorizontalAlignment="Stretch" |
| 214 | + VerticalAlignment="Stretch" /> |
| 215 | + <Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" /> |
217 | 216 | <wpf:Ripple Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Focusable="False"
|
218 | 217 | Clip="{Binding ElementName=GeometryEllipse, Path=RenderedGeometry}" ClipToBounds="True"
|
219 | 218 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
280 | 279 | <Setter Property="Background" Value="{DynamicResource SecondaryAccentBrush}"/>
|
281 | 280 | <Setter Property="BorderBrush" Value="{DynamicResource SecondaryAccentBrush}"/>
|
282 | 281 | <Setter Property="Foreground" Value="{DynamicResource SecondaryAccentForegroundBrush}"/>
|
283 |
| - <Style.Resources> |
284 |
| - <SolidColorBrush Color="Yellow" x:Key="{x:Static wpf:ButtonProgressAssist.TestOne}" /> |
285 |
| - </Style.Resources> |
286 | 282 | </Style>
|
287 | 283 |
|
288 | 284 | </ResourceDictionary>
|
0 commit comments