Feature Request: Background color transparency #7171

Open
opened 2026-01-31 00:57:01 +00:00 by claunia · 1 comment
Owner

Originally created by @parkovski on GitHub (Mar 27, 2020).

Description of the new feature/enhancement

This feature would add a setting to change the opacity of the text background when it is set. This is not the screen background which already has this feature. It is also not per-color transparency. The rationale for this is that I have an image background, but I also use vim a lot which tends to want to set a solid background.

Basically, I can do this:
terminal-transparent

Or this:
terminal-opaque

And I'd like to be able to do (roughly) this:
terminal-semitransparent

It'd look a little different because some solid background is still there, but that should give you the general idea.

Proposed technical implementation details (optional)

Add a profile setting backgroundOpacity. If this is lower than 1, when a cell is printed with a custom background color, that color is blended with the default terminal background instead of being fully opaque.

Bonus: backgroundBlend - Different color blend modes.

I'll also accept pointers on how to add these settings and pipe that info through to the renderer :).

Originally created by @parkovski on GitHub (Mar 27, 2020). # Description of the new feature/enhancement This feature would add a setting to change the opacity of the text background when it is set. This is _not_ the screen background which already has this feature. It is also not per-color transparency. The rationale for this is that I have an image background, but I also use vim a lot which tends to want to set a solid background. Basically, I can do this: ![terminal-transparent](https://user-images.githubusercontent.com/1094150/77780948-1ebf9c80-702b-11ea-95e6-d89d84d12f1a.png) Or this: ![terminal-opaque](https://user-images.githubusercontent.com/1094150/77781040-44e53c80-702b-11ea-8152-cd1efe44cb0d.png) And I'd like to be able to do (roughly) this: ![terminal-semitransparent](https://user-images.githubusercontent.com/1094150/77781044-46af0000-702b-11ea-8120-cc4f2a51cc57.png) It'd look a little different because some solid background is still there, but that should give you the general idea. # Proposed technical implementation details (optional) Add a profile setting `backgroundOpacity`. If this is lower than 1, when a cell is printed with a custom background color, that color is blended with the default terminal background instead of being fully opaque. Bonus: `backgroundBlend` - Different [color blend modes](https://en.wikipedia.org/wiki/Blend_modes). I'll also accept pointers on how to add these settings and pipe that info through to the renderer :).
Author
Owner

@zadjii-msft commented on GitHub (Mar 30, 2020):

I don't hate this idea, though I'm not sure it's totally feasible in the renderer currently. I'd love to have someone take a look in the DxRenderer and see if this is possible ☺️

I'd maybe also name it textBackgroundOpacity to make it clear that this is only the opacity for the background of text drawn in the Terminal

@zadjii-msft commented on GitHub (Mar 30, 2020): I don't hate this idea, though I'm not sure it's totally feasible in the renderer currently. I'd love to have someone take a look in the `DxRenderer` and see if this is possible ☺️ I'd maybe also name it `textBackgroundOpacity` to make it clear that this is only the opacity for the background of text drawn in the Terminal
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7171