Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bg+powerline background blend behavior #4920

Merged
merged 8 commits into from
Dec 19, 2023

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Dec 19, 2023

When a with bg is selected, the cell's regular background will be blended
with 50% opacity selectionBackground in order to retain the bg color info
as well as getting the color to change and getting decent contrast.

This commit also fixes a terrible, nasty bug where the standalone shared
renderer tests were causing the terminal to open multiple times and not
get the WebGL addon activated the second time. So some tests were actually
testing the DOM renderer :o

Fixes #4918


WebGL only for now

No selection:

image

Selection:

image

When a with bg is selected, the cell's regular background will be blended
with 50% opacity selectionBackground in order to retain the bg color info
as well as getting the color to change and getting decent contrast.

This commit also fixes a terrible, nasty bug where the standalone shared
renderer tests were causing the terminal to open multiple times and not
get the WebGL addon activated the second time. So some tests were actually
testing the DOM renderer :o

Fixes xtermjs#4918
@Tyriar Tyriar added this to the 5.4.0 milestone Dec 19, 2023
@Tyriar Tyriar self-assigned this Dec 19, 2023
@Tyriar Tyriar marked this pull request as ready for review December 19, 2023 16:45
@Tyriar Tyriar enabled auto-merge December 19, 2023 16:46
@Tyriar Tyriar merged commit 341d9f0 into xtermjs:master Dec 19, 2023
17 of 19 checks passed
Tyriar added a commit to Tyriar/xterm.js that referenced this pull request Jan 30, 2024
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.

Allow background color to be seen through opaque background
1 participant