kxmenu
kxmenu copied to clipboard
Change gradient to white?
Is it possible to change the popup black/gray gradient to white?
Thanks
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;
+1