You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use a modern approach with SVG icons, not hacky fonts. With SVG you can customise everything, size, color, gradients fill, animations, fill opacity. You can even use SVG icons as mask for opacity shades (using black-to-transparent gradient, see example).
SVG technology is the today way to handle icons while fonts are an hacky approach made almost 7 years ago. Fonts are hard to maintain, require a lot of CSS code (for example a class for each icon) and they are really huge in terms of KB's.
Reacted by Kowalski Dragon, Yu Zhang, Honza Gál, Nicolas HENRY, Virgiel, Waseem Dahman and Sergiy
Reacted by Kowalski Dragon, Yu Zhang, Virgiel and Alex Muirhead
Yes i know, but every font icon is generated from single svg files. What i'm suggesting is to improve loading/rendering performance and maintainability by using the SVG files directly and move away from icon fonts. So you still use your file icons and octicons but as SVG. With this improvement theme authors can also provide their icons to customize the workbench :)
Reacted by Laszlo Korte, Brian Ojeda, Christopher Addison, Tomasz, Simon Siefke, Nestor Vera, Billy Janitsch, Kowalski Dragon, Yu Zhang, Mustafa Mohamad and 4 more
Reacted by Kowalski Dragon, Yu Zhang, Mustafa Mohamad, Virgiel and Alex Muirhead
Reacted by Laszlo Korte, Waldir Pimenta, Brian Ojeda, Christopher Addison, Tomasz, Simon Siefke, Alex Muirhead, Billy Janitsch, Kowalski Dragon, Honza Gál and 4 more
Activity
[-]Explore using icon fonts for the workbench[/-][+]Explore using icon fonts for workbench icons[/+][-]Explore using icon fonts for workbench icons[/-][+]Explore using icon fonts for product icons[/+]miguelsolorio commentedon Aug 15, 2019
Here's a demo of what's possible if we do this:
equinusocio commentedon Aug 16, 2019
Please use a modern approach with SVG icons, not hacky fonts. With SVG you can customise everything, size, color, gradients fill, animations, fill opacity. You can even use SVG icons as mask for opacity shades (using black-to-transparent gradient, see example).
SVG technology is the today way to handle icons while fonts are an hacky approach made almost 7 years ago. Fonts are hard to maintain, require a lot of CSS code (for example a class for each icon) and they are really huge in terms of KB's.
miguelsolorio commentedon Aug 16, 2019
Equinusocio (@equinusocio) thanks for the suggestions, but we already use icon fonts with file icons and Octicons.
equinusocio commentedon Aug 16, 2019
Yes i know, but every font icon is generated from single svg files. What i'm suggesting is to improve loading/rendering performance and maintainability by using the SVG files directly and move away from icon fonts. So you still use your file icons and octicons but as SVG. With this improvement theme authors can also provide their icons to customize the workbench :)
patrys commentedon Sep 2, 2019
There is a great post from GitHub on why dropping icon fonts is a good idea: https://github.blog/2016-02-22-delivering-octicons-with-svg/
natis commentedon Sep 11, 2019
Please add the ability to have custom icons in the sidebar and status bar.
[-]Explore using icon fonts for product icons[/-][+]Use icon fonts for product icons[/+]