Skip to content

Provide a list of deduped and nicely named codicons for use in product #171076

Open

Description

@Tyriar

The terminal has a feature to change the tab/profile icon which opens this:

image

It's very convenient to use but it would be nicer if it was instead:

➕ Add - add
💡 Lightbulb - lightbulb
etc.

The - text above would be the greyed out backing id.

User profiles could also use this as Sandeep Somavarapu (@sandy081) has explored.

Activity

  1. added
    feature-request
    ux
    user-profiles
    on Jan 11, 2023
  2. isidorn commented on Jan 13, 2023

    @isidorn

    Also would it be possible to add the list of icons of the most common languages to our Codicons?
    I know Chris Dias (@chrisdias) wanted to use a Python icon for his "Python 101" profile. And I think that makes sense.

  3. aeschli commented on Jan 13, 2023

    @aeschli
    Contributor

    While the Codicons offers a quick way to get a nice selection of icons, I think not all of the ids are useful and well chosen.
    What about having a curated list of the ones that are meaningful in the context of terminal/user profile?
    That allows you to add descriptions as well.

    If you want to allow that extensions can contribute new icons, use the iconRegistry (IIconRegistry) instead. Have a name convention for your icons so you can also pick up contributed icons.

    `registerIcon('terminal-viewicon-cloud', Codicon.cloud, 'Cloud') ...

  4. daviddossett commented on Jan 13, 2023

    @daviddossett
    Collaborator

    It may also be nice to allow for emojis as well. Although I think at one point this was possible?

  5. Tyriar commented on Jan 17, 2023

    @Tyriar
    ContributorAuthor

    David Dossett (@daviddossett) emoji can be used where text is used, I dislike when extensions do this though as they're the only non-monochrome icons in the UI and stand out like a sore thumb. For example: https://github.com/MicrosoftDocs/live-share/issues/4185

  6. sandy081 commented on Sep 7, 2023

    @sandy081
    Member

    This is done by Hylke Bons (@hbons) here - #188972

    Hence closing this.

  7. Tyriar commented on Sep 7, 2023

    @Tyriar
    ContributorAuthor

    This should be closed when it's compatible with the terminal (no debian, ubuntu, etc.?) and it's adopted in the terminal icon picker.

  8. changed the title [-]Provide a list of deduped and nicely names codicons for use in product[/-] [+]Provide a list of deduped and nicely named codicons for use in product[/+] on Oct 9, 2023
  9. hbons commented on Dec 4, 2023

    @hbons
    Contributor

    Daniel Imms (@Tyriar) can you automate this? Most look like they make sense with some string transformation. Then we can override the ones that don't make sense.

  10. Tyriar commented on Dec 4, 2023

    @Tyriar
    ContributorAuthor

    At least at the Codicon level there isn't a marked primary id:

    add: register('add', 0xea60),
    plus: register('plus', 0xea60),
    gistNew: register('gist-new', 0xea60),
    repoCreate: register('repo-create', 0xea60),

    Martin Aeschlimann (@aeschli) is this something we do with theme icons somewhere or is it new territory to get a well formed list of icons to present to the user?

  11. aeschli commented on Dec 5, 2023

    @aeschli
    Contributor

    We have all that already. Use the image registry to register a set of icons suited for terminals view.

    registerIcon('terminal-viewicon-cloud', Codicon.cloud, 'Cloud') ...

    Reference to the codicon to use as default icon. You can register as many as you want and give them a nice description.

    • use a convention on the icon id, e.g start with terminal-viewicon. Extensions that contribute icons can also use that prefix so they show up in your icon picker.
    • It's a big list but now it's deduped, curated, and you have description that describe the icon and not the operation
    • This allows theme authors to individually design icons for each component. E.g some theme could decide to give all terminal icons a certain look.
    • I don't think any migration is needed, existing views that used a codicon name can continue to do so, just your picker now only shows icons from the curated list (maybe plus the old codicon)

    Sandeep Somavarapu (@sandy081) I suggest the same for profiles

  12. Tyriar commented on Dec 5, 2023

    @Tyriar
    ContributorAuthor

    I used iconRegistry.getIcons() but the list wasn't deduped as expected:

    		const iconRegistry = getIconRegistry();
    		for (const icon of iconRegistry.getIcons()) {
    			items.push({ label: `$(${icon.id}) ${icon.id}`, description: icon.description, icon });
    		}

    Gave:

    image

    Proof description is working:

    image

  13. removed their assignment
    on Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestterminal-profilesux

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions