mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
refactor: setup fonts based on operating system
This commit is contained in:
parent
267c955c88
commit
2182d39e5f
6 changed files with 50 additions and 28 deletions
|
@ -1,10 +1,17 @@
|
|||
using System.Diagnostics;
|
||||
using Avalonia;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
namespace SourceGit.Native {
|
||||
[SupportedOSPlatform("linux")]
|
||||
internal class Linux : OS.IBackend {
|
||||
public void SetupFonts(AppBuilder builder) {
|
||||
#if USE_FONT_INTER
|
||||
builder.WithInterFont();
|
||||
#endif
|
||||
}
|
||||
|
||||
public string FindGitExecutable() {
|
||||
if (File.Exists("/usr/bin/git")) return "/usr/bin/git";
|
||||
return string.Empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue