Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Remove the Aliasing on the Taskbar #4

Open
jayneogithub opened this issue Jun 3, 2021 · 12 comments
Open

Remove the Aliasing on the Taskbar #4

jayneogithub opened this issue Jun 3, 2021 · 12 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jayneogithub
Copy link

Aliased edges
I noticed that the taskbar has weird aliasing when it comes to corners, leading to annoying aliased round edges, here's my prediction on how it would look like fixed:
Anti-Aliased edges
Replying would be appreciated!

@Rohansi
Copy link

Rohansi commented Jun 4, 2021

The readme says this is impossible but it should not be. It's a lot more work but should be doable using layered windows. See UpdateLayeredWindow and related functions.

@torchgm
Copy link
Collaborator

torchgm commented Jun 4, 2021

I did have an experiment with UpdateLayeredWindow but it seems that like with a bunch of other API calls that offer the option to customise the position of Windows (MoveWindow, SetWindowPos) they're just outright disabled for the taskbar. I will have a bit more of an experiment with it, but it wouldn't surprise me if it was blocked.

I did have some alternative ideas, including calling SetWindowCompositionAttribute to make the taskbar transparent then drawing a background underneath it, but this would break a lot of other taskbar modifications, which isn't something I'm willing to sacrifice.

If you can get UpdateLayeredWindow working for you at all, let me know; entirely possible my Explorer is just cursed 😂

@torchgm torchgm added enhancement New feature or request help wanted Extra attention is needed labels Jun 21, 2021
@thanhduy1706
Copy link

:< It make my taskbar ugly, pls fix it

@torchgm
Copy link
Collaborator

torchgm commented Aug 3, 2021

Please read the prior comment.

@Erisa Erisa pinned this issue Jan 20, 2022
@Erisa Erisa unpinned this issue Jan 20, 2022
@DigiMaxIO
Copy link

You could just make an option that would only work for the standard options (light/dark standard colors only) that uses rounded endcaps that are PNG images, not sure if the antialiasing would affect that too though...

@212112111zwl
Copy link

Well actually if you set the corner radius properly it would not look so bad as you think

@DigiMaxIO
Copy link

Corner radius is a personal preference, not a setting that should have a specific method of use. It likely also depends on the monitor you have for how visible it is. The only way I have found to disguise it is using a dark mode, with a somewhat darker background that kind of gives off the illusion that the pixelation is not there.

@212112111zwl
Copy link

If you say so. I simply mean that the corner would not look very aliased when setting the corner radius to a certain amount. Of course, it depends on the monitor you have. A dark mode would help too~

@DigiMaxIO
Copy link

The whole point of the app and the corner radius setting being adjustable is literally so you can customize it how you want and it should just work regardless -and match the quality of the modern operating system it was made for.

@212112111zwl
Copy link

212112111zwl commented Jan 27, 2023

I'm not saying that you should set the corner radius to make it look more anti-aliased. I'm just describing a situation in which the round corners look better. I totally agree it's a personal preference. It's up to the user to decide the amount of corner radius. I hope I make sense.

@emvaized
Copy link

emvaized commented Aug 29, 2023

Would be great to see anti-aliasing implemented in some way at least for default border radius value on Windows 11 (same as windows and tray popups). Like in FrostedGlass plugin for Rainmeter — I believe it uses some trick to provide default W11 corners for widgets (maybe SetWindowAttribute here?), and with no ability to change it. It could be fine for RoundedTB as well, as most users probably will be fine with taskbar corners matching all default W11 corners.

@ALTaleX531
Copy link

I think I have solved this issue in my own repo ClippedTB, but it is still experimental.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants