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, Placeholder,
CultureInfo.CurrentCulture, CultureInfo.CurrentCulture,
FlowDirection.LeftToRight, FlowDirection.LeftToRight,
new Typeface(FontFamily, FontStyle, FontWeight, FontStretch), new Typeface(new FontFamily("Microsoft YaHei UI"), FontStyle, FontWeight, FontStretch),
FontSize, FontSize,
FindResource("Brush.FG2") as Brush, FindResource("Brush.FG2") as Brush,
new NumberSubstitution(), new NumberSubstitution(),

View file

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