Originally created by @Insprill on GitHub (May 21, 2024).
Is your feature request related to a problem? Please describe.
Borders have quite a bit of visible aliasing on the rounded window corners of Windows 11.
Describe the solution you'd like
Implementing anti-aliasing for these borders would make them look significantly better.
Originally created by @Insprill on GitHub (May 21, 2024).
**Is your feature request related to a problem? Please describe.**
Borders have quite a bit of visible aliasing on the rounded window corners of Windows 11.
**Describe the solution you'd like**
Implementing anti-aliasing for these borders would make them look significantly better.
**Additional context**
PowerToys did this with always-on-top borders in their latest update. I'm not sure how related, if at all, their border code is to Komorebi's, but maybe it helps :)
https://github.com/microsoft/PowerToys/commit/5d5e56ef554cc8b2aa8590b40a98e54c81659746
I honestly don't see anything 😅 But I have a friend who is very serious about aliasing and hinting and all those things, so I know if you see it you can't stop seeing it.
I'll leave this open for someone else, I honestly wouldn't even have any idea where to start since it looks like they are drawing borders in a completely different way using Direct2D directly.
@LGUG2Z commented on GitHub (May 21, 2024):
I honestly don't see anything 😅 But I have a friend who is very serious about aliasing and hinting and all those things, so I know if you see it you can't stop seeing it.
I'll leave this open for someone else, I honestly wouldn't even have any idea where to start since it looks like they are drawing borders in a completely different way using Direct2D directly.
I don't know Rust but I found that you are using windows::Win32::Graphics::Gdi::RoundRect. Maybe it is enough to enable antialiasing in general. I found those sources about that:
Site Note: I found that some fonts have antialiasing issue as well.
@pchomik commented on GitHub (Oct 31, 2024):
I see this problem on my pc.
I don't know Rust but I found that you are using `windows::Win32::Graphics::Gdi::RoundRect`. Maybe it is enough to enable antialiasing in general. I found those sources about that:
* https://learn.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-antialiasing-with-lines-and-curves-about
* https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Graphics/GdiPlus/fn.GdipSetSmoothingMode.html
Could you look and check if that may help?
Site Note: I found that some fonts have antialiasing issue as well.
Some good progress has been made on anti-aliasing which testers can try on the feature/tacky-borders branch.
@LGUG2Z commented on GitHub (Nov 3, 2024):

Some good progress has been made on anti-aliasing which testers can try on the `feature/tacky-borders` branch.
The binaries are built and uploaded automatically by GitHub Actions: click the green tick next to a commit and it should take you to the Actions run where the commit was built and the binaries were uploaded.
@LGUG2Z commented on GitHub (Nov 11, 2024):
The binaries are built and uploaded automatically by GitHub Actions: click the green tick next to a commit and it should take you to the Actions run where the commit was built and the binaries were uploaded.
I did few tests and looks like border around window looks better. Is it possible to the same for rounded stack?
On my screen stackback looks as follow:
@pchomik commented on GitHub (Nov 12, 2024):
I did few tests and looks like border around window looks better. Is it possible to the same for rounded stack?
On my screen stackback looks as follow:

Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Insprill on GitHub (May 21, 2024).
Is your feature request related to a problem? Please describe.
Borders have quite a bit of visible aliasing on the rounded window corners of Windows 11.
Describe the solution you'd like
Implementing anti-aliasing for these borders would make them look significantly better.
Additional context
PowerToys did this with always-on-top borders in their latest update. I'm not sure how related, if at all, their border code is to Komorebi's, but maybe it helps :)
https://github.com/microsoft/PowerToys/commit/5d5e56ef554cc8b2aa8590b40a98e54c81659746
@LGUG2Z commented on GitHub (May 21, 2024):
I honestly don't see anything 😅 But I have a friend who is very serious about aliasing and hinting and all those things, so I know if you see it you can't stop seeing it.
I'll leave this open for someone else, I honestly wouldn't even have any idea where to start since it looks like they are drawing borders in a completely different way using Direct2D directly.
@pchomik commented on GitHub (Oct 31, 2024):
I see this problem on my pc.
I don't know Rust but I found that you are using
windows::Win32::Graphics::Gdi::RoundRect. Maybe it is enough to enable antialiasing in general. I found those sources about that:Could you look and check if that may help?
Site Note: I found that some fonts have antialiasing issue as well.
@LGUG2Z commented on GitHub (Nov 3, 2024):
Some good progress has been made on anti-aliasing which testers can try on the
feature/tacky-bordersbranch.@pchomik commented on GitHub (Nov 11, 2024):
@LGUG2Z could you create binaries from mentioned branch?
@LGUG2Z commented on GitHub (Nov 11, 2024):
The binaries are built and uploaded automatically by GitHub Actions: click the green tick next to a commit and it should take you to the Actions run where the commit was built and the binaries were uploaded.
@pchomik commented on GitHub (Nov 12, 2024):
I did few tests and looks like border around window looks better. Is it possible to the same for rounded stack?
On my screen stackback looks as follow: