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

PowerToys Run: blue background on top of window #30206

Closed
ale-carra opened this issue Dec 5, 2023 · 20 comments
Closed

PowerToys Run: blue background on top of window #30206

ale-carra opened this issue Dec 5, 2023 · 20 comments
Assignees
Labels
Area-User Interface things that regard UX for PowerToys External Dependency This bug or feature isn't resolved, but it's following an external work item. Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-External External issue, unrelated to PowerToys Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. Status-Reproducible This issue was reproduced by a maintainer

Comments

@ale-carra
Copy link

Microsoft PowerToys version

0.76

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

PowerToys Run

Steps to reproduce

When I open PowerToys Run the top of the window has a blue background. This started occurring with the 0.76 update

✔️ Expected Behavior

No blue background in PowerToys Run

❌ Actual Behavior

See screenshot
imagen

Other Software

No response

@ale-carra ale-carra added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 5, 2023
@TheJoeFin
Copy link
Collaborator

/bugreport

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 6, 2023
@TheJoeFin TheJoeFin added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Area-User Interface things that regard UX for PowerToys labels Dec 6, 2023
@fuzzzerd
Copy link

fuzzzerd commented Dec 6, 2023

After upgrading to .76 I see a similar issue; however, it seems to be using the windows accent color, as mine is not blue; however, the extra "window" around the Run utility's area is very much the same.

extra window behind power toys run

@TheJoeFin
Copy link
Collaborator

@fuzzzerd if you can upload a bug report, that would be helpful

@fuzzzerd
Copy link

fuzzzerd commented Dec 6, 2023

@TheJoeFin included here: PowerToysReport_2023-12-06-13-04-38.zip

@ale-carra
Copy link
Author

Here's my report zip file
PowerToysReport_2023-12-06-22-32-15.zip

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Dec 7, 2023
@niels9001
Copy link
Contributor

Does anyone here has this setting enabled?

image

It's in W11 Settings => Personalization.

What happens if you turn it off?

@fuzzzerd
Copy link

fuzzzerd commented Dec 7, 2023

Does anyone here has this setting enabled?

image

It's in W11 Settings => Personalization.

What happens if you turn it off?

Yes. I had that setting enabled when I installed the update.

  • Turning it off, the PowerToys Run prompt shows up normally.
  • Turning it back on, the PowerToys RUn prompt continues to show up normally.
  • With Show accent color on title bars and window borders ON (and PowerToys showing up normally), I
    • Disabled PowerToys Run from the PowerToys menu
    • Re-enabled PowerToys Run
    • PowerToys Run now shows up as in the screenshot I posted earlier (broken state).

@fuzzzerd
Copy link

This is still occurring on v0.78.0.

@Jay-o-Way Jay-o-Way added Status-Reproducible This issue was reproduced by a maintainer and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Feb 6, 2024
@Jay-o-Way
Copy link
Collaborator

External issue: lepoco/wpfui#595

@Jay-o-Way Jay-o-Way added External Dependency This bug or feature isn't resolved, but it's following an external work item. Resolution-External External issue, unrelated to PowerToys and removed Needs-Team-Response An issue author responded so the team needs to follow up labels Feb 6, 2024
@github-actions github-actions bot mentioned this issue Apr 7, 2024
Closed
@Jay-o-Way
Copy link
Collaborator

@bbronisz As you could have read, we are aware of the issue, but it's external, so not in our hands.

@Tschipcraft
Copy link

This just got worse with the update to 0.81.0, since the Acrylic background which kind of hides this was replaced with the Mica one.
Looks like this now:

Screenshot

It would maybe be nice to have an option to switch back to the Acrylic background instead of the Mica one, as I really liked the look of it and never had any problems with it crashing.

@Jay-o-Way
Copy link
Collaborator

Work-around is in the latest version
(although not everybody is happy with it...)

@aquinn39
Copy link

aquinn39 commented May 30, 2024

@Jay-o-Way
The fix for this issue, while keeping the mica effect, is to use DwmSetWindowAttribute to set the DWMWA_CAPTION_COLOR attribute to 0xFFFFFFFE - this causes the title bar colour to not show when the mica effect is enabled with DWMWA_SYSTEMBACKDROP_TYPE. However, this behaviour is undocumented here. I'm assuming this is what Notepad does as it has a mica effect in the title bar but doesn't have this issue.

@Jay-o-Way
Copy link
Collaborator

@aquinn39 Thanks!
@lepoco is this issue on your radar? What is the coupled issue (number) in your repository?

@pomianowski
Copy link
Contributor

Hey @Jay-o-Way, I am aware of the error and I have already had several independent attempts but I have never found what needs to be changed, but what @aquinn39 mentioned seems like a solution.

@Jay-o-Way
Copy link
Collaborator

Jay-o-Way commented Jun 10, 2024

I'm assuming this is what Notepad does as it has a mica effect in the title bar but doesn't have this issue.

That's too quick of an assumption. (1) I do not assume Microsoft uses a third-party (!) framework for their own official apps, and (2) Notepad has a TABBEDWINDOW, which is not the same style or backdrop (Mica Alt is used)

0xFFFFFFFE

Strange value... Where does that come from? 🤔
So, this isn't a matter of DWM_SYSTEMBACKDROP_TYPE ?

@aquinn39
Copy link

aquinn39 commented Jun 10, 2024

@Jay-o-Way I should clarify, I have tested and used this myself. Perhaps I didn't make that clear - I can confirm this does work, I didn't just pull that value out of nowhere. I just used Notepad as an example of an app that has a Mica background without this issue. Also, I am aware Notepad uses Mica Alt, this works on any type in my testing (except for DWMSBT_NONE of course). As for where the value comes from, look under DWMWA_BORDER_COLOR here. This value appearantly hides the window border, so I thought maybe it might work for the title bar as well, which it did (though only when a transparency effect is applied with DWMWA_SYSTEMBACKDROP_TYPE)

@Jay-o-Way
Copy link
Collaborator

Great explanation! Love that! 🤩🤓

@pomianowski
Copy link
Contributor

Fixed in lepoco/wpfui#1122

@Jay-o-Way
Copy link
Collaborator

@niels9001 @jaimecbernardo I suppose we need to keep a close eye on lepoco/wpfui#1107 (4.0 RC) then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface things that regard UX for PowerToys External Dependency This bug or feature isn't resolved, but it's following an external work item. Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-External External issue, unrelated to PowerToys Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. Status-Reproducible This issue was reproduced by a maintainer
Projects
Status: Done
Development

No branches or pull requests

9 participants