mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 16:44:59 +00:00
Compare commits
No commits in common. "d3d0e7b15c4b80ec11d9743dbe03e9e1572cf5fd" and "7f86ad9f2286a9aa12ecf67a1889ac9455c2d50c" have entirely different histories.
d3d0e7b15c
...
7f86ad9f22
2 changed files with 2 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Avalonia.Threading;
|
|
||||||
|
|
||||||
namespace SourceGit.Commands
|
namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
|
@ -23,10 +22,7 @@ namespace SourceGit.Commands
|
||||||
var outs = new List<Models.Change>();
|
var outs = new List<Models.Change>();
|
||||||
var rs = ReadToEnd();
|
var rs = ReadToEnd();
|
||||||
if (!rs.IsSuccess)
|
if (!rs.IsSuccess)
|
||||||
{
|
|
||||||
Dispatcher.UIThread.Post(() => App.RaiseException(Context, rs.StdErr));
|
|
||||||
return outs;
|
return outs;
|
||||||
}
|
|
||||||
|
|
||||||
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
|
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
|
||||||
foreach (var line in lines)
|
foreach (var line in lines)
|
||||||
|
|
|
@ -54,8 +54,8 @@ namespace SourceGit.Views
|
||||||
{
|
{
|
||||||
context.DrawRectangle(Brushes.White, new Pen(new SolidColorBrush(Colors.Black, 0.3f), 0.65f), rect, corner, corner);
|
context.DrawRectangle(Brushes.White, new Pen(new SolidColorBrush(Colors.Black, 0.3f), 0.65f), rect, corner, corner);
|
||||||
|
|
||||||
var offsetX = Bounds.Width / 10.0;
|
var offsetX = Bounds.Width / 8.0;
|
||||||
var offsetY = Bounds.Height / 10.0;
|
var offsetY = Bounds.Height / 8.0;
|
||||||
|
|
||||||
var stepX = (Bounds.Width - offsetX * 2) / 5.0;
|
var stepX = (Bounds.Width - offsetX * 2) / 5.0;
|
||||||
var stepY = (Bounds.Height - offsetY * 2) / 5.0;
|
var stepY = (Bounds.Height - offsetY * 2) / 5.0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue