2 changed files with 41 additions and 43 deletions
@ -1,20 +1,38 @@ |
|||||
<Style xmlns="https://github.com/avaloniaui" Selector="ProgressBar"> |
<Styles xmlns="https://github.com/avaloniaui"> |
||||
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush4}"/> |
<Style Selector="ProgressBar"> |
||||
<Setter Property="Foreground" Value="{DynamicResource ThemeAccentBrush}"/> |
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush4}"/> |
||||
<Setter Property="Template"> |
<Setter Property="Foreground" Value="{DynamicResource ThemeAccentBrush}"/> |
||||
<ControlTemplate> |
<Setter Property="Template"> |
||||
<Border Background="{TemplateBinding Background}" |
<ControlTemplate> |
||||
BorderBrush="{TemplateBinding BorderBrush}" |
<Border Background="{TemplateBinding Background}" |
||||
BorderThickness="{TemplateBinding BorderThickness}"> |
BorderBrush="{TemplateBinding BorderBrush}" |
||||
<Grid> |
BorderThickness="{TemplateBinding BorderThickness}"> |
||||
<Border Name="PART_Track" |
<Grid> |
||||
BorderThickness="1" |
<Border Name="PART_Track" |
||||
BorderBrush="{TemplateBinding Background}"/> |
BorderThickness="1" |
||||
<Border Name="PART_Indicator" |
BorderBrush="{TemplateBinding Background}"/> |
||||
BorderThickness="1" |
<Border Name="PART_Indicator" |
||||
Background="{TemplateBinding Foreground}"/> |
BorderThickness="1" |
||||
</Grid> |
Background="{TemplateBinding Foreground}" /> |
||||
</Border> |
</Grid> |
||||
</ControlTemplate> |
</Border> |
||||
</Setter> |
</ControlTemplate> |
||||
</Style> |
</Setter> |
||||
|
</Style> |
||||
|
<Style Selector="ProgressBar:horizontal /template/ Border#PART_Indicator"> |
||||
|
<Setter Property="HorizontalAlignment" Value="Left"/> |
||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/> |
||||
|
</Style> |
||||
|
<Style Selector="ProgressBar:vertical /template/ Border#PART_Indicator"> |
||||
|
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
||||
|
<Setter Property="VerticalAlignment" Value="Bottom"/> |
||||
|
</Style> |
||||
|
<Style Selector="ProgressBar:horizontal"> |
||||
|
<Setter Property="MinWidth" Value="200"/> |
||||
|
<Setter Property="MinHeight" Value="14"/> |
||||
|
</Style> |
||||
|
<Style Selector="ProgressBar:vertical"> |
||||
|
<Setter Property="MinWidth" Value="14"/> |
||||
|
<Setter Property="MinHeight" Value="200"/> |
||||
|
</Style> |
||||
|
</Styles> |
||||
Loading…
Reference in new issue