microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.46k stars 6.45k forks source link

High contrast compatibility #31205

Open Kihara777 opened 7 months ago

Kihara777 commented 7 months ago

Microsoft PowerToys version

0.77.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Image Resizer

Steps to reproduce

I upgrade to the latest version, switch to contrast theme.

✔️ Expected Behavior

In my contrast theme, all the other powertoys window looks like: image

❌ Actual Behavior

The Image Resizer window themed in light mode even I'm using contrast theme in system settings. image

Other Software

No response

jaimecbernardo commented 7 months ago

I've just tried 0.78 on the "Night sky contrast theme" and this is what I get:

image

Perhaps a /bugreport will help?

Kihara777 commented 7 months ago

Hi there!We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks! Report Bug

I failed to do that. It shows me "Your debug zip file saved to your desktop", but I didn't find it. image

However I do found I'm using a sort of customized nightsky contrast theme, with color and wallpaper. But the default NightSky works fine. Here's the theme file: G41 (ブラック).zip

niels9001 commented 7 months ago

@kiharra77 Would you mind upgrading to 0.78 to see if that resolves the issue?

jaimecbernardo commented 7 months ago

/needinfo

Kihara777 commented 7 months ago

@kiharra77 Would you mind upgrading to 0.78 to see if that resolves the issue?

Yes, it still have the same problem.

jaimecbernardo commented 7 months ago

Looks like you're getting pretty weird behavior. That does look like the Image Resizer has some bugs that were there some versions before.

Can you try to access the PowerToys.ImageResizer.exe file in your PowerToys installation folder? If you start the executable directly from that path (default machine is "C:\Program Files\PowerToys\PowerToys.ImageResizer.exe") and select a file, does it show the same issue? If you right click and check properties for the file, does it say it is 0.78.0 ?

image

jaimecbernardo commented 7 months ago

/needinfo

Kihara777 commented 7 months ago

Looks like you're getting pretty weird behavior. That does look like the Image Resizer has some bugs that were there some versions before.

Can you try to access the PowerToys.ImageResizer.exe file in your PowerToys installation folder? If you start the executable directly from that path (default machine is "C:\Program Files\PowerToys\PowerToys.ImageResizer.exe") and select a file, does it show the same issue? If you right click and check properties for the file, does it say it is 0.78.0 ?

image

It doen't changes anything, but I found how to reproduce it manually.

Looks like this strange behaviour caused by a broken theme setup:

First, go to settings and apply a contrast theme image Everything looks fine.

Then go to theme page, change a cursor style, change the wallpaper, and save. image

Close and open the settings again, enter theme page and you can now save this contrast theme, save it. image

Use Shift + Alt + PrtSc to switch between the normal theme and saved contrast theme, image The Image Resizer window will themed in light mode, even after re-open the image resizer window.

I'm not quite sure if this behaviour is image resizer's bug now... But the image resizer is the only utility in powertoys that themed in light mode in this case.

crutkas commented 7 months ago

I can repro this with the provided steps.

Settings, Reg Preview, Host and Environment correctly apply where Image Resizer did not. image

crutkas commented 7 months ago

I'm on 0.78 as well