Skip to content

Use icon fonts for product icons #78889

Closed

Description

Summary

This is to track updating our icons to use our new icon font (codicons) in the workbench. This will allow us to:

  • Style icons dynamically (themeable)
  • Allow theme authors to provide color tokens for icons
  • Unify Octicons + VS Code icons into a single icon library

This would allows to do something like below where icons inherit the foreground color of their element:

image

Notice how the icons in the selected element are different a color than the rest state

Related Issues

Out of scope

Adoption areas

  • Activity Bar
  • Sidebar
    • Explorer
    • Search
    • SCM
    • Debug
    • Extensions
    • Outline
  • Panel
    • Problems
    • Output
    • Debug Console
    • Terminal
  • Notifications
  • Find widget (editor, terminal)
  • Editor
    • Folding
    • Lighbulb
    • IntelliSense
    • Breadcrumbs
    • Breakpoints
    • Diff
    • Peek
    • Actions
  • Tabs
  • Settings
  • Keybindings
  • Dialog

Verify it works in

  • Monaco standalone editor
  • Custom views (extensions)

Activity

  1. added
    ux
    icons-product
    on Aug 11, 2019
  2. changed the title [-]Explore using icon fonts for the workbench[/-] [+]Explore using icon fonts for workbench icons[/+] on Aug 11, 2019
  3. changed the title [-]Explore using icon fonts for workbench icons[/-] [+]Explore using icon fonts for product icons[/+] on Aug 11, 2019
  4. miguelsolorio commented on Aug 15, 2019

    @miguelsolorio
    ContributorAuthor

    Here's a demo of what's possible if we do this:

    • Reference icons via class names (removes the clutter of svg icons)
    • Dynamically style them via color tokens
    • Allow extension authors to reference them via class names
    • Reduce file sizes from ~2.5mb => 51kb

    gif

  5. equinusocio commented on Aug 16, 2019

    @equinusocio

    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.

  6. miguelsolorio commented on Aug 16, 2019

    @miguelsolorio
    ContributorAuthor

    Equinusocio (@equinusocio) thanks for the suggestions, but we already use icon fonts with file icons and Octicons.

  7. equinusocio commented on Aug 16, 2019

    @equinusocio

    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 :)

  8. patrys commented on Sep 2, 2019

    @patrys
  9. natis commented on Sep 11, 2019

    @natis

    Please add the ability to have custom icons in the sidebar and status bar.

  10. changed the title [-]Explore using icon fonts for product icons[/-] [+]Use icon fonts for product icons[/+] on Sep 26, 2019
  11. locked and limited conversation to collaborators on Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

icons-productux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions