Strange color issue after adding Windows UI dependence #20637

Open
opened 2026-01-31 07:19:45 +00:00 by claunia · 0 comments
Owner

Originally created by @xarthurx on GitHub (Oct 10, 2023).

Windows Terminal version

1.18.2681.0

Windows build number

10.0.19045.0

Other Software

Powershell 7.3.8
oh-my-posh

Steps to reproduce

Configuring Powershell prompt with a segment:

      "segments": [
        {
          "type": "os",
          "style": "diamond",
          "background": "#20649c",
          "foreground": "#fff",
          "leading_diamond": "\ue0c7",
          "trailing_diamond": "\ue0c6",
          "properties": {
            "style": "folder"
          }
        },

Expected Behavior

The cmd prompt is shown correctly -- without those white reverted color.

Actual Behavior

I got the prompt like img below:
image

The white dots in the prompt is something emerged after I update Windows Terminal with winget, and noticed there is a new dependence called something like Windows XML UI (sorry that I cannot find the package...)

FYI, the key factor is leading_diamond keyword.

Perhaps an issue in calculating the background color?

Originally created by @xarthurx on GitHub (Oct 10, 2023). ### Windows Terminal version 1.18.2681.0 ### Windows build number 10.0.19045.0 ### Other Software Powershell 7.3.8 oh-my-posh ### Steps to reproduce Configuring Powershell prompt with a segment: ```pwsh "segments": [ { "type": "os", "style": "diamond", "background": "#20649c", "foreground": "#fff", "leading_diamond": "\ue0c7", "trailing_diamond": "\ue0c6", "properties": { "style": "folder" } }, ``` ### Expected Behavior The cmd prompt is shown correctly -- without those white reverted color. ### Actual Behavior I got the prompt like img below: ![image](https://github.com/microsoft/terminal/assets/1921878/f72c14ea-e34f-41bc-b77e-a6dc9cf7a8c9) The white dots in the prompt is something emerged after I update Windows Terminal with `winget`, and noticed there is a new dependence called something like `Windows XML UI` (sorry that I cannot find the package...) FYI, the key factor is `leading_diamond` keyword. Perhaps an issue in calculating the background color?
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:19:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20637