Action for adjusting opacity at runtime #15178

Closed
opened 2026-01-31 04:30:41 +00:00 by claunia · 3 comments
Owner

Originally created by @mika-mux on GitHub (Sep 12, 2021).

Originally assigned to: @zadjii-msft on GitHub.

Description of the new feature/enhancement

I love the pane of glass look for Terminal. However, when using a dark theme for example in Terminal and the window is in front-of a light colored windows (i.e. Browser with a white page), the text is unreadable in terminal. And when the Terminal is in front of a dark background the text color in Terminal is nice and crisp. What would be great is if the Terminal can detect the underlying window color and dynamically adjust the opacity to ensure the text of the Terminal window remains readable regardless of the window that Terminal is in front of.

Can't read text in Terminal with transparency in front of a light window when using a dark theme. In order to keep the pane of glass look, I need to keep adjusting the transparency setting based on the background colors (background theme and/or window the Terminal is overlaying). New functionality would automatically adjust this or at a minimum provide a hot key to adjust transparency on demand

Proposed technical implementation details (optional)

Originally created by @mika-mux on GitHub (Sep 12, 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 I love the pane of glass look for Terminal. However, when using a dark theme for example in Terminal and the window is in front-of a light colored windows (i.e. Browser with a white page), the text is unreadable in terminal. And when the Terminal is in front of a dark background the text color in Terminal is nice and crisp. What would be great is if the Terminal can detect the underlying window color and dynamically adjust the opacity to ensure the text of the Terminal window remains readable regardless of the window that Terminal is in front of. <!-- 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). --> Can't read text in Terminal with transparency in front of a light window when using a dark theme. In order to keep the pane of glass look, I need to keep adjusting the transparency setting based on the background colors (background theme and/or window the Terminal is overlaying). New functionality would automatically adjust this or at a minimum provide a hot key to adjust transparency on demand # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Resolution-Fix-CommittedArea-SettingsIssue-TaskProduct-Terminal labels 2026-01-31 04:30:42 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 13, 2021):

Wow, someone who wants a transparency feature that's not #11180, what a pleasant surprise 😅

I'm pretty sure there's not a good way for the Terminal to be able to know what the contents of the screen are underneath our window. However:

or at a minimum provide a hot key to adjust transparency on demand

Now that's something I can get behind, and something I was already planning for landing once #11180 merged and once I did the control settings refactor for #5000, so I'll leave this open to track that. Thanks!


edit: pseudo-spec

  • setOpactiy:
    • "opacity": (required) an integer number to set the opacity to.
    • "relative": (defaults to false)
      • If false, set the opacity to the given value, which should be between [0, 100].
      • If true, then use opacity as a relative adjustment to the current opacity. So the implementation would get the current opacity for this pane, then add this action's opacity to that value. Should be between [-100, 100]

This would allow both setting exactly 25% opacity with an action, and binding an action that increases/decreases the opacity one {amount}

@zadjii-msft commented on GitHub (Sep 13, 2021): Wow, someone who wants a transparency feature that's not #11180, what a pleasant surprise 😅 I'm pretty sure there's not a good way for the Terminal to be able to know what the contents of the screen are underneath our window. However: > or at a minimum provide a hot key to adjust transparency on demand Now that's something I can get behind, and something I was already planning for landing once #11180 merged and once I did the control settings refactor for #5000, so I'll leave this open to track that. Thanks! <hr> edit: pseudo-spec * `setOpactiy`: * `"opacity"`: (**required**) an integer number to set the opacity to. * `"relative"`: (defaults to `false`) * If false, set the opacity to the given value, which should be between [0, 100]. * If true, then use `opacity` as a relative adjustment to the current opacity. So the implementation would get the current opacity for this pane, then add this action's opacity to that value. Should be between [-100, 100] This would allow both setting exactly 25% opacity with an action, and binding an action that increases/decreases the opacity one {amount}
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2021):

adjust-opacity-preview-001

dev/migrie/f/11205-adjustOpacity is ready to go, but it's targeting #11619 so I need that reviewed first

@zadjii-msft commented on GitHub (Nov 8, 2021): ![adjust-opacity-preview-001](https://user-images.githubusercontent.com/18356694/140785805-5eecf6ec-0933-40e4-bcba-41b88d25b6a8.gif) `dev/migrie/f/11205-adjustOpacity` is ready to go, but it's targeting #11619 so I need that reviewed first
Author
Owner

@ghost commented on GitHub (Feb 3, 2022):

:tada:This issue was addressed in #12092, which has now been successfully released as Windows Terminal Preview v1.13.10336.0.🎉

Handy links:

@ghost commented on GitHub (Feb 3, 2022): :tada:This issue was addressed in #12092, which has now been successfully released as `Windows Terminal Preview v1.13.10336.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10336.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15178