microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
108.2k stars 6.39k forks source link

FancyZones opacity not working, always fully opaque #31007

Open bobjoe400 opened 7 months ago

bobjoe400 commented 7 months ago

Microsoft PowerToys version

0.77.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

FancyZones

Steps to reproduce

Set opacity in FancyZones to any opacity, and move a window to a zone using the hotkey.

✔️ Expected Behavior

Hover window over a zone will show a zone of the opacity selected in the FancyZones editor.

❌ Actual Behavior

Opacity is always fully opaque, no matter the opacity setting in FancyZones

Here's a screenshot of the issue: FancyZonesIssueScreenshot

Here's a video of the issue: FancyZonesOpacityBug.webm

Other Software

Processor AMD Ryzen 7 5800X3D 8-Core Processor 3.40 GHz Installed RAM 32.0 GB Device ID F1C71909-546E-47DD-8446-8979E60A9B88 Product ID 00330-80000-00000-AA855 System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display

Edition Windows 10 Pro Version 22H2 Installed on ‎9/‎30/‎2022 OS build 19045.3930 Experience Windows Feature Experience Pack 1000.19053.1000.0

image

bobjoe400 commented 7 months ago

This feature worked before I updated PowerToys to the latest version.

TheJoeFin commented 7 months ago

This could be caused by the app Mica For Everyone. Please see #28217 for more details on how to resolve this incompatibility. Does this help? /needinfo

Jay-o-Way commented 7 months ago

@SeraphimaZykova do you happen to know if anything changed in the latest version, that could possibly lead to this?

bobjoe400 commented 7 months ago

This could be caused by the app Mica For Everyone. Please see #28217 for more details on how to resolve this incompatibility. Does this help? /needinfo

No I do not have this app installed.

SeraphimaZykova commented 7 months ago

@SeraphimaZykova do you happen to know if anything changed in the latest version, that could possibly lead to this?

No changes should have affected this behavior in the latest update. @bobjoe400, could you please verify if it happens with every semi-transparent window? A few examples I can assume are PowerToys TextExtractor and AlwaysOnTop.

Jay-o-Way commented 7 months ago

@SeraphimaZykova Could it be related to SetLayeredWindowAttributes, like in #29411, maybe? @bobjoe400 can you tell if this happens with every setting for the colors, both in PT Settings and the Windows accent color?

bobjoe400 commented 7 months ago

Welp pals,

It appears to have fixed itself after a restart. I apologize that I didn't try the classic, "turn it off and back on again" approach before coming to y'all.

giphy (1)

However, there is an interesting behavior that I have noticed Windows having, that I believe is related to this issue.

Here's my personalization settings: image

After I do a graphics driver update through Nvidia's driver update tool or my graphics driver/adapter crash and recovers, and then I do not restart Windows after either occasion, the task bar changes from its normal 0x1e1e1e dark transparent gray to a 0x000000 opaque black.

The last time that I checked on originally posted issue was before I restarted my computer last night due to an unrelated reason. A few days ago an on old game that I was trying to modify had ended up crashing my graphics driver/adapter and I hadn't restarted since the crash. (Don't bully me for having my computer on for days at a time)

I believe that the originally posted issue started after this crash but I cannot be for certain. I can be certain, however, that the taskbar does the above behavior after every driver update.

I posture that the same issue that is causing my taskbar to change color/transparency upon a graphics driver restart (which is happening in either an update or a recoverable crash) is causing FancyZones to not use the correct color/transparency settings.

The idea of color issues causing this to happen being mentioned here:

Could it be related to SetLayeredWindowAttributes, like in #29411, maybe? @bobjoe400 can you tell if this happens with every setting for the colors, both in PT Settings and the Windows accent color?

Made me think of this.