Skip to content

Use SVG icon instead of codicon in Open in Agents titlebar widget#315286

Merged
sandy081 merged 1 commit into
mainfrom
sandy081/agents-widget-svg-icon
May 8, 2026
Merged

Use SVG icon instead of codicon in Open in Agents titlebar widget#315286
sandy081 merged 1 commit into
mainfrom
sandy081/agents-widget-svg-icon

Conversation

@sandy081
Copy link
Copy Markdown
Member

@sandy081 sandy081 commented May 8, 2026

Reverts the agents widget icon from codicon-agent back to the sessions-icon.svg background image with grayscale filter, matching the pattern used by the Open in VS Code widget.

Reverts the agents widget icon from codicon-agent back to the
sessions-icon.svg background image with grayscale filter, matching
the pattern used by the Open in VS Code widget.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 8, 2026 15:29
@sandy081 sandy081 enabled auto-merge (squash) May 8, 2026 15:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “Open in Agents” titlebar widget to use the existing Sessions SVG asset (with a grayscale→color hover effect) instead of the codicon-agent glyph, aligning its visual treatment with the “Open in VS Code” titlebar widget used in the Sessions window.

Changes:

  • Switched the widget icon from a codicon font glyph to a sessions-icon.svg background image with grayscale(1) by default and full color on hover/focus.
  • Added motion-aware CSS transitions for the icon’s filter (enable-motion vs reduce-motion).
  • Removed the codicon classes from the rendered icon element so the new CSS background-image styling applies.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/electron-browser/agentSessions/media/openInAgents.css Replaces codicon-based icon styling with an SVG background-image + grayscale/hover behavior and motion-aware filter transitions.
src/vs/workbench/contrib/chat/electron-browser/agentSessions/agentSessionsActions.ts Removes codicon-agent classes from the icon <span> so it is styled via the updated CSS background-image rules.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@sandy081 sandy081 merged commit 95ad92d into main May 8, 2026
29 checks passed
@sandy081 sandy081 deleted the sandy081/agents-widget-svg-icon branch May 8, 2026 15:46
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants