Merged
Conversation
3 tasks
|
Docs Build status updates of commit 9d9ff60: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
ghost
pushed a commit
to microsoft/terminal
that referenced
this pull request
Jan 12, 2022
Adds an action which can be used to change the opacity at runtime. This is a follow up to some of the other work I had been doing around opacity and settings previewing at the end of the year.
> edit: pseudo-spec
>
> * `adjustOpacity`:
> * `"opacity"`: (**required**) an integer number to set the opacity to.
> * `"relative"`: (defaults to `true`)
> * 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}
It's preview-able too, which is neat.

* [x] Closes #11205
* [x] I work here
* [x] Docs updated: MicrosoftDocs/terminal#477
|
Docs Build status updates of commit 9d9ff60: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
from microsoft/terminal#12092
Adjust opacity (Preview)
This changes the opacity of the window. If
relativeis set to true, it will adjust the opacity relative to the current opacity. Otherwise, it will set the opacity directly to the givenopacityCommand name:
adjustOpacityDefault bindings:
{ "command": { "action": "adjustOpacity", "relative": false, "opacity": 0 } }, { "command": { "action": "adjustOpacity", "relative": false, "opacity": 25 } }, { "command": { "action": "adjustOpacity", "relative": false, "opacity": 50 } }, { "command": { "action": "adjustOpacity", "relative": false, "opacity": 100 } }Actions
opacityrelativerelativeopacityparameter. If false, set the opacity to exactly that value.Important
This feature is only available in Windows Terminal Preview.