set pen thickness

"General": {
    "Pen.Thickness": "4.4"
  }
This commit is contained in:
ghiboz 2024-07-05 14:02:30 +02:00
parent 1c524cf310
commit c0348b73bd
4 changed files with 30 additions and 0 deletions

View file

@ -123,6 +123,15 @@ namespace SourceGit.Models
_penCount = colors.Count;
}
public static void SetPenThickness(double value)
{
_penThickness = value;
}
public static double GetPenThickness()
{
return _penThickness;
}
public static CommitGraph Parse(List<Commit> commits)
{
double UNIT_WIDTH = 12;
@ -268,6 +277,7 @@ namespace SourceGit.Models
return temp;
}
private static double _penThickness = 1;
private static int _penCount = 0;
private static readonly List<Color> _defaultPenColors = [
Colors.Orange,