mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Border anti-aliasing #385
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 :)
5d5e56ef55@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: