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

Color replacing gradients? #158

Open
Darkar25 opened this issue Mar 2, 2021 · 2 comments
Open

Color replacing gradients? #158

Darkar25 opened this issue Mar 2, 2021 · 2 comments

Comments

@Darkar25
Copy link

Darkar25 commented Mar 2, 2021

i`d like to see some kind of ability to use gradients instead of plain color for everything...like text, borders, etc, not only backgrounds...
Thanks for the awesome library btw, very useful and very cool looking...

@mgierlasinski
Copy link
Owner

@Darkar25 I'm glad you like it :)

GradientView is Xamarin Forms control and cannot be used to paint standard controls because they are created on platform level inside renderers. However we can use GradientView to build composite controls which are created fully in XAML from other controls.

In the upcoming release we plan to introduce Masks feature that will basically give you possibility to clip GradientView to any shape, including text. You will be able to draw something more than just a rectangle.

We also have some ideas about releasing something like toolkit, another NuGet with composite controls build from GradientView. You can look at the MagicButton that we have so far:

https://github.com/mgierlasinski/MagicGradients/tree/master/MagicGradients.Toolkit/Controls

@Darkar25
Copy link
Author

Darkar25 commented Mar 4, 2021

@mgierlasinski , thanks, ill check it out...i mean in CSS, not in GradientView...
background: linear-gradient(0deg,#FF0000,#00FF00); /* use gradient for background, you already have this */ border-color: linear-gradient(0deg, #FFFF00, #00FFFF); /* suggestion, use gradient as border color */ color: linear-gradient(0deg, #00FF00, #00FF00); /* suggestion, use gradient as text color and many other things, not just in builtin xamarin elements */

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

No branches or pull requests

2 participants