Skip to content

Commit db8ee34

Browse files
committed
refactor: users should change the SystemAccentColor from system-wide settings
1 parent dfc03d7 commit db8ee34

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/App.axaml.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,7 @@ 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-
{
168-
if (kv.Key.Equals("SystemAccentColor", StringComparison.Ordinal))
169-
resDic["SystemAccentColor"] = kv.Value;
170-
else
171-
resDic[$"Color.{kv.Key}"] = kv.Value;
172-
}
167+
resDic[$"Color.{kv.Key}"] = kv.Value;
173168

174169
if (overrides.GraphColors.Count > 0)
175170
Models.CommitGraph.SetPens(overrides.GraphColors, overrides.GraphPenThickness);

0 commit comments

Comments
 (0)