Create an outline shader for increased legibility against background images #12372

Open
opened 2026-01-31 03:13:50 +00:00 by claunia · 0 comments
Owner

Originally created by @Regnander on GitHub (Feb 2, 2021).

Originally assigned to: @zadjii-msft on GitHub.

Description of the new feature/enhancement

Note: This was originally suggested in #7809 but the discussion instead turned into how to change the color of the font itself before it was closed, so I'll try to be more specific right from the start and also provide some images.

I like using images as backgrounds for Command Prompt and Git Bash, but the text tends to blend into the image in some places and create a bad contrast (as seen below).

Background image source: https://unsplash.com/photos/MPqbZXcvAvU

Proposed technical implementation details (optional)

I want to be able to set a text background with something like a fontBackground property in the settings, complete with a #rrggbbaa format so it's possible to have it semi-transparent.

What we have now What I want (mockup)
Originally created by @Regnander on GitHub (Feb 2, 2021). Originally assigned to: @zadjii-msft on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> > Note: This was originally suggested in #7809 but the discussion instead turned into how to change the color of the **_font itself_** before it was closed, so I'll try to be more specific right from the start and also provide some images. I like using images as backgrounds for Command Prompt and Git Bash, but the text tends to blend into the image in some places and create a bad contrast (as seen below). ![][terminal text bg off] _Background image source: https://unsplash.com/photos/MPqbZXcvAvU_ # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> I want to be able to set a text background with something like a `fontBackground` property in the settings, complete with a `#rrggbbaa` format so it's possible to have it semi-transparent. | What we have now | What I want (mockup) | | ------------------------------- | ------------------------------ | | ![][terminal text bg off small] | ![][terminal text bg on small] | [terminal text bg off]: https://user-images.githubusercontent.com/17113053/106393309-a36f0a00-63f6-11eb-8bf7-93e5694a114b.png [terminal text bg off small]: https://user-images.githubusercontent.com/17113053/106519213-439e5f00-64db-11eb-9d2a-c5677571ed3f.png [terminal text bg on small]: https://user-images.githubusercontent.com/17113053/106519216-4436f580-64db-11eb-9e9f-74e0b2255083.png
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12372