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="Height" Value="32" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource SeewoTimerWindowButtonForeground}" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template">
@@ -52,12 +53,10 @@
<!-- 关闭按钮图标模板 -->
<DataTemplate x:Key="CloseButtonIconTemplate" DataType="system:String">
<TextBlock
FontFamily="Segoe MDL2 Assets"
FontSize="10"
Text="{Binding}"
FontSize="12"
Text="✕"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}" />
VerticalAlignment="Center" />
</DataTemplate>
</ResourceDictionary>
@@ -24,7 +24,7 @@
<controls:WinUI3CloseButton x:Name="CloseButton"
HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,0,0,0" Cursor="Hand" Click="CloseButton_Click"
Content="&#xE8BB;" ContentTemplate="{StaticResource CloseButtonIconTemplate}"/>
Content=""/>
<!-- 主要内容区域 -->
<Grid>
<!-- 使用Viewbox自动缩放内容 -->