Skip to content

fix(scm): use proper default label foreground for history item#308802

Open
hecticme wants to merge 1 commit intomicrosoft:mainfrom
hecticme:fix/default-history-item-color
Open

fix(scm): use proper default label foreground for history item#308802
hecticme wants to merge 1 commit intomicrosoft:mainfrom
hecticme:fix/default-history-item-color

Conversation

@hecticme
Copy link
Copy Markdown
Contributor

@hecticme hecticme commented Apr 9, 2026

Close #308796

Use historyItemHoverDefaultLabelForeground instead of foreground as the fallback foreground color of history item badge.

A theme that has historyItemHoverDefaultLabelForeground will now use same color in the graph compared to the hover dialog.

Please take a look at the yellow badge on the left panel:

Before After
image image

This setting now does what its name suggests:

{
  "workbench.colorCustomizations": {
    "scmGraph.historyItemHoverDefaultLabelForeground": "#000000",
    
    // "foreground": "#000000", // No longer has an effect on badge label.
  }
}

Copilot AI review requested due to automatic review settings April 9, 2026 14:59
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

@lszomoru

Matched files:

  • src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.ts

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 fixes SCM Graph history badge label theming by using the dedicated scmGraph.historyItemHoverDefaultLabelForeground color as the fallback foreground for uncolored history item badges, aligning the graph badge appearance with the hover dialog.

Changes:

  • Switch badge label fallback foreground from global foreground to historyItemHoverDefaultLabelForeground.
  • Update imports accordingly in the history view pane renderer.

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.

SCM Graph - History item label doesn't use its own fallback foreground color

3 participants