mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
feature: supports custom fonts (#30)
This commit is contained in:
parent
0e49ad181a
commit
83aa373079
14 changed files with 181 additions and 15 deletions
|
@ -160,7 +160,7 @@ namespace SourceGit.Views
|
|||
public LineStyleTransformer(CombinedTextDiffPresenter editor)
|
||||
{
|
||||
_editor = editor;
|
||||
_indicatorTypeface = new Typeface("fonts:SourceGit#JetBrains Mono", FontStyle.Italic);
|
||||
_indicatorTypeface = new Typeface(editor.FontFamily, FontStyle.Italic);
|
||||
}
|
||||
|
||||
protected override void ColorizeLine(DocumentLine line)
|
||||
|
@ -520,7 +520,7 @@ namespace SourceGit.Views
|
|||
public LineStyleTransformer(SingleSideTextDiffPresenter editor)
|
||||
{
|
||||
_editor = editor;
|
||||
_indicatorTypeface = new Typeface("fonts:SourceGit#JetBrains Mono", FontStyle.Italic);
|
||||
_indicatorTypeface = new Typeface(editor.FontFamily, FontStyle.Italic);
|
||||
}
|
||||
|
||||
protected override void ColorizeLine(DocumentLine line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue