Skip to content

Commit d51748b

Browse files
Requested changes
1 parent 0e602a2 commit d51748b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Files.App.Controls/ThemedIcon/ThemedIcon.Properties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected virtual void OnOutlineIconPropertyChanged(string oldValue, string newV
3232
protected virtual void OnColorPropertyChanged(Brush oldValue, Brush newValue)
3333
{
3434
OnIconTypeChanged();
35-
OnIconColorChanged(newValue);
35+
OnIconColorChanged();
3636
}
3737

3838
protected virtual void OnIconTypePropertyChanged(ThemedIconTypes oldValue, ThemedIconTypes newValue)

src/Files.App.Controls/ThemedIcon/ThemedIcon.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ private void OnIsEnabledChanged(object sender, DependencyPropertyChangedEventArg
241241
UpdateVisualStates();
242242
}
243243

244-
private void OnIconColorChanged(Brush newColor)
244+
private void OnIconColorChanged()
245245
{
246246
if (GetTemplateChild(OutlineIconPath) is Path outlinePath)
247-
outlinePath.Fill = newColor;
247+
outlinePath.Fill = (Brush)this.GetValue(ColorProperty);
248248

249249
if (GetTemplateChild(FilledIconPath) is Path fillPath)
250-
fillPath.Fill = newColor;
250+
fillPath.Fill = (Brush)this.GetValue(ColorProperty);
251251
}
252252
}
253253
}

0 commit comments

Comments
 (0)