kxmenu icon indicating copy to clipboard operation
kxmenu copied to clipboard

Change gradient to white?

Open Sun3 opened this issue 11 years ago • 2 comments

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

Thanks

Sun3 avatar Jul 10 '14 05:07 Sun3

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;

Sun3 avatar Jul 11 '14 01:07 Sun3

+1

jayjayesh avatar Oct 20 '16 06:10 jayjayesh