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

Add two color, linear gradient #3

Merged
merged 3 commits into from Mar 19, 2017
Merged

Add two color, linear gradient #3

merged 3 commits into from Mar 19, 2017

Conversation

cgoldsby
Copy link
Contributor

❤️ this library. If you ever need a button with a gradient please consider this PR.

I've added four new properties to set the button background colors using a linear gradient:

// colors
focusedBackgroundEndColor
normalBackgroundEndColor
// direction
gradientStartPoint
gradientEndPoint

screen shot 2017-03-19 at 12 02 27 pm

By default and backwards compatibility, no gradient is applied and a solid background color is used.

@dcordero
Copy link
Owner

This is great, thanks a lot for you PR @cgoldsby !!!

@dcordero dcordero merged commit 1677a3f into dcordero:master Mar 19, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants