You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this issue when programatically filling up views using a list of colors. When you only have a single color, single-stop gradient view, the color will be a darker, off-color hue with the same saturation.
I'd at least like to notify any other developers working on using this tool programatically, since discovering this issue found myself double and triple checking some of my color conversion logic.
CODE
With a MainPage looking like this in a brand-new Xamarin project, the differences can easily be spotted.
Attempting to set our first gradient to a color of #00AAE3, the same as the background, results in a color of #0067C4. Once we add another color (#FFFF00), the color is corrected.
WORKAROUND
A simple workaround would be to set two gradient stops of the same color.
The text was updated successfully, but these errors were encountered:
ISSUE
I noticed this issue when programatically filling up views using a list of colors. When you only have a single color, single-stop gradient view, the color will be a darker, off-color hue with the same saturation.
I'd at least like to notify any other developers working on using this tool programatically, since discovering this issue found myself double and triple checking some of my color conversion logic.
CODE
With a MainPage looking like this in a brand-new Xamarin project, the differences can easily be spotted.
Attempting to set our first gradient to a color of
#00AAE3
, the same as the background, results in a color of#0067C4
. Once we add another color (#FFFF00
), the color is corrected.WORKAROUND
A simple workaround would be to set two gradient stops of the same color.
The text was updated successfully, but these errors were encountered: