]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/ViewController.mm
Remove the dropbar, replace with a loading badge.
[cydia.git] / CyteKit / ViewController.mm
index fa90b3761105af50995c2f88005826494b29121a..edd87ca00338a6f16d0ed1fc0bf831dce88e1bb7 100644 (file)
@@ -1,5 +1,5 @@
 /* Cydia - iPhone UIKit Front-End for Debian APT
- * Copyright (C) 2008-2012  Jay Freeman (saurik)
+ * Copyright (C) 2008-2013  Jay Freeman (saurik)
 */
 
 /* GNU General Public License, Version 3 {{{ */
@@ -24,6 +24,8 @@
 #include <Foundation/Foundation.h>
 #include <UIKit/UIKit.h>
 
+#include "iPhonePrivate.h"
+
 extern bool IsWildcat_;
 
 @implementation UIViewController (Cydia)
@@ -110,4 +112,21 @@ extern bool IsWildcat_;
     return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
 }
 
+- (NSUInteger) supportedInterfaceOrientations {
+    return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
+}
+
+- (BOOL) shouldAutorotate {
+    return YES;
+}
+
+- (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