From 2309f9c12692c2da43fb9106628363b14e48e6f3 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 6 Aug 2021 17:33:14 +0800 Subject: [PATCH] style: using Microsoft YaHei UI for placeholder in TextEdit --- src/Views/Controls/TextEdit.cs | 2 +- src/Views/Popups/Init.xaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Views/Controls/TextEdit.cs b/src/Views/Controls/TextEdit.cs index 54c594d5..73006acc 100644 --- a/src/Views/Controls/TextEdit.cs +++ b/src/Views/Controls/TextEdit.cs @@ -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(), diff --git a/src/Views/Popups/Init.xaml b/src/Views/Popups/Init.xaml index d9e487a3..dfe3a1ae 100644 --- a/src/Views/Popups/Init.xaml +++ b/src/Views/Popups/Init.xaml @@ -38,6 +38,7 @@