This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -1,16 +1,9 @@
<!--
This Source Code Form is subject to the terms of the MIT License.
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
All Rights Reserved.
-->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type ProgressBar}">
<Setter Property="Foreground" Value="{DynamicResource ProgressBarForeground}" />
<Setter Property="Background" Value="{DynamicResource ProgressBarBackground}" />
<Setter Property="BorderBrush" Value="{DynamicResource ProgressBarBorderBrush}" />
<Setter Property="Foreground" Value="{DynamicResource SystemFillColorAttentionBrush}" />
<Setter Property="Background" Value="{DynamicResource ControlStrongStrokeColorDefaultBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource ControlStrokeColorDefaultBrush}" />
<Setter Property="Height" Value="4" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="SnapsToDevicePixels" Value="True" />
@@ -40,18 +33,18 @@
</Style>
</Grid.Style>
<Border
Margin="1,1,1,1"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="1.5" />
<Rectangle Name="PART_Track" Margin="1,1,1,1" />
CornerRadius="1.5"
Margin="1,1,1,1" />
<Rectangle Margin="1,1,1,1" Name="PART_Track" />
<Border
Name="PART_Indicator"
Margin="1,1,1,1"
HorizontalAlignment="Left"
Background="{TemplateBinding Foreground}"
CornerRadius="2" />
CornerRadius="2"
HorizontalAlignment="Left"
Margin="1,1,1,1"
Name="PART_Indicator" />
</Grid>
</ControlTemplate>
</Setter.Value>
@@ -83,24 +76,24 @@
</Style>
</Grid.Style>
<Border
Margin="1,1,1,1"
Background="{DynamicResource ProgressBarIndeterminateBackground}"
BorderBrush="{DynamicResource ProgressBarIndeterminateBackground}"
Background="{DynamicResource ControlFillColorTransparentBrush}"
BorderBrush="{DynamicResource ControlFillColorTransparentBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4" />
<Rectangle Name="PART_Track" Margin="1,1,1,1" />
CornerRadius="4"
Margin="1,1,1,1" />
<Rectangle Margin="1,1,1,1" Name="PART_Track" />
<Decorator
Name="PART_Indicator"
HorizontalAlignment="Left"
Margin="1,1,1,1"
HorizontalAlignment="Left">
<Grid Name="Animation" ClipToBounds="True">
Name="PART_Indicator">
<Grid ClipToBounds="True" Name="Animation">
<Border
Name="PART_GlowRect"
Width="200"
Margin="0,0,0,0"
HorizontalAlignment="Left"
Background="{TemplateBinding Foreground}"
CornerRadius="2" />
CornerRadius="2"
HorizontalAlignment="Left"
Margin="0,0,0,0"
Name="PART_GlowRect"
Width="200" />
</Grid>
</Decorator>
</Grid>