Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Files.App.Controls/ThemedIcon/ThemedIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ private void SetPathData(string partName, string pathData, FrameworkElement elem

private void OnIsEnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
{
// Sometimes the variable _isOwnerEnabled is not set to true when the control is enabled
// Fixes a bug when certain icons (such as Delete and Copy) were not shown in color
// for image files even though the icon is enabled and clickable
_isOwnerEnabled = ownerControl?.IsEnabled ?? false;

UpdateVisualStates();
}

Expand Down
Loading