mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
ux: force using 4 * RenderScaling
as resize border size on Windows
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
641098ffb2
commit
af9cf6ba6a
5 changed files with 104 additions and 0 deletions
|
@ -6,6 +6,7 @@ using System.Text;
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace SourceGit.Native
|
||||
{
|
||||
|
@ -14,6 +15,7 @@ namespace SourceGit.Native
|
|||
public interface IBackend
|
||||
{
|
||||
void SetupApp(AppBuilder builder);
|
||||
void SetupWindow(Window window);
|
||||
|
||||
string FindGitExecutable();
|
||||
string FindTerminal(Models.ShellOrTerminal shell);
|
||||
|
@ -121,6 +123,11 @@ namespace SourceGit.Native
|
|||
ExternalTools = _backend.FindExternalTools();
|
||||
}
|
||||
|
||||
public static void SetupForWindow(Window window)
|
||||
{
|
||||
_backend.SetupWindow(window);
|
||||
}
|
||||
|
||||
public static string FindGitExecutable()
|
||||
{
|
||||
return _backend.FindGitExecutable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue