mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 03:12:21 +08:00
enhance: supports customize system accent color (#232)
This commit is contained in:
@@ -170,7 +170,13 @@ namespace SourceGit
|
||||
|
||||
var schema = JsonSerializer.Deserialize(File.ReadAllText(colorsFile), JsonCodeGen.Default.CustomColorSchema);
|
||||
foreach (var kv in schema.Basic)
|
||||
resDic[$"Color.{kv.Key}"] = Color.Parse(kv.Value);
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user