This is a hairy one because I would like a way to treat Image and MaterialIcon the same way (and potentially more icons / images classes in the future).
The point is to add either an image or an icon in a button, applet frame header, etc... using the same method for both. That way we can swap one for the other without any trouble. The easy way would be to replace the image with a View* but I'm sure we can do better.
The MaterialIcon should not be reimplemented using Label as a base as it is overkill. It should use its own drawing method.
I would also love an abstraction layer for material icons to use a nice enum instead of an ugly char to identify an icon.
[ ] Update the font
[ ] Fix the font so that it can be mixed with Inter / Switch shared font (the icons are too small and too high)
This is a hairy one because I would like a way to treat
Image
andMaterialIcon
the same way (and potentially more icons / images classes in the future).The point is to add either an image or an icon in a button, applet frame header, etc... using the same method for both. That way we can swap one for the other without any trouble. The easy way would be to replace the image with a
View*
but I'm sure we can do better.The
MaterialIcon
should not be reimplemented usingLabel
as a base as it is overkill. It should use its own drawing method.I would also love an abstraction layer for material icons to use a nice enum instead of an ugly
char
to identify an icon.