Skip to content

Fix Opacity in Windows 10, again#12255

Merged
2 commits merged intomainfrom
dev/migrie/b/11743-win10-opacity-is-hard-02
Jan 26, 2022
Merged

Fix Opacity in Windows 10, again#12255
2 commits merged intomainfrom
dev/migrie/b/11743-win10-opacity-is-hard-02

Conversation

@zadjii-msft
Copy link
Member

More fallout from the settings refactor. Probably because testing on a Windows
10 device is hard, because you actually need a physical machine to get acrylic
to behave correctly.

Basically, the code is simpler now, but we missed the windows 10 only edge case
where acrylic can get turned on, but we forget to enable the acrylic brush, so
it just stays off.

Refer to #11619 where this regressed, and #11643, #12229, because this is just a
hard problem apparently

  • Closes How can I prevent Windows Terminal Preview getting brighter when I click on it?  #11743. Technically OP is complaining about behavior that's
    by-design, but it made me realize this regressed in 1.12.
  • No tests on this part of the TermControl unfortunately.
  • Hauled out my old Win10 laptop to verify that opacity works right:
    • A fresh profile isn't created with any opacity
    • Mouse wheeling turns on acrylic
    • Using opacity only in the settings still stealthily enables acrylic

More fallout from the settings refactor. Probably because testing on a Windows
10 device is hard, because you actually need a physical machine to get acrylic
to behave correctly.

Basically, the code is simpler now, but we missed the windows 10 only edge case
where acrylic can get turned on, but we forget to enable the acrylic brush, so
it just stays off.

Refer to #11619 where this regressed, and #11643, #12229, because this is just a
hard problem apparently

* [x] Closes #11743. Technically OP is complaining about behavior that's
  by-design, but it made me realize this regressed in 1.12.
* [ ] No tests on this part of the TermControl unfortunately.
* [x] Hauled out my old Win10 laptop to verify that opacity works right:
  - [x] A fresh profile isn't created with any opacity
  - [x] Mouse wheeling turns on acrylic
  - [x] Using `opacity` only in the settings still stealthily enables acrylic
@ghost ghost added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree. labels Jan 25, 2022
@DHowett
Copy link
Member

DHowett commented Jan 25, 2022

backport desired?

@zadjii-msft
Copy link
Member Author

@DHowett Yes? Not sure how easy this is to get into 1.12.

@zadjii-msft
Copy link
Member Author

wait but if the refactor isn't in 1.12, then this should work fine on 1.12. Yea wait ignore me. This ACTUALLY regressed in 1.13, not 1.12. So no need to backport

@DHowett
Copy link
Member

DHowett commented Jan 25, 2022

OK great!

@DHowett DHowett added the Needs-Second It's a PR that needs another sign-off label Jan 25, 2022
Comment on lines 454 to 455
// GH#11743: Make sure to use the Core's current UseAcrylic value, not
// the one from the settings.
Copy link
Member

Choose a reason for hiding this comment

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

nit: It's clear from the code that it's using the core and not the settings UseAcrylic value. This comment can be improved by summarizing why this is important.

@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 26, 2022
@ghost
Copy link

ghost commented Jan 26, 2022

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 15a0475 into main Jan 26, 2022
@ghost ghost deleted the dev/migrie/b/11743-win10-opacity-is-hard-02 branch January 26, 2022 12:57
@ghost
Copy link

ghost commented Feb 3, 2022

🎉Windows Terminal Preview v1.13.10336.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Settings Issues related to settings and customizability, for console or terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How can I prevent Windows Terminal Preview getting brighter when I click on it?

3 participants