ux: force using 4 * RenderScaling as resize border size on Windows

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-12 17:57:49 +08:00
parent 641098ffb2
commit af9cf6ba6a
No known key found for this signature in database
5 changed files with 104 additions and 0 deletions

View file

@ -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();