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

Make ctrl+shift+scroll toggle acrylic on/off at extrema #4853

Merged

Conversation

abhijeetviswam
Copy link
Contributor

@abhijeetviswam abhijeetviswam commented Mar 9, 2020

Summary of the Pull Request

If UseAcrylic is disabled, CTRL+SHIFT+SCROLL would enable it, without having to change the setting in profile.json manually.

References

#661

PR Checklist

Detailed Description of the Pull Request / Additional comments

If UseAcrylic is disabled, CTRL+SHIFT+Scroll would enable it and acrylic background brush is initialized.

Validation Steps Performed

  1. Set "useAcrylic" to false for the any profile in profile.json
  2. Open terminal window for that profile.
  3. CTRL+SHIFT+MouseScroll
    Acrylic background opacity should change according to mouse scroll

acrylicTransition

@abhijeetviswam abhijeetviswam marked this pull request as ready for review March 9, 2020 20:20
@zadjii-msft zadjii-msft added Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal. labels Mar 10, 2020
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also turn off acrylic if the user hits 100% opacity?

I'm fine with this the way it is, it's quite clever 😄

@abhijeetviswam
Copy link
Contributor Author

Should we also turn off acrylic if the user hits 100% opacity?

Yeah, that makes sense. I did try it initially, but I was seeing that it goes back to acrylic mode if mouse scrolls one more step after hitting 100% mark.

Let me see if I can figure something to work around it.

@abhijeetviswam
Copy link
Contributor Author

@DHowett-MSFT, added change to turn off acrylic if opacity hits 100%.

@DHowett-MSFT
Copy link
Contributor

Just needs invoke-codeformat run on it now! 😄

@DHowett-MSFT DHowett-MSFT changed the title CTRL+Shift+Scroll should enable acrylic if it's not on already Make ctrl+shift+scroll toggle acrylic on/off at extrema Mar 11, 2020
@DHowett-MSFT DHowett-MSFT merged commit e596943 into microsoft:master Mar 11, 2020
abhijeetviswam added a commit to abhijeetviswam/terminal that referenced this pull request Mar 12, 2020
If UseAcrylic is disabled, CTRL+SHIFT+SCROLL would enable it, without
having to change the setting in profile.json manually.

1. Set "useAcrylic" to false for the any profile in profile.json
2. Open terminal window for that profile.
3. CTRL+SHIFT+MouseScroll
   Acrylic background opacity should change according to mouse scroll

## PR Checklist
* [x] CLA signed.
* [x] Tested manually
* [x] Updated documentation

Closes microsoft#661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CTRL+Shift+Scroll should enable acrylic if it's not on already
4 participants