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

Change gradient to white? #20

Open
Sun3 opened this issue Jul 10, 2014 · 2 comments
Open

Change gradient to white? #20

Sun3 opened this issue Jul 10, 2014 · 2 comments

Comments

@Sun3
Copy link

Sun3 commented Jul 10, 2014

Is it possible to change the popup black/gray gradient to white?

Thanks

@Sun3
Copy link
Author

Sun3 commented Jul 11, 2014

This is the solution I used. I sure would love to see a new feature to add the option to change dynamically gradient background color.

- (void)drawBackground:(CGRect)frame
             inContext:(CGContextRef) context
{
    //CGFloat R0 = 0.267, G0 = 0.303, B0 = 0.335;
    //CGFloat R1 = 0.040, G1 = 0.040, B1 = 0.040;
    CGFloat R0 = 1.0, G0 = 1.0, B0 = 1.0;
    CGFloat R1 = 0.961f, G1 = 0.961f, B1 = 0.961f;

@jayjayesh
Copy link

+1

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