improve:计时器UI

This commit is contained in:
2025-10-06 15:59:48 +08:00
parent 92cb071408
commit d464b1f78e
2 changed files with 5 additions and 6 deletions
@@ -8,6 +8,7 @@
<Setter Property="Width" Value="46" /> <Setter Property="Width" Value="46" />
<Setter Property="Height" Value="32" /> <Setter Property="Height" Value="32" />
<Setter Property="Background" Value="Transparent" /> <Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource SeewoTimerWindowButtonForeground}" />
<Setter Property="HorizontalContentAlignment" Value="Center" /> <Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" /> <Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template"> <Setter Property="Template">
@@ -52,12 +53,10 @@
<!-- 关闭按钮图标模板 --> <!-- 关闭按钮图标模板 -->
<DataTemplate x:Key="CloseButtonIconTemplate" DataType="system:String"> <DataTemplate x:Key="CloseButtonIconTemplate" DataType="system:String">
<TextBlock <TextBlock
FontFamily="Segoe MDL2 Assets" FontSize="12"
FontSize="10" Text="✕"
Text="{Binding}"
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center" />
Foreground="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}" />
</DataTemplate> </DataTemplate>
</ResourceDictionary> </ResourceDictionary>
@@ -24,7 +24,7 @@
<controls:WinUI3CloseButton x:Name="CloseButton" <controls:WinUI3CloseButton x:Name="CloseButton"
HorizontalAlignment="Right" VerticalAlignment="Top" HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,0,0,0" Cursor="Hand" Click="CloseButton_Click" Margin="0,0,0,0" Cursor="Hand" Click="CloseButton_Click"
Content="&#xE8BB;" ContentTemplate="{StaticResource CloseButtonIconTemplate}"/> Content=""/>
<!-- 主要内容区域 --> <!-- 主要内容区域 -->
<Grid> <Grid>
<!-- 使用Viewbox自动缩放内容 --> <!-- 使用Viewbox自动缩放内容 -->