mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
set pen thickness
"General": { "Pen.Thickness": "4.4" }
This commit is contained in:
parent
1c524cf310
commit
c0348b73bd
4 changed files with 30 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue