Gniang / RoundedTB

Add margins, rounded corners and segments to your taskbars!
GNU General Public License v3.0
282 stars 9 forks source link

Taskbar size is shorter than actual on 22H2 Inssider Preview or 23H2? #2

Closed Gniang closed 9 months ago

Gniang commented 9 months ago

Seems like a Windows spec change.

Gniang commented 9 months ago

https://github.com/RoundedTB/RoundedTB/issues/328 https://github.com/RoundedTB/RoundedTB/issues/332 https://github.com/RoundedTB/RoundedTB/issues/331 https://github.com/RoundedTB/RoundedTB/issues/330 https://github.com/RoundedTB/RoundedTB/issues/326 https://github.com/RoundedTB/RoundedTB/issues/320 https://github.com/RoundedTB/RoundedTB/issues/317 https://github.com/RoundedTB/RoundedTB/issues/305 https://github.com/RoundedTB/RoundedTB/issues/304

hakuno2000 commented 9 months ago

Thanks for your fork, now it works on build 22621.2361 image

farazfarid commented 9 months ago

@hakuno2000 which settings did you apply? Because no matter which settings I do it's still not working on my end

hakuno2000 commented 9 months ago

@hakuno2000 which settings did you apply? Because no matter which settings I do it's still not working on my end

I'm using the default settings and turn on dynamic mode. Maybe your Windows patch version is different from mine.

farazfarid commented 9 months ago

@hakuno2000 which settings did you apply? Because no matter which settings I do it's still not working on my end

I'm using the default settings and turn on dynamic mode. Maybe your Windows patch version is different from mine.

Hmm it's actually the same and I also left it under the normal settings with Dynamic Mode on I just checked again but thankyou I will try to get it work somehow then :)

thedanamo commented 9 months ago

I cannot get the .exe to run either. Just does nothing when I try to run it.

rodrigosomoza commented 9 months ago

Hello, same here after yesterday update. The taskbar is not showing all the icons. Can someone, that made the latest windows update, drop here his config file pls?

iokinai commented 9 months ago

I made this fix in a hurry, so it may contain errors, sorry. The main problem is that in new versions of Windows (as I understand it), taskbar.AppListRect.Right stores not the right border of the application bar, but its center (and there is also some strange offset there, perhaps a Windows bug), so replacing centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right - Convert.ToInt32(2 taskbar.ScaleFactor); on centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right + (taskbar.AppListRect.Right - taskbar.AppListRect.Left) - Convert.ToInt32(2 taskbar.ScaleFactor); in Taskbar.cs:247 and mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); on

mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left + 48, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge - 48, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); in Taskbar.cs:258 helped solve the problem

Here is the fixed release (works fine for me): https://drive.google.com/file/d/1XcehRMJkOrvNzEgGuSMTKtZ4bxm9tG-B/view?usp=sharing

upd. if it crashes on startup please remove the file C:\Users(your username)\AppData\Local\rtb.json

ricardo119 commented 9 months ago

I founded the solution and it's pretty simple.

The issue with the icons don't appear can be fixed by editing the RoundedTB inner margin super long so that doesn't happen. Normal is the solution that people comment more but the opaque part of the task bar will not be dynamic and still be super long when you don't have enough icons to fill.

Screenshot 2023-10-12 194510

The problem with that solution before is the opaque default taskbar so if you make the taskbar transparent you will not see it and you will never know if the RoundedTB is working as before. So, the same people that made the RoundedTB also made TranslucentTB and fixes the issue instantly.

This solution is not the best if you want to keep the opaque taskbar but I think that if you already had the work to make it rounded why not make it transparent?

Personally my solution fixed my problem and I think nobody have ever share this tip. If you want to keep the "default" taskbar this solution will not work unfortunately.

Screenshot 2023-10-12 194526

MazinLabib10 commented 9 months ago

I made this fix in a hurry, so it may contain errors, sorry. The main problem is that in new versions of Windows (as I understand it), taskbar.AppListRect.Right stores not the right border of the application bar, but its center (and there is also some strange offset there, perhaps a Windows bug), so replacing centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right - Convert.ToInt32(2 taskbar.ScaleFactor); on centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right + (taskbar.AppListRect.Right - taskbar.AppListRect.Left) - Convert.ToInt32(2 taskbar.ScaleFactor); in Taskbar.cs:247 and mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); on

mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left + 48, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge - 48, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); in Taskbar.cs:258 helped solve the problem

Here is the fixed release (works fine for me): https://drive.google.com/file/d/1XcehRMJkOrvNzEgGuSMTKtZ4bxm9tG-B/view?usp=sharing

upd. if it crashes on startup please remove the file C:\Users(your username)\AppData\Local\rtb.json

So, I tried your version of the app and, although I had to modify the margin settings to show all the icons, it was working fine. But after a few minutes, it stopped working and the default taskbar showed up. When I right-clicked on the icon in the notification tray, it crashed completely. I have to manually restart it and yet the same happens again after a few minutes. Any fix for it?

YuhGnad commented 8 months ago

I had same issue here. But none of them work in my case. I don't know what to do. Sorry but I don't understand anything of what @Gniang commented. My bad. Sorry again!

YuhGnad commented 8 months ago

I had same issue here. But none of them work in my case. I don't know what to do. Sorry but I don't understand anything of what @Gniang commented. My bad. Sorry again!

P/s: My laptop currently run on stable version of windows 11

ricardo119 commented 8 months ago

I made this fix in a hurry, so it may contain errors, sorry. The main problem is that in new versions of Windows (as I understand it), taskbar.AppListRect.Right stores not the right border of the application bar, but its center (and there is also some strange offset there, perhaps a Windows bug), so replacing centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right - Convert.ToInt32(2 taskbar.ScaleFactor); on centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right + (taskbar.AppListRect.Right - taskbar.AppListRect.Left) - Convert.ToInt32(2 taskbar.ScaleFactor); in Taskbar.cs:247 and mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); on mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left + 48, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge - 48, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); in Taskbar.cs:258 helped solve the problem Here is the fixed release (works fine for me): https://drive.google.com/file/d/1XcehRMJkOrvNzEgGuSMTKtZ4bxm9tG-B/view?usp=sharing upd. if it crashes on startup please remove the file C:\Users(your username)\AppData\Local\rtb.json

So, I tried your version of the app and, although I had to modify the margin settings to show all the icons, it was working fine. But after a few minutes, it stopped working and the default taskbar showed up. When I right-clicked on the icon in the notification tray, it crashed completely. I have to manually restart it and yet the same happens again after a few minutes. Any fix for it?

I had the same issue and I just reinstall the roundedTB and also my rainmeter was full of unnecessary mods that made everything crashes. Just try to reinstal and see if the roudedTB is not eating your RAM and maybe check if you can make less RAM intensive...

MazinLabib10 commented 8 months ago

I made this fix in a hurry, so it may contain errors, sorry. The main problem is that in new versions of Windows (as I understand it), taskbar.AppListRect.Right stores not the right border of the application bar, but its center (and there is also some strange offset there, perhaps a Windows bug), so replacing centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right - Convert.ToInt32(2 taskbar.ScaleFactor); on centredDistanceFromEdge = taskbar.TaskbarRect.Right - taskbar.AppListRect.Right + (taskbar.AppListRect.Right - taskbar.AppListRect.Left) - Convert.ToInt32(2 taskbar.ScaleFactor); in Taskbar.cs:247 and mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); on mainRegion = LocalPInvoke.CreateRoundRectRgn( centredDistanceFromEdge + centredEffectiveRegion.Left + 48, centeredEffectiveRegion.Top, centredEffectiveRegion.Width - centredDistanceFromEdge - 48, centeredEffectiveRegion.Height, centeredEffectiveRegion.CornerRadius, centredEffectiveRegion.CornerRadius ); in Taskbar.cs:258 helped solve the problem Here is the fixed release (works fine for me): https://drive.google.com/file/d/1XcehRMJkOrvNzEgGuSMTKtZ4bxm9tG-B/view?usp=sharing upd. if it crashes on startup please remove the file C:\Users(your username)\AppData\Local\rtb.json

So, I tried your version of the app and, although I had to modify the margin settings to show all the icons, it was working fine. But after a few minutes, it stopped working and the default taskbar showed up. When I right-clicked on the icon in the notification tray, it crashed completely. I have to manually restart it and yet the same happens again after a few minutes. Any fix for it?

I had the same issue and I just reinstall the roundedTB and also my rainmeter was full of unnecessary mods that made everything crashes. Just try to reinstal and see if the roudedTB is not eating your RAM and maybe check if you can make less RAM intensive...

Actually, I installed the new update and it works absolutely fine. So don't have any issues now.

twix0r25 commented 8 months ago

not working on image

Code-With-Arnav commented 8 months ago

Well, I don't know how to fix it, but until there is no legit way, you all can change these things to be hidden, and it will work fine without them. image

AnonymousID5 commented 8 months ago

image IDK but u guys need to custom this margin menu, and this is worked in my pc.

ash-meta-verse commented 7 months ago

I add ( minus - ) to the Inner Margin and it worked for me -130 was perfect image

OtterKring commented 7 months ago

Thanks, guys! The negative inner margin is working for me, too, at least until it is fixed in the code. Using Windows 11's new option to set a dark windows theme and a light app theme also fixed my issue with the transparent taskbar showing a black clock on my dark background. Now it's in readable white and with the taskbar being completely translucent I don't care how wide the margin is. 👍

EclipsesDev commented 7 months ago

I add ( minus - ) to the Inner Margin and it worked for me -130 was perfect image

alright that worked actualy in Windows 11 23H2

ciH1099 commented 6 months ago

Monitoring the currently running windows works well, but there are bugs that become noticeable as those windows get deeper inside. 스크린샷 2023-12-30 170413

#

Aboba201 commented 6 months ago

It works fine after adding the minus, but both of the top corners are square like. Bild_2024-01-14_123305910 (ignore the german text, i am german)

1111Al commented 4 months ago

I had the same issue time ago, despite not using Windows Update for a year. I don't remember how I solved it, but the problem is not directly related to Windows updates. although these may break the program, Another time my portable version stopped working and I had to install the store version, which has now been deleted from the store. But my installation keeps working so far. The true issue is that the application has been abandoned for some time now.

Senza titolo (2)

PetraChristalbert commented 2 months ago

Screenshot 2024-05-14 201641 Haha! This setting works totally fine with me while also including the co-pilot on the taskbar ! If you dont want the co-pilot, just make it 275, or increase it if you want to enable another taskbar default icon.

Thanks me by subs to YT : Universal Market Service