Skip to content

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

@hecticme

Description

@hecticme

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.115.0 (Universal)
  • OS Version: Darwin arm64 25.4.0

Steps to Reproduce:

  1. Enable badges of all history item groups:
{
  "scm.graph.badges": "all"
}
  1. Open Source Control Graph panel. Use "Auto" as history item references.
Image

Badges that are outside of "Auto" scope currently use:

  • historyItemHoverDefaultLabelBackground for the background.
  • foreground for the text color.

This feels a bit inconsistent because it doesn’t match how the current branch badge is styled.

The overall foreground is used for badge text color. As a result, in certain themes, such as "Tomorrow Night Blue", the text doesn’t stand out well against the badge background, making it harder to read. Trying to fix this via user settings isn’t ideal either, since changing foreground affects other UI elements, not just these badges.

{
  "workbench.colorCustomizations": {
    // This doesn't affect badge foreground as expected.
    "scmGraph.historyItemHoverDefaultLabelForeground": "#000000",

    // This does but it affects other texts as well.
    "foreground": "#000000"
  }
}

Metadata

Metadata

Assignees

Labels

new releaseIssues found in a recent release of VS Code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions