enhance: supports customize system accent color (#232)

This commit is contained in:
leo 2024-07-03 00:17:18 +08:00
parent 997edae858
commit b85958214f
No known key found for this signature in database

View file

@ -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)
{