style<TextEdit>: using Microsoft YaHei UI for placeholder in TextEdit

This commit is contained in:
leo 2021-08-06 17:33:14 +08:00
parent 580ff565d8
commit 2309f9c126
2 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ namespace SourceGit.Views.Controls {
Placeholder,
CultureInfo.CurrentCulture,
FlowDirection.LeftToRight,
new Typeface(FontFamily, FontStyle, FontWeight, FontStretch),
new Typeface(new FontFamily("Microsoft YaHei UI"), FontStyle, FontWeight, FontStretch),
FontSize,
FindResource("Brush.FG2") as Brush,
new NumberSubstitution(),

View file

@ -38,6 +38,7 @@
<TextBlock
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
Text="{DynamicResource Text.Init.Tip}"
FontFamily="Microsoft YaHei UI"
Foreground="{DynamicResource Brush.FG2}"/>
</Grid>
</controls:PopupWidget>