mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
refactor: users should change the SystemAccentColor
from system-wide settings
This commit is contained in:
parent
dfc03d7a8f
commit
db8ee3410b
1 changed files with 1 additions and 6 deletions
|
@ -164,12 +164,7 @@ namespace SourceGit
|
||||||
var resDic = new ResourceDictionary();
|
var resDic = new ResourceDictionary();
|
||||||
var overrides = JsonSerializer.Deserialize(File.ReadAllText(themeOverridesFile), JsonCodeGen.Default.ThemeOverrides);
|
var overrides = JsonSerializer.Deserialize(File.ReadAllText(themeOverridesFile), JsonCodeGen.Default.ThemeOverrides);
|
||||||
foreach (var kv in overrides.BasicColors)
|
foreach (var kv in overrides.BasicColors)
|
||||||
{
|
|
||||||
if (kv.Key.Equals("SystemAccentColor", StringComparison.Ordinal))
|
|
||||||
resDic["SystemAccentColor"] = kv.Value;
|
|
||||||
else
|
|
||||||
resDic[$"Color.{kv.Key}"] = kv.Value;
|
resDic[$"Color.{kv.Key}"] = kv.Value;
|
||||||
}
|
|
||||||
|
|
||||||
if (overrides.GraphColors.Count > 0)
|
if (overrides.GraphColors.Count > 0)
|
||||||
Models.CommitGraph.SetPens(overrides.GraphColors, overrides.GraphPenThickness);
|
Models.CommitGraph.SetPens(overrides.GraphColors, overrides.GraphPenThickness);
|
||||||
|
|
Loading…
Reference in a new issue