Open ahuang11 opened 2 years ago
My take on icons is that
There is an Icon and IconButton model here https://awesome-panel.readthedocs.io/en/latest/packages/awesome-panel-extensions/index.html#icon
Right, I would love to access icons easily too. I wouldn't want the second point to prevent this from being implemented (something is better than nothing imo).
Currently, I simply use emojis (e.g. copy and paste from https://emojipedia.org/large-red-circle/), but the colorful icons make the app look not too appropriate in the professional setting and also no central theme.
Here's a workaround:
pn.pane.SVG("https://raw.githubusercontent.com/google/material-design-icons/c1eb6286e18cd49bec9f243e5d38a6712fcdbb0b/src/action/123/materialicons/24px.svg")
But ideally, it would be like
pn.icons.Action(color="red")
If a decision is made about the icons, I'm happy to contribute a PR.
I'd love to see more support for Icons. Anything that prevent Panel users from having to think or learn about web frameworks/CSS and even SVG is good IMO.
https://fonts.google.com/icons?selected=Material+Icons I've been using Flutter and I really like that I can access all the Material Icons with
Icon(Icons.Favorite)
Maybe panel can have something similar?
pn.icons.Favorite()