跳到主要内容

github/tai

公开

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

提交记录

Merge pull request #284 from WXRIW/master

修复非简中环境下的字体问题

作者
Berumotto
时间
2023/11/05 16:44
提交
5effe6e
这个版本的全部文件

这是一个合并提交,下面是和第一个上一提交相比的改动。

修改UI/App.xaml+9 −0看文件
@@ -4,9 +4,18 @@
44 xmlns:local="clr-namespace:UI"
55 Startup="OnStartup"
66 xmlns:base="clr-namespace:UI.Controls.Base"
7新增: xmlns:c="clr-namespace:UI.Controls"
78 >
89 <Application.Resources>
910 <ResourceDictionary>
11新增: <!--指定字体以修复非简中环境下的字体问题-->
12新增: <Style TargetType="{x:Type TextBlock}">
13新增: <Setter Property="FontFamily" Value="Segoe UI, Microsoft YaHei UI" />
14新增: </Style>
15新增: <Style TargetType="{x:Type Control}" x:Key="fontStyling">
16新增: <Setter Property="FontFamily" Value="Segoe UI, Microsoft YaHei UI" />
17新增: </Style>
18新增:
1019 <ResourceDictionary.MergedDictionaries>
1120 <ResourceDictionary Source="/Tai;component/Resources/Themes/Light.xaml"/>
1221 <ResourceDictionary Source="/Tai;component/Resources/Themes/Common.xaml"/>