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

Themeroller: Fix alpha treatment in icons #635

Merged
merged 2 commits into from
Mar 24, 2025
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Mar 24, 2025

Since jQuery UI 1.13.0, partially transparent pixels in the icons file started being too dark. Set gamma to 0.5 for the A channel to get closer to the 1.12.1 output.

A test comparing similarity of the generated image to the jQuery 1.12.1 has been added as well.

Fixes jquery/jquery-ui#2339

@mgol mgol requested a review from fnagel March 24, 2025 11:02
@mgol mgol self-assigned this Mar 24, 2025
Since jQuery UI 1.13.0, partially transparent pixels in the icons file started
being too dark. Set gamma to 0.5 for the A channel to get closer to the 1.12.1
output.

A test comparing similarity of the generated image to the jQuery 1.12.1 has been
added as well.

Fixes jquery/jquery-ui#2339
@mgol mgol merged commit a73e873 into jquery:main Mar 24, 2025
4 checks passed
@mgol mgol deleted the image-alpha-logic branch March 24, 2025 17:05
@mgol mgol removed the Needs review label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Icons in release build have a larger file size and are blurry
2 participants