diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-05-16 20:03:56 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-05-16 20:03:56 -0700 |
commit | f6047e7dc658702c729e38043dd7556fbcb68940 (patch) | |
tree | 4a189e7904a63a42ee32a71531a719b7c820147f /CyteKit | |
parent | 9d00dfafd25443077e266f23afcb94055af55ff4 (diff) |
On iOS 6 iPads, Cydia incorrectly uses pinstripes.
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/ViewController.mm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index edd87ca..a573150 100644 --- a/CyteKit/ViewController.mm +++ b/CyteKit/ViewController.mm @@ -123,9 +123,13 @@ extern bool IsWildcat_; - (void) setPageColor:(UIColor *)color { if (color == nil) { color = [UIColor groupTableViewBackgroundColor]; - if ([color isEqual:[UIColor clearColor]]) - color = [UIColor pinStripeColor]; - //color = [UIColor colorWithRed:(215.0/255.0) green:(217.0/255.0) blue:(223.0/255.0) alpha:1.0]; + // on iOS 6 they removed groupTableViewBackgroundColor (it is present on iOS 5 and iOS 6) + if ([color isEqual:[UIColor clearColor]]) { + if (!IsWildcat_) // on devices that aren't iPads, we can just fall back to pinStripeColor + color = [UIColor pinStripeColor]; + else // I don't remember where I got this color, but it is only an approximation of a gradient + color = [UIColor colorWithRed:(215.0/255.0) green:(217.0/255.0) blue:(223.0/255.0) alpha:1.0]; + } } color_ = color; } |