ramensoftware / windhawk-mods

The official collection of Windhawk mods
276 stars 53 forks source link

[Taskbar height and icon size] Issue with the buttons on the left #957

Open MetricWrench opened 1 week ago

MetricWrench commented 1 week ago

I'm fighting with the Win11 taskbar - the latest updates have made it big. I've applied the options for taskbar and icon size but I'm having an issue with the buttons on the left. Can someone show me what I'm doing wrong or point me in the direction of how to solve this issue?

Screenshot 2024-09-14 195658

m417z commented 1 week ago

Please attach debug logs by following the instructions on the Troubleshooting page: https://github.com/ramensoftware/windhawk/wiki/Troubleshooting#some-or-all-windhawk-mods-dont-work

  • Disable the mod.
  • Go to the mod's Advanced tab.
  • Set Debug logging to Detailed debug logs.
  • Click on Show log output.
  • Enable the mod.
  • Verify that the mod doesn't work, copy the log and save it to a file.
  • Set Debug logging back to None.
MetricWrench commented 1 week ago

Here's the debug log. DbgViewMini v1.txt

m417z commented 1 week ago

I don't see anything wrong in the logs, and I wasn't able to reproduce this problem with the same Windows version and mod settings. Any idea what else could it be? Do you have any other customization tools or mods? Are you using tablet mode?

MetricWrench commented 1 week ago

It's just on this Dell laptop that it's a problem. I've been fighting with M'soft's messing with the taskbar since Win11 on this machine. Every update makes it get huge - yes - like tablet mode. I've made sure tablet mode is not enabled, and I've tried other explorer mods. Perhaps those are messing with Windhawk. I still have Winaero Tweaker installed. Could that be part of the problem?

m417z commented 1 week ago

Could you try the following:

Let me know if the problem still occurs with this configuration.

MetricWrench commented 1 week ago

That worked!!! Yay! Thanks for the support. I never thought I was going to get this issue resolved.

m417z commented 4 days ago

Great. I tried to fix the mod to handle this case, can you please try the fix?

To try it, disable the existing mods (Taskbar height and icon size, Windows 11 Taskbar Styler), restart explorer just to be sure, then click the bottom right button to create a new mod, replace the code with the code below, click "Compile Mod", then "Exit Editing Mode".

https://github.com/m417z/my-windhawk-mods/blob/37262efafc338662f032052be113124012cd18cb/mods/taskbar-icon-size.wh.cpp

MetricWrench commented 4 days ago

That seems to have created another issue, or I don't have the settings adjusted properly. I've attached before (2nd screenshot) and after (1st screenshot) the mod screenshots. After Mod Mods off

m417z commented 4 days ago

Since I don't have an environment to reproduce it, it's tricky to solve, but let's try this, please record the following: Run UWPSpy, inspect explorer.exe, locate the taskbar and go over some of the first elements, showing their sizes and properties, until the TaskbarBackground element, something like this:

https://github.com/user-attachments/assets/938ad69c-c568-457a-925f-28eb6f799914