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

Antialias Click-Effects on Buttons #4473

Merged
merged 3 commits into from
May 7, 2023

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Mar 24, 2023

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Click-Effects on buttons were never antialiased, because they've used a QGradient to draw the click-effect. Even when QPainter::Antialiasing was added in 36b010e, this didn't add antialiasing to the click-effect, because the flag only applies to primitives. I refactored the drawing to use QPainter::drawEllipse.

Before After
before after
before-scaled after-scaled

@pajlada pajlada added this to the 2.4.4 milestone May 6, 2023
@pajlada pajlada enabled auto-merge (squash) May 7, 2023 10:54
@pajlada pajlada merged commit 91f4b86 into Chatterino:master May 7, 2023
@Nerixyz Nerixyz deleted the fix/button-antialias branch May 7, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants