Skip to content

RBG/RGBA theme colors don't work for custom dialog boxes #107335

@eamodio

Description

@eamodio

image

On my theme that red text color should be rgba(233, 217, 242, 0.82)

Here is the cause -- we are assuming it is hex with the fromHex call.

if (this.messageDetailElement && fgColor && bgColor) {
const messageDetailColor = Color.fromHex(fgColor).transparent(.9);
this.messageDetailElement.style.color = messageDetailColor.makeOpaque(Color.fromHex(bgColor)).toString();
}

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdialogsIssues with native and custom dialogsinsiders-releasedPatch has been released in VS Code Insidersverification-steps-neededSteps to verify are needed for verificationverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions