krlvm / AccentColorizer-E11

Accent Colorization for Windows 11 File Explorer Icon Glyphs
https://github.com/krlvm/AccentColorizer
212 stars 8 forks source link

The color of the glyphs doesn't change when the desktop wallpaper changes with fade effect. #10

Open Dhyfer1 opened 1 year ago

Dhyfer1 commented 1 year ago

Hi @krlvm 👋

As the title indicates. A couple of days ago I've been using BingSnap, an app that changes the desktop wallpaper to Bing's image of the day (bing's image of the day changes daily, every 24h). Within the BingSnap settings there is an option for the wallpaper to change with fade effect when applied and this causes the previous wallpaper to fade out so that a new wallpaper appears.

2022-12-10_11-23-59

AccentColorizer-E11 changes the color of the glyphs according to the accent color, if the accent color is set to Automatic then the accent color is taken from the color that is most present on the wallpaper. If the wallpaper changes normally AC-E11 works fine, but if the wallpaper changes with fade effect then the glyph color is the same color of the previous wallpaper and does not change if I close and open the file explorer several times, I have to restart the file explorer from the Task Manager so that the glyph color changes according to the current wallpaper.

To be clearer I want to give an example: The accent color is set to automatic and let's suppose that today my wallpaper is a forest where the color green predominates, so the green color is taken by Windows as my accent color and the glyphs change to green. The next day BingSnap changes my wallpaper with a nice fade effect to the image of a lake where the color blue predominates, this blue color is taken by Windows as my accent color, but when I open the file explorer the glyphs still have the green color of the previous day's wallpaper, and no matter how many times I close and open the file explorer, the glyphs still have the green color when the accent color is blue. To change the glyph color to blue I have to restart Windows Explorer from the task manager, or restart Windows.

Every day, when I turn on my PC, my desktop wallpaper is the same image from the previous day and I have to wait for BingSnap to appear in the system tray for BingSnap to place a new image as my desktop background. According to the latter, I think AC-E11 runs before BingSnap (BingSnap also runs at system startup, but appears in shell:startup as a shortcut), and when BingSnap runs after AC-E11 and change the wallpaper, then AC-E11 does not change the color of the glyphs.

I hope you understood me and that you will try BingSnap to see the fade effect, so that you will find a way to make AC-E11 work when the wallpaper changes with this kind of effect.

krlvm commented 1 year ago

Please, check if glyph files in C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\contrast-standard are being changed

Dhyfer1 commented 1 year ago

2022-12-10_15-47-09

Hi. Before you responded I had to restart Windows Explorer from the task manager and so far everything is normal. The desktop background image is the image of the day from Bing and today's accent color as you can see is a blue color. We will have to wait tomorrow to see which is the image of the day and what accent color Windows is going to apply, and if this new accent color is applied to the glyphs or if it continues with the same accent color of today.

So tomorrow we will see.

Dhyfer1 commented 1 year ago

Hmmm. Today also seems normal. I turn on my PC, wait for BingSnap to appear along with the other icons in the system tray, and while that happens my desktop background image for a few seconds is the same image from my previous answer. When BingSnap appears in the system tray, then with a fade effect it changes the Bing Day image to a new image where Windows sets a brown color as the accent color.

image_7

But what I mentioned in the title of this issue really happens, there are days when the color of the glyphs looks normal, but other days the glyphs do not change color and remain with the color of the previous day. Again, I have to wait tomorrow to see what happens. 🤷‍♂️

krlvm commented 1 year ago

I think it is related to how Windows Explorer manages its glyphs cache, I don't think we can do something with it.

Dhyfer1 commented 1 year ago

Well, I don't know what's going on either 🤔. I will keep an eye on it, and if one day the glyphs remain with the color of the previous day and the accent color is different, then I will notify you.

Dhyfer1 commented 1 year ago

Please, check if glyph files in C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\contrast-standard are being changed

AC-E11 didn't work today. The accent color for today is a pink color, yesterday's accent color was a brown color. After opening the file explorer I see that some glyphs in the command bar have the accent color brown and other glyphs have pink color. As you can see in the video only the first 27 glyphs in the theme-dark folder changed their accent color according to today's wallpaper, the others remained with yesterday's accent color. I have restarted Windows Explorer from the task manager and also restarted Windows, but after doing this the brown glyphs didn't change to pink.

https://user-images.githubusercontent.com/50301201/208200056-ee235e89-bb37-4f16-8605-0727b3158ce9.mp4

Edit: In Windows 11 Settings>Personalization>Themes I chose the dark theme, but only the first 27 glyphs changed color, the others are still brown.

Edit2: In Settings>Personalization>Colors>Accent color I set it to manual and automatic, but I still have 27 glyphs that do change color, the others are still brown.

Edit3: This problem only happens with the glyphs in the theme-dark folder. On the other hand, all glyphs in the theme-light folder do change to the set accent color.

Edit4: Seeing that none of my possible solutions worked, I had to overwrite all the glyphs with the glyphs found in the install.wim file of the Windows 11 ISO, open AC-E11, and restart Windows Explorer. Problem solved, all the glyphs in the theme-light and theme-dark folder have the pink accent color.