improve:UI

This commit is contained in:
2026-05-02 10:35:41 +08:00
parent fcbfb326c0
commit cc5ba1364c
@@ -59,9 +59,18 @@
</Grid> </Grid>
<!-- 横向占比柱状图 --> <!-- 横向占比柱状图 -->
<Border Height="14" CornerRadius="7" <Border x:Name="UsageBarBorder" Height="14" CornerRadius="2"
Background="{DynamicResource ControlStrokeColorDefaultBrush}" Background="{DynamicResource ControlStrokeColorDefaultBrush}"
ClipToBounds="True"> ClipToBounds="True">
<Border.OpacityMask>
<VisualBrush>
<VisualBrush.Visual>
<Border Background="Black" CornerRadius="2"
Width="{Binding ActualWidth, ElementName=UsageBarBorder}"
Height="{Binding ActualHeight, ElementName=UsageBarBorder}"/>
</VisualBrush.Visual>
</VisualBrush>
</Border.OpacityMask>
<Grid x:Name="UsageStackedBar"> <Grid x:Name="UsageStackedBar">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition x:Name="BarCoreCol" Width="0*"/> <ColumnDefinition x:Name="BarCoreCol" Width="0*"/>