Skip to content

Update codicon font sizes to use compact variable#317511

Draft
mrleemurray wants to merge 4 commits into
mainfrom
mrleemurray/spontaneous-teal-termite
Draft

Update codicon font sizes to use compact variable#317511
mrleemurray wants to merge 4 commits into
mainfrom
mrleemurray/spontaneous-teal-termite

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented May 20, 2026

This pull request standardizes the font size of Codicon icons across the application by replacing hardcoded font-size values in various CSS files with the CSS variable --vscode-codiconFontSize-compact. This change improves maintainability and ensures consistent icon sizing throughout the UI. Additionally, a few redundant or conflicting font-size rules have been removed, and some icon container dimensions have been updated for consistency.

Codicon font size standardization:

Icon size and dimension adjustments:

  • Updated width and height of certain icon containers (e.g., .agents-aquarium-toggle-logo, .sessionsTitleBarWidget .codicon) to align with the new standardized font size. [1] [2]

Removal of redundant or conflicting rules:

  • Removed unnecessary or conflicting hardcoded font-size rules for Codicon icons in several files, such as color picker, checks widget, chat input, and session list. [1] [2] [3] [4] [5]

These changes collectively ensure that icon sizing is consistent and controlled via a single CSS variable, making future adjustments easier and improving UI consistency.

Copilot AI review requested due to automatic review settings May 20, 2026 11:52
@mrleemurray mrleemurray enabled auto-merge (squash) May 20, 2026 11:52
@mrleemurray mrleemurray self-assigned this May 20, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@kycutler

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/media/browser.css

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/media/browser.css

@lszomoru

Matched files:

  • src/vs/workbench/contrib/scm/browser/media/scm.css

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 1c2dc57c Current: ecf94afc

Changed (44)

chat/input/chatInput/Default/Dark
Before After
before after
chat/input/chatInput/Default/Light
Before After
before after
chat/input/chatInput/WithArtifacts/Dark
Before After
before after
chat/input/chatInput/WithArtifacts/Light
Before After
before after
chat/input/chatInput/WithFileChanges/Dark
Before After
before after
chat/input/chatInput/WithFileChanges/Light
Before After
before after
chat/input/chatInput/WithTodos/Dark
Before After
before after
chat/input/chatInput/WithTodos/Light
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Light
Before After
before after
chat/input/chatInput/WithArtifactsAndFileChanges/Dark
Before After
before after
chat/input/chatInput/WithArtifactsAndFileChanges/Light
Before After
before after
chat/input/chatInput/Full/Dark
Before After
before after
chat/input/chatInput/Full/Light
Before After
before after
chat/chatToolRiskBadge/GreenInContext/Dark
Before After
before after
chat/chatToolRiskBadge/GreenInContext/Light
Before After
before after
chat/chatToolRiskBadge/OrangeInContext/Dark
Before After
before after
chat/chatToolRiskBadge/OrangeInContext/Light
Before After
before after
chat/chatToolRiskBadge/RedInContext/Dark
Before After
before after
chat/chatToolRiskBadge/RedInContext/Light
Before After
before after
chat/chatToolRiskBadge/GreenElicitationInContext/Dark
Before After
before after
chat/chatToolRiskBadge/GreenElicitationInContext/Light
Before After
before after
chat/chatToolRiskBadge/OrangeElicitationInContext/Dark
Before After
before after
chat/chatToolRiskBadge/OrangeElicitationInContext/Light
Before After
before after
chat/chatToolRiskBadge/RedElicitationInContext/Dark
Before After
before after
chat/chatToolRiskBadge/RedElicitationInContext/Light
Before After
before after
chat/chatToolRiskBadge/BadgeOffInContext/Dark
Before After
before after
chat/chatToolRiskBadge/BadgeOffInContext/Light
Before After
before after
chat/chatToolRiskBadge/BadgeOffWithDisclaimerInContext/Dark
Before After
before after
chat/chatToolRiskBadge/BadgeOffWithDisclaimerInContext/Light
Before After
before after
chat/chatToolRiskBadge/BadgeOffUnsandboxedInContext/Dark
Before After
before after
chat/chatToolRiskBadge/BadgeOffUnsandboxedInContext/Light
Before After
before after
chat/chatToolRiskBadge/BadgeOffUnsandboxedWithDisclaimerInContext/Dark
Before After
before after
chat/chatToolRiskBadge/BadgeOffUnsandboxedWithDisclaimerInContext/Light
Before After
before after
chat/widget/chatWidget/SimpleQA/Dark
Before After
before after
chat/widget/chatWidget/SimpleQA/Light
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Dark
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Light
Before After
before after
chat/widget/chatWidget/bugs/issue-309796-missing-backslash/Dark
Before After
before after
chat/widget/chatWidget/bugs/issue-309796-missing-backslash/Light
Before After
before after
chat/widget/chatWidget/MultiTurn/Dark
Before After
before after
chat/widget/chatWidget/MultiTurn/Light
Before After
before after
editor/inlineChatZoneWidget/InlineChatZoneWidget/Dark
Before After
before after
editor/inlineChatZoneWidget/InlineChatZoneWidget/Light
Before After
before after

blocks-ci screenshots changed

Replace the contents of test/componentFixtures/blocks-ci-screenshots.md with:

Updated blocks-ci-screenshots.md
<!-- auto-generated by CI — do not edit manually -->

#### editor/codeEditor/CodeEditor/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/67bfb687fd2818bd53771a60660541b9ed6f38b80d37da0aac15d267ecaeacec)

#### editor/codeEditor/CodeEditor/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/0469dd8d0a587d94a1eaec514c79917b93b9a38694ef2b767bb1892819ae0a55)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/4b5dc7e442efcb8e17d188ea01f33f52f63c6a8171ea212ccf0026e4c36f1db3)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/3f49f8c3063b7749f8388d74525f4de0a314c6f8016a557b12b33171db7d9f91)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/2fbc12507b59ff950d9612d2df92e6b39d8bf0bf500478e42eca2ead4d1ae206)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/4632ab04d1fdd7db9ab0e00cce10aefb7a6344eb8869dfce740309a8801cab73)
Patch
--- test/componentFixtures/blocks-ci-screenshots.md	2026-05-20 11:53:43.587532125 +0000
+++ /tmp/blocks-ci-updated.md	2026-05-20 11:58:06.568978242 +0000
@@ -7,10 +7,10 @@
 ![screenshot](https://hediet-screenshots.azurewebsites.net/images/0469dd8d0a587d94a1eaec514c79917b93b9a38694ef2b767bb1892819ae0a55)
 
 #### editor/inlineChatZoneWidget/InlineChatZoneWidget/Dark
-![screenshot](https://hediet-screenshots.azurewebsites.net/images/34445847f76a97dce08d34a25919c6a7f273425a1c602526d3798c9079f83723)
+![screenshot](https://hediet-screenshots.azurewebsites.net/images/4b5dc7e442efcb8e17d188ea01f33f52f63c6a8171ea212ccf0026e4c36f1db3)
 
 #### editor/inlineChatZoneWidget/InlineChatZoneWidget/Light
-![screenshot](https://hediet-screenshots.azurewebsites.net/images/b3b7ad4ccee01fe410c769addfc113b643549abf5cd53243d9709e5afecc7ec2)
+![screenshot](https://hediet-screenshots.azurewebsites.net/images/3f49f8c3063b7749f8388d74525f4de0a314c6f8016a557b12b33171db7d9f91)
 
 #### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Dark
 ![screenshot](https://hediet-screenshots.azurewebsites.net/images/2fbc12507b59ff950d9612d2df92e6b39d8bf0bf500478e42eca2ead4d1ae206)

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 standardizes many UI codicon font-size declarations by replacing hard-coded pixel values with the theme size token --vscode-codiconFontSize-compact, aiming for more consistent icon sizing across workbench, editor, and sessions surfaces.

Changes:

  • Replaced numerous fixed codicon font-size values with var(--vscode-codiconFontSize-compact) across workbench/editor/sessions CSS.
  • Updated some icon sizing rules in sessions UI (including width/height alignment in a few places).
  • Minor adjustments to a handful of remaining codicon sizes and related UI icon dimensions.

Reviewed changes

Copilot reviewed 44 out of 44 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/welcomeOnboarding/browser/media/variationA.css Use compact codicon size for keymap pill icons.
src/vs/workbench/contrib/testing/browser/media/testing.css Use compact codicon size for testing status icon.
src/vs/workbench/contrib/scm/browser/media/scm.css Use compact codicon size for SCM history/hover icons.
src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css Use compact codicon size for outline “bubble” decoration.
src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css Use compact codicon size for notebook cell status bar icons.
src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css Adjust notebook insert toolbar codicon font-size.
src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css Use compact codicon size for notebook cell chat status icon.
src/vs/workbench/contrib/notebook/browser/media/notebook.css Use compact codicon size for execution count icons.
src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css Use compact codicon size in merge editor headers.
src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css Use compact codicon size for inline chat status icons.
src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css Use compact codicon size for pre-release badge icon.
src/vs/workbench/contrib/extensions/browser/media/extension.css Use compact codicon size for extension list badge icons.
src/vs/workbench/contrib/debug/browser/media/debugViewlet.css Use compact codicon size for debug dropdown chevron.
src/vs/workbench/contrib/comments/browser/media/review.css Use compact codicon size for comment range glyph.
src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css Use compact codicon size for outline “bubble” decoration.
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Use compact codicon size across multiple chat widget icons.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css Use compact codicon size in thinking content header.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css Use compact codicon size within confirmation widget controls.
src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css Use compact codicon size for session picker icons.
src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css Use compact codicon size for models widget token limit icons.
src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css Use compact codicon size for embedded detail scope icon.
src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css Use compact codicon size for unified quick access icons.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css Use compact codicon size for agent host picker icons.
src/vs/workbench/contrib/browserView/electron-browser/media/browser.css Use compact codicon size in browser view UI (plus one icon size tweak).
src/vs/workbench/browser/parts/views/media/views.css Use compact codicon size in welcome/custom view tree elements.
src/vs/workbench/browser/parts/views/media/paneviewlet.css Use compact codicon size for pane header description icons.
src/vs/workbench/browser/parts/activitybar/media/activityaction.css Use compact codicon size for activity bar badge codicon content.
src/vs/sessions/contrib/sessions/browser/media/sessionsTitleBarWidget.css Use compact codicon size and align width/height to the token.
src/vs/sessions/contrib/sessions/browser/media/sessionsList.css Partially migrate session list codicon sizing to compact token.
src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostFilter.css Use compact codicon size for host filter icons/chevrons.
src/vs/sessions/contrib/chat/browser/media/newChatInSession.css Use compact codicon size for new chat session toolbar icons.
src/vs/sessions/contrib/chat/browser/media/chatWidget.css Use compact codicon size for sessions chat widget action icons.
src/vs/sessions/contrib/chat/browser/media/chatInput.css Use compact codicon size for sessions chat input toolbar icons.
src/vs/sessions/contrib/changes/browser/media/checksWidget.css Remove a codicon font-size override in CI checks badge.
src/vs/sessions/contrib/changes/browser/media/changesView.css Use compact codicon size for changes view header/indicators.
src/vs/sessions/contrib/aquarium/browser/media/aquarium.css Adjust agents aquarium toggle icon/logo sizing.
src/vs/sessions/browser/parts/mobile/mobileChatShell.css Use compact codicon size for phone-layout action label icons.
src/vs/platform/actionWidget/browser/actionWidget.css Use compact codicon size in action widget list rows.
src/vs/platform/actions/browser/menuEntryActionViewItem.css Use compact codicon size for menu entry dropdown label icons.
src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css Use compact codicon size for inline edit alternative action label.
src/vs/editor/contrib/hover/browser/hover.css Use compact codicon size for hover verbosity action icons.
src/vs/editor/contrib/colorPicker/browser/colorPicker.css Remove explicit picked-color codicon font-size.
src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css Use compact codicon size for accessible diff spacer icon.
src/vs/base/browser/ui/dropdown/dropdown.css Use compact codicon size for dropdown label icons.
Comments suppressed due to low confidence (3)

src/vs/sessions/contrib/changes/browser/media/changesView.css:87

  • In .changes-files-header-toolbar .action-label > .codicon, the font-size is now the compact token (likely 12px) but width/height are still hard-coded to 10px. That can clip the glyph or distort alignment. Consider sizing width/height consistently with the font-size token (or removing the fixed box sizing).
	> .codicon {
		font-size: var(--vscode-codiconFontSize-compact) !important;
		padding-left: 4px;
		width: 10px;
		height: 10px;
	}

src/vs/sessions/contrib/sessions/browser/media/sessionsList.css:113

  • session-icon > .codicon no longer sets a font-size. In the workbench, codicons default to 16px (.monaco-workbench .codicon[class*='codicon-']), which is a behavioral change from the previous 12px and may affect row layout/alignment. Consider setting an explicit font-size (e.g. var(--vscode-codiconFontSize-compact)) here to keep the icon sizing intentional.

This issue also appears on line 479 of the same file.

	.session-icon {
		display: flex;
		align-items: flex-start;
		line-height: 17px;

		> .codicon {
			flex-shrink: 0;
			height: 16px;
			display: flex;
			align-items: center;
			justify-content: center;
		}

src/vs/sessions/contrib/sessions/browser/media/sessionsList.css:485

  • In phone layout, .session-item .session-icon > .codicon now lacks a font-size, so it will likely revert to the workbench default 16px (previously 14px). Since this section has fixed heights/line-heights for the mobile row, consider explicitly setting the codicon size here (e.g. var(--vscode-codiconFontSize-compact) or another appropriate token) to avoid unintended layout shifts.
	.session-item .session-icon {
		line-height: 20px;

		> .codicon {
			height: 20px;
		}
	}

Comment thread src/vs/sessions/contrib/changes/browser/media/checksWidget.css
Comment thread src/vs/editor/contrib/colorPicker/browser/colorPicker.css
Comment thread src/vs/sessions/contrib/chat/browser/media/chatInput.css
@mrleemurray mrleemurray marked this pull request as draft May 20, 2026 14:08
auto-merge was automatically disabled May 20, 2026 14:08

Pull request was converted to draft

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.

2 participants