Skip to content

Commit

Permalink
Merge pull request runway20#7 from stevewilford/master
Browse files Browse the repository at this point in the history
Fix for rendering on iOS 4
  • Loading branch information
Oliver Clark Rickard authored and Oliver Clark Rickard committed Oct 9, 2012
2 parents 422904b + 47d6d48 commit ba25a61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PopoverView/PopoverView.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@
// BACKGROUND GRADIENT

//bottom color white in gradient bg
#define kGradientBottomColor [UIColor colorWithWhite:0.980f alpha:kBoxAlpha]
#define kGradientBottomColor [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kBoxAlpha]

//top color white value in gradient bg
#define kGradientTopColor [UIColor colorWithWhite:1.f alpha:kBoxAlpha]
#define kGradientTopColor [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kBoxAlpha]


// TITLE GRADIENT

//bottom color white value in title gradient bg
#define kGradientTitleBottomColor [UIColor colorWithWhite:0.93f alpha:kBoxAlpha]
#define kGradientTitleBottomColor [UIColor colorWithRed:0.93f green:0.93f blue:0.93f alpha:kBoxAlpha]

//top color white value in title gradient bg
#define kGradientTitleTopColor [UIColor colorWithWhite:1.f alpha:kBoxAlpha]
#define kGradientTitleTopColor [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kBoxAlpha]


// FONTS
Expand Down Expand Up @@ -919,7 +919,7 @@ - (void)drawRect:(CGRect)rect
CGContextRef context = UIGraphicsGetCurrentContext();

//// Shadow Declarations
UIColor* shadow = [UIColor colorWithWhite:0.f alpha:kShadowAlpha];
UIColor* shadow = [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kShadowAlpha];
CGSize shadowOffset = CGSizeMake(0, 1);
CGFloat shadowBlurRadius = 10;

Expand Down

0 comments on commit ba25a61

Please sign in to comment.