Skip to content

Commit

Permalink
Switch cancelButton image to FontImageSource allowing for more flexib…
Browse files Browse the repository at this point in the history
…le and scalable icon usage (#593) (#595)

* Switch cancelButton image to FontImageSource allowing for more flexible and scalable icon usage with support for Dark/Light mode fixes.

* Update cancelButton icon color to #6E6E6E
Removed unused resources.
  • Loading branch information
prathameshnarkhede authored Aug 22, 2024
1 parent b07a8d1 commit 95d2781
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file removed src/Toolkit/Toolkit.Maui/Assets/x-small.png
Binary file not shown.
Binary file removed src/Toolkit/Toolkit.Maui/Assets/x.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Toolkit/Toolkit.Maui/SearchView/SearchView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public SearchView()

if (GetTemplateChild(nameof(PART_CancelButton)) is ImageButton cancelButton)
{
cancelButton.Source = ImageSource.FromResource($"Esri.ArcGISRuntime.Toolkit.Maui.Assets.x{suffix}.png", Assembly.GetAssembly(typeof(SearchView)));
cancelButton.Source = new FontImageSource { Glyph = "\ue30a", FontFamily = "calcite-ui-icons-24", Color = Color.FromArgb("#6E6E6E") };
}

BindingContext = this;
Expand Down

0 comments on commit 95d2781

Please sign in to comment.