resloved / i3

🔲 — Rounded i3-gaps
Other
278 stars 29 forks source link

Antialiasing on rounded corners #7

Closed liquidev closed 4 years ago

liquidev commented 4 years ago

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

The rounded edges are ugly and sharp.

Desired Behavior

I'd like to have a setting that makes the rounded corners nicely antialiased, similar to what polybar offers.

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.17.1 (2019-08-30) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.17.1 (2019-08-30) (pid 1182)abort…)
Loaded i3 config: /home/daknus/.config/i3/config (Last modified: Thu 12 Dec 2019 08:56:21 PM CET, 198 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
- Linux Distribution & Version: Manjaro
- Are you using a compositor (e.g., xcompmgr or compton): tryone144/compton
resloved commented 4 years ago

While there are ways to make the rounded corners of borders anti-aliased it wouldn't be possible to round the actual window with anti-aliasing. It's only possible to do on the borders because they are drawn, while the rounding the windows requires masking them which doesn't allow for any level of opacity. I'd rather use the same method for both the window and the border to remain consistent, but I'm sure someone else could figure it out.

Alternatively you can take a look at the work being done on the compton fork picom. It isn't a full proof solution, but it makes the AA corners you're looking for.