mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24: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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue