Skip to content

Images preview could use a nicer icon #304121

Closed

Description

@kycutler

Testing #303635

The default icon is very much text, not images:

Image

Activity

  1. arun-357 commented on Jun 11, 2026

    @arun-357
    Contributor

    Dmitriy Vasyura (@dmitrivMS) I'd like to work on this one. I've contributed two fixes in the image carousel area recently (#301984, #307446).

    Root cause: ImageCarouselEditorInput doesn't override getIcon(), so the modal label falls back to the default text-file icon.

    Planned approach — same pattern as the search editor (searchEditorInput.ts) and chat debug editor (chatDebugEditorInput.ts):

    const imageCarouselEditorIcon = registerIcon('image-carousel-editor-label-icon', Codicon.fileMedia, localize('imageCarouselEditorLabelIcon', 'Icon of the images preview editor label.'));
    
    // in ImageCarouselEditorInput
    override getIcon(): ThemeIcon {
    	return imageCarouselEditorIcon;
    }

    No other wiring is needed — modalEditorPart.ts already renders getIcon() in the label.

    I'm proposing $(file-media) as the icon; happy to use a different codicon (e.g. $(device-camera)) if you have a preference.

  2. dmitrivMS commented on Jun 11, 2026

    @dmitrivMS
    Collaborator

    Arunachalam Nachiappan (@arun-357) Sounds good to me.
    Lee Murray (@mrleemurray) Do you have suggestion on the icon?

  3. dmitrivMS commented on Jun 11, 2026

    @dmitrivMS
    Collaborator

    Arunachalam Nachiappan (@arun-357) You can proceed with PR, Lee can comment on it if he disagrees with icon choice.

  4. mrleemurray commented on Jun 11, 2026

    @mrleemurray
    Contributor

    We don't have an image specific icon (I will request one), but file-media could work in the short term:

    Image
  5. mrleemurray commented on Jun 11, 2026

    @mrleemurray
    Contributor

    cc davidhosejr (@davidhosejr) for ideas around an image file type icon

  6. arun-357 commented on Jun 11, 2026

    @arun-357
    Contributor

    PR is open and ready for review whenever you get a chance, Dmitriy Vasyura (@dmitrivMS).

  7. added
    unreleased
    on Jun 12, 2026
  8. added this to the 1.125.0 milestone on Jun 12, 2026
  9. vs-code-engineering commented on Jun 12, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #320951 for verification:

    Problem

    The Images Preview editor shows the default text-file icon in its modal header label, which doesn't represent image content:
    editorIcon1

    Fix

    ImageCarouselEditorInput never overrode getIcon(), so the label fell back to the default file icon. This change registers a dedicated icon and returns it from the input, following the same pattern used by other editor inputs (searchEditorInput.ts, chatDebugEditorInput.ts, extensionsInput.ts, etc.):

    const imageCarouselEditorIcon = registerIcon('image-carousel-editor-label-icon', Codicon.fileMedia, localize('imageCarouselEditorLabelIcon', 'Icon of the images preview editor label.'));
    
    // in ImageCarouselEditorInput
    override getIcon(): ThemeIcon {
    	return imageCarouselEditorIcon;
    }

    Notes:

    • $(file-media) is proposed as the icon — happy to switch to a different codicon if preferred.
    • Registering through registerIcon keeps the icon overridable by product icon themes, consistent with the other editor label icons.
    • No rendering changes needed: the modal header (modalEditorPart.ts) already renders getIcon() via the resource label, and the icon is sized by the shared .monaco-icon-label styles like every other editor icon.

    Before / After

    Before:
    editorIcon1

    After:
    editorIcon2
    editor3

    Source PR: #320951

  10. added
    insiders-released
    and removed
    unreleased
    on Jun 15, 2026
  11. locked and limited conversation to collaborators on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    image-carouselinsiders-releasedpolish

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions