Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include more icons #10455

Closed
agauniyal opened this issue Aug 12, 2016 · 24 comments
Closed

Include more icons #10455

agauniyal opened this issue Aug 12, 2016 · 24 comments
Assignees
Labels
api *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality icons-product Issues for in-product icons ux User experience issues
Milestone

Comments

@agauniyal
Copy link

Is it possible to include more icons to be shown in status bar? Currently vscode supports only octoicons, which might not have all required icons.
Including https://github.com/vorillaz/devicons/ would be a good idea too.

@jrieken
Copy link
Member

jrieken commented Aug 12, 2016

I am in favour of more glyphs, tho unsure about the devicons cos the a missing license. Do you have other suggestions?

@jrieken jrieken self-assigned this Aug 12, 2016
@jrieken jrieken added the ux User experience issues label Aug 12, 2016
@agauniyal
Copy link
Author

Devicons iconic font is free to use and licensed under MIT.

Anyways there are plenty to choose from. Most popular is - http://fontawesome.io/icons/

@bpasero
Copy link
Member

bpasero commented Aug 12, 2016

@jrieken fyi we could update to a newer octicon version, I think they added some new icons and updated existing ones. we are on a quite old version.

@mrmlnc
Copy link
Contributor

mrmlnc commented Aug 13, 2016

@bpasero, Maybe then remove extra font versions (ttf, eot, woff) as we have one "browser" - Chrome?

After update to a newer octicon version we get 10 new icons and lose 1 icon (color-mode). New icons:

  1. bold
  2. text-size
  3. italic
  4. tasklist
  5. logo-gist
  6. verified
  7. smiley
  8. unverified
  9. grabber
  10. plus-small

@jrieken jrieken added this to the August 2016 milestone Aug 15, 2016
@jrieken jrieken added the feature-request Request for new features or functionality label Aug 15, 2016
@jrieken
Copy link
Member

jrieken commented Aug 15, 2016

also removes

screen-normal
screen-full

Unsure how much of a breakage that is...

@bpasero
Copy link
Member

bpasero commented Aug 15, 2016

That sucks, but maybe we can detect this and offer some kind of migration. Or actually build our own fork of Octicon that still includes these removed icons to have a more complete set.

@jrieken
Copy link
Member

jrieken commented Aug 15, 2016

Yeah, we could bundle both and use the old if one of the three removed was used (have a special class name maybe)

@ryanoasis
Copy link

Hey just stumbled upon this and don't necessarily mean to self promote but could nerd fonts be of help for this?

@jrieken
Copy link
Member

jrieken commented Aug 24, 2016

@aeschli Any API with which I can reuse your existing work on icon sets?

@aeschli
Copy link
Contributor

aeschli commented Aug 24, 2016

We should think of making an icon contribution point where an extension can publish a list of named icons. Such a named icon could then be used at places like the status line (maybe even in the completion proposals list?)
The icons can be defined in a font or be an SVG located in the extension.
The file icon theme could also use that contribution point. Right now the file icon theme definition file contains both: Icon definitions and file to icon associations.

@jrieken
Copy link
Member

jrieken commented Aug 25, 2016

Right now the file icon theme definition file contains both: Icon definitions and file to icon associations.

Would it make sense to break thing up into icon set and icon association with this milestone? Then we don't end up with two stories of defining icons that are reusable and those that aren't reusable?

@jrieken
Copy link
Member

jrieken commented Aug 26, 2016

@aeschli ping.

@jrieken jrieken modified the milestones: September 2016, August 2016 Aug 29, 2016
@jrieken
Copy link
Member

jrieken commented Aug 29, 2016

Moving to September as this grew larger but also into a more powerful future-proof story.

@jrieken jrieken removed this from the September 2016 milestone Sep 13, 2016
@nfantone
Copy link

@aeschli

The icons can be defined in a font or be an SVG located in the extension.

Is this currently possible or are you planning on supporting it in a near future? Because many of the file icon theme repos I've seen contain icons in .png format.

@aeschli
Copy link
Contributor

aeschli commented Sep 19, 2016

File icon sets can also use png.

@nfantone
Copy link

@aeschli Right. My question was more about font-faces. I know .png files can be used, I was asking about whether you could use something like FontAwesome or Devicons on a custom theme.

@joaomoreno
Copy link
Member

Proposal

I'd love to reference icons from an Icon Theme in the status bar. We could use the $(theme_id:icon_id) syntax, provided that : isn't a valid id character... which likely isn't true; but we can surely find some syntax. Both SVG/PNG and font glyphs should be supported.

  • theme_id matches the Icon Theme identifier contributes.iconThemes[].id
  • icon_id matches the one of that theme's icons in the iconDefinitions section

@aeschli @jrieken thoughts?

@joaomoreno joaomoreno self-assigned this Feb 9, 2017
@jrieken
Copy link
Member

jrieken commented Feb 9, 2017

I like the proposal and given my understand of @aeschli's work it should be doable like that

@jrieken jrieken added the api label Feb 9, 2017
@aeschli
Copy link
Contributor

aeschli commented Feb 9, 2017

What if a theme id can not be found? Or does it mean that practice you can only reference the minimal and seti theme?

@joaomoreno
Copy link
Member

If both ids don't match anything, no icon will be shown. Possibly we can print a message to the console. It should be possible to reference any icon from any icon theme.

@aeschli
Copy link
Contributor

aeschli commented Feb 9, 2017

Wouldn't you rather want to specify an abstract icon identifier ('folder', 'errorIcon') that then can be provided by icon themes?
That would give us theming.

@joaomoreno
Copy link
Member

joaomoreno commented Feb 9, 2017

I see. How about:

  • $(theme:icon) picks a specific icon
  • $(:icon) picks a themeable icon from the active theme (file, folder, etc)
  • $(icon) picks an octicon

@aeschli
Copy link
Contributor

aeschli commented Feb 15, 2017

Yes, sounds good!

@miguelsolorio
Copy link
Contributor

Since this issue is about using additional icon packs, i'm going to merge this into #92791 where extensions can replace the default icons.

@miguelsolorio miguelsolorio added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 5, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality icons-product Issues for in-product icons ux User experience issues
Projects
None yet
Development

No branches or pull requests

9 participants