WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Add searchable tags to Icons

Open AndrewKeepCoding opened this issue 1 year ago • 5 comments

Issue type

enhancement

Which version of the app?

WinUI 3 Gallery

Description

In the Icons page, you can search by Name and Unitcode point. It'd be easier to find icons if they had tags that represent the symbol or its meaning.

For example, the Color icon, which is a palette, could also be able to be found with [palette] or [theme].

Screenshots

No response

Windows version

No response

Additional context

No response

AndrewKeepCoding avatar May 21 '24 01:05 AndrewKeepCoding

If this is a change that could be considered as enhancement, I'd be happy to create a PR for this.

AndrewKeepCoding avatar May 21 '24 01:05 AndrewKeepCoding

Sounds like a fair idea. What would be your solution? Adding a "tag" field in WinUIGallery/DataModel/IconsData.json ?

Jay-o-Way avatar May 21 '24 12:05 Jay-o-Way

Yes. Something like the following. Nothing complicated.

{
  "Code": "E790",
  "Name": "Color",
  "Tags": ["Palette", "Theme"]
},

But since there are too many icons, I'm thinking on implementing the searching logic and some simple tags. The rest can be implemented/improved in the future.

AndrewKeepCoding avatar May 21 '24 12:05 AndrewKeepCoding

That's a great idea! Your contribution is very much welcomed.

karkarl avatar Jun 13 '24 18:06 karkarl

I'll create a PR when it's ready.

AndrewKeepCoding avatar Jun 14 '24 01:06 AndrewKeepCoding