mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
enhance: supports customize system accent color (#232)
This commit is contained in:
parent
997edae858
commit
b85958214f
1 changed files with 7 additions and 1 deletions
|
@ -170,7 +170,13 @@ namespace SourceGit
|
|||
|
||||
var schema = JsonSerializer.Deserialize(File.ReadAllText(colorsFile), JsonCodeGen.Default.CustomColorSchema);
|
||||
foreach (var kv in schema.Basic)
|
||||
{
|
||||
if (kv.Key.Equals("SystemAccentColor", StringComparison.Ordinal))
|
||||
resDic["SystemAccentColor"] = Color.Parse(kv.Value);
|
||||
else
|
||||
resDic[$"Color.{kv.Key}"] = Color.Parse(kv.Value);
|
||||
}
|
||||
|
||||
|
||||
if (schema.Graph.Count > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue