improve:计时器UI
This commit is contained in:
@@ -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="" ContentTemplate="{StaticResource CloseButtonIconTemplate}"/>
|
||||
Content="✕"/>
|
||||
<!-- 主要内容区域 -->
|
||||
<Grid>
|
||||
<!-- 使用Viewbox自动缩放内容 -->
|
||||
|
||||
Reference in New Issue
Block a user