unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.94k stars 724 forks source link

Incorrect `ImageBrush` Linear Gradients #6990

Open robloo opened 3 years ago

robloo commented 3 years ago

Current behavior

ImageBrush does not render linear gradients correctly. The gradient has a horizontal slant to it as discovered with the ColorPicker on WASM and iOS.

The slider background gradient origins are somehow incorrect. There is a bug in iOS here it looks like as the gradient should not have a diagonal slant to it -- should be perfectly uniform horizontally.

https://github.com/unoplatform/uno/pull/3955#issuecomment-699069631 https://github.com/unoplatform/uno/issues/5992#issuecomment-898788904

Actual image

Expected behavior

Expected image

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

No response

Environment

No response

NuGet package version(s)

No response

Affected platforms

(Android seems OK)

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 3 years ago

Looks like of it was recently adjusted in https://github.com/unoplatform/uno/pull/6951 and https://github.com/unoplatform/uno/pull/6787 by @MartinZikmund

robloo commented 3 years ago

Looks like of it was recently adjusted in #6951 and #6787 by @MartinZikmund

Wow, impeccable timing! I missed that PR and will retest.

Youssef1313 commented 3 years ago

@robloo Were you able to re-test?

robloo commented 3 years ago

@robloo Were you able to re-test?

No, not yet. I probably won't get to it this week either.