summaryrefslogtreecommitdiff
path: root/CyteKit/ViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-12-23 16:18:02 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-12-23 16:18:02 -0800
commitd32f96beabb726c84dfeaa3a51bb365eded7f8f9 (patch)
treec60863e6007bd76307d1929b7c98a6eb129b50a4 /CyteKit/ViewController.mm
parent5738f070516b40d0ae4e0ebb570ec86449b4ad60 (diff)
Fix background color so it works on all iOS builds.
Diffstat (limited to 'CyteKit/ViewController.mm')
-rw-r--r--CyteKit/ViewController.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index a036595..df2ba61 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -24,6 +24,8 @@
#include <Foundation/Foundation.h>
#include <UIKit/UIKit.h>
+#include "iPhonePrivate.h"
+
extern bool IsWildcat_;
@implementation UIViewController (Cydia)
@@ -110,4 +112,13 @@ extern bool IsWildcat_;
return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
}
+- (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];
+ } color_ = color;
+}
+
@end