LGUG2Z / komorebi

A tiling window manager for Windows 🍉
https://lgug2z.github.io/komorebi/
Other
8.75k stars 173 forks source link

[FEAT]: Border anti-aliasing #840

Open Insprill opened 3 months ago

Insprill commented 3 months ago

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 3 months ago

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.