跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

Icon.xaml

26 行 · 1.3 KB历史下载
1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 xmlns:local="clr-namespace:UI.Controls.Base">
4 <Style TargetType="{x:Type local:Icon}">
5 <Setter Property="SnapsToDevicePixels"
6 Value="true" />
7 <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
8 <Setter Property="MinWidth" Value="18"/>
9 <Setter Property="MinHeight" Value="18"/>
10 <Setter Property="FontSize" Value="16"/>
11 <Setter Property="FontFamily" Value="pack://application:,,,/Tai;component/Resources/Fonts/#Segoe Fluent Icons"/>
12 <Setter Property="Background" Value="Transparent"/>
13
14 <Setter Property="Template">
15 <Setter.Value>
16 <ControlTemplate TargetType="{x:Type local:Icon}">
17 <!--<Border Background="{TemplateBinding Background}">-->
18
19 <TextBlock Text="{TemplateBinding Unicode}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" VerticalAlignment="Center" HorizontalAlignment="Center" TextOptions.TextFormattingMode="Ideal" SnapsToDevicePixels="True" />
20 <!--</Border>-->
21
22 </ControlTemplate>
23 </Setter.Value>
24 </Setter>
25 </Style>
26</ResourceDictionary>