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

API: Contributable icons #20271

Closed
joaomoreno opened this issue Feb 9, 2017 · 1 comment
Closed

API: Contributable icons #20271

joaomoreno opened this issue Feb 9, 2017 · 1 comment
Assignees
Labels
api *duplicate Issue identified as a duplicate of another issue(s)

Comments

@joaomoreno
Copy link
Member

joaomoreno commented Feb 9, 2017

Currently icons from extensions seem to come in via:

  • ThemableDecorationAttachmentRenderOptions.contentIconPath: Uri
  • ThemableDecorationRenderOptions.gutterIconPath: Uri
  • DecorationRenderOptions.gutterIconPath: Uri
  • Status bar $(octicon) style icons.

The first three are extensible at will. The status bar icons are currently restricted to Octicons.

It would be awesome to have a contribution story here. This could even solve #4201, if we move the completion item icons to this mechanism, by having the default icons be contributed in the same way.

Proposal

Introduce a contributes.icons section:

"icons": [
  {
    "name": "foo",
    "path": "path/to/svg/or/png",
    "dark": {
      "path": "optional/path/to/dark/svg/or/png"
    }
  }
]
@jrieken
Copy link
Member

jrieken commented Feb 9, 2017

close this as a dupe #10455. We should explore to use icon themes for this. They already define a symbolic-name for icons, like octicons, which then can reference is strings etc

@jrieken jrieken closed this as completed Feb 9, 2017
@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 9, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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)
Projects
None yet
Development

No branches or pull requests

2 participants