Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shaders/roundedcorners: base on kde-rounded-corners' shader #141

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

taj-ny
Copy link
Owner

@taj-ny taj-ny commented Dec 9, 2024

This should make rounded corners look exactly like KDE-Rounded-Corners' corners. Currently they don't scale properly (on this branch, not main or v1.3.2).

Closes #34.

@taj-ny taj-ny marked this pull request as draft December 9, 2024 07:46
@taj-ny
Copy link
Owner Author

taj-ny commented Dec 11, 2024

This is what corners look like as of the latest commit. The application is Konsole with a light theme. Static blur with a red image was used to make any differences visible.

10px radius, 80% background transparency:
konsole_10_80

21px radius, 80% background transparency:
konsole_21_80

10px radius, 20% background transparency:
konsole_10_20

21px radius, 20% background transparency:
konsole_21_20

10px radius, 0% background transparency:
konsole_10_0

21px radius, 0% background transparency
konsole_21_0

Anti-aliasing can be adjusted. A high value results in sharp corners on high transparency (first image), and the blur barely sticking out on low transparency (last). A low value results in smooth corners on high transparency, and the blur sticking out more on low transparency. Since this effect doesn't have access to the alpha of each individual pixel of the window, there's nothing I can do to improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rounded corner effect doesn't work well on KDE-Rounded-Corners
1 participant