Skip to content

Commit 0160600

Browse files
committed
revert: changes about SystemAccentColor (#776)
This reverts commit db8ee34.
1 parent d1a1b4b commit 0160600

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/App.axaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,12 @@ public static void SetTheme(string theme, string themeOverridesFile)
164164
var resDic = new ResourceDictionary();
165165
var overrides = JsonSerializer.Deserialize(File.ReadAllText(themeOverridesFile), JsonCodeGen.Default.ThemeOverrides);
166166
foreach (var kv in overrides.BasicColors)
167-
resDic[$"Color.{kv.Key}"] = kv.Value;
167+
{
168+
if (kv.Key.Equals("SystemAccentColor", StringComparison.Ordinal))
169+
resDic["SystemAccentColor"] = kv.Value;
170+
else
171+
resDic[$"Color.{kv.Key}"] = kv.Value;
172+
}
168173

169174
if (overrides.GraphColors.Count > 0)
170175
Models.CommitGraph.SetPens(overrides.GraphColors, overrides.GraphPenThickness);

0 commit comments

Comments
 (0)