Commit 5ccec858 authored by Carola's avatar Carola Committed by Felix Paul Kühne
Browse files

adjusted the image quality and gradient

parent 53f29632
......@@ -187,13 +187,12 @@ typedef enum {
UIImage *gradient = [UIImage imageNamed:@"gradient-cell-ios7"];
//TODO: make this dynamical width
CGSize newSize = CGSizeMake(130, 60);
CGSize newSize = backgroundImage ? backgroundImage.size : CGSizeMake(260, 120);
// Use existing opacity as is
[backgroundImage drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
[gradient drawInRect:CGRectMake(0,40,newSize.width,20) blendMode:kCGBlendModeNormal alpha:1.0];
[gradient drawInRect:CGRectMake(0,newSize.height/2,newSize.width,newSize.height/2) blendMode:kCGBlendModeNormal alpha:1.0];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment