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

[Skia] Fix RadialGradientBrush for non center origin #17925

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Gillibald
Copy link
Contributor

@Gillibald Gillibald commented Jan 8, 2025

What does the pull request do?

This PR adjusts the Skia RadialGradientBrush not to reverse the order of gradient stops when the gradient isn't covering the full radius. Otherwise, the shader isn't working as expected.

What is the current behavior?

Screenshot 2025-01-08 151714

What is the updated/expected behavior with this PR?

Screenshot 2025-01-08 145831

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@Gillibald Gillibald force-pushed the fixes/RadialGradientBrush branch from c2379a0 to 29ee228 Compare January 8, 2025 14:08
@Gillibald Gillibald changed the title [Skia] Fix RadialGradientBrush for non center origin [WIP][Skia] Fix RadialGradientBrush for non center origin Jan 8, 2025
@Gillibald Gillibald force-pushed the fixes/RadialGradientBrush branch from 29ee228 to 90125e4 Compare January 9, 2025 06:22
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0054165-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@Gillibald Gillibald changed the title [WIP][Skia] Fix RadialGradientBrush for non center origin [Skia] Fix RadialGradientBrush for non center origin Jan 9, 2025
@Gillibald Gillibald requested a review from kekekeks January 9, 2025 14:32
@Gillibald Gillibald added bug customer-priority Issue reported by a customer with a support agreement. labels Jan 9, 2025
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0054186-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0054196-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug customer-priority Issue reported by a customer with a support agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants