Skip to content

Support selection foreground in terminal#149837

Merged
Tyriar merged 1 commit intomainfrom
tyriar/149505
May 18, 2022
Merged

Support selection foreground in terminal#149837
Tyriar merged 1 commit intomainfrom
tyriar/149505

Conversation

@Tyriar
Copy link
Copy Markdown
Contributor

@Tyriar Tyriar commented May 18, 2022

Fixes #149505

HC dark:

image

HC light:

image

@Tyriar Tyriar added this to the May 2022 milestone May 18, 2022
@Tyriar Tyriar requested review from daviddossett and meganrogge May 18, 2022 16:46
@Tyriar Tyriar self-assigned this May 18, 2022
Copy link
Copy Markdown
Collaborator

@daviddossett daviddossett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thanks for doing this.

@@ -567,13 +567,15 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal {
const cursorColor = theme.getColor(TERMINAL_CURSOR_FOREGROUND_COLOR) || foregroundColor;
const cursorAccentColor = theme.getColor(TERMINAL_CURSOR_BACKGROUND_COLOR) || backgroundColor;
const selectionColor = theme.getColor(TERMINAL_SELECTION_BACKGROUND_COLOR);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: unrelated to this PR but perhaps this should be more explicit now that you have the foreground token.

E.g. selectionBackgroundColor

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tyriar Tyriar merged commit 6dae224 into main May 18, 2022
@Tyriar Tyriar deleted the tyriar/149505 branch May 18, 2022 16:56
@github-actions github-actions bot locked and limited conversation to collaborators Jul 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support terminal selection foreground color

2 participants