mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
enhance: use Inter as default font for all platforms (#639)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
26fe56e065
commit
ba3c72585d
2 changed files with 6 additions and 2 deletions
|
@ -59,6 +59,10 @@ namespace SourceGit
|
||||||
builder.UsePlatformDetect();
|
builder.UsePlatformDetect();
|
||||||
builder.LogToTrace();
|
builder.LogToTrace();
|
||||||
builder.WithInterFont();
|
builder.WithInterFont();
|
||||||
|
builder.With(new FontManagerOptions()
|
||||||
|
{
|
||||||
|
DefaultFamilyName = "fonts:Inter#Inter"
|
||||||
|
});
|
||||||
builder.ConfigureFonts(manager =>
|
builder.ConfigureFonts(manager =>
|
||||||
{
|
{
|
||||||
var monospace = new EmbeddedFontCollection(
|
var monospace = new EmbeddedFontCollection(
|
||||||
|
@ -223,7 +227,7 @@ namespace SourceGit
|
||||||
if (onlyUseMonospaceFontInEditor)
|
if (onlyUseMonospaceFontInEditor)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(defaultFont))
|
if (string.IsNullOrEmpty(defaultFont))
|
||||||
resDic.Add("Fonts.Primary", new FontFamily("fonts:Inter#Inter, $Default"));
|
resDic.Add("Fonts.Primary", new FontFamily("fonts:Inter#Inter"));
|
||||||
else
|
else
|
||||||
resDic.Add("Fonts.Primary", new FontFamily(defaultFont));
|
resDic.Add("Fonts.Primary", new FontFamily(defaultFont));
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
<SolidColorBrush x:Key="Brush.Diff.DeletedHighlight" Color="{DynamicResource Color.Diff.DeletedHighlight}"/>
|
<SolidColorBrush x:Key="Brush.Diff.DeletedHighlight" Color="{DynamicResource Color.Diff.DeletedHighlight}"/>
|
||||||
<SolidColorBrush x:Key="Brush.Link" Color="{DynamicResource Color.Link}"/>
|
<SolidColorBrush x:Key="Brush.Link" Color="{DynamicResource Color.Link}"/>
|
||||||
|
|
||||||
<FontFamily x:Key="Fonts.Default">fonts:Inter#Inter, $Default</FontFamily>
|
<FontFamily x:Key="Fonts.Default">fonts:Inter#Inter</FontFamily>
|
||||||
<FontFamily x:Key="Fonts.Monospace">fonts:SourceGit#JetBrains Mono</FontFamily>
|
<FontFamily x:Key="Fonts.Monospace">fonts:SourceGit#JetBrains Mono</FontFamily>
|
||||||
<FontFamily x:Key="Fonts.Primary">fonts:SourceGit#JetBrains Mono</FontFamily>
|
<FontFamily x:Key="Fonts.Primary">fonts:SourceGit#JetBrains Mono</FontFamily>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|
Loading…
Reference in a new issue