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

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net.Http;
using System.Reflection;
@ -188,6 +189,22 @@ namespace SourceGit
Models.CommitGraph.SetPenColors(penColors);
}
foreach (var kv in schema.General)
{
if (kv.Key.Equals("Pen.Thickness", StringComparison.Ordinal))
{
double thick = Models.CommitGraph.GetPenThickness();
try
{
thick = double.Parse(kv.Value, CultureInfo.InvariantCulture);
}
catch
{
}
Models.CommitGraph.SetPenThickness(thick);
}
}
app.Resources.MergedDictionaries.Add(resDic);
app._colorOverrides = resDic;
}