summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-24 06:15:09 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:14 -0800
commite665fe9856a201390b6da02c149678468a3c3c6a (patch)
treefdb3fdbcbebf9ed81fed6880ad352c061aa6c471 /MobileCydia.mm
parent262393b9bf781fe84a3738d86c71bd6348d5b0b1 (diff)
Solve the iPad pinstripes != gray problem.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm9
1 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bfcd2be..f82d393 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4433,9 +4433,16 @@ static NSString *Warning_;
} return self;
}
+// XXX: factor this out somewhere
+- (UIColor *) groupTableViewBackgroundColor {
+ UIDevice *device([UIDevice currentDevice]);
+ bool iPad([device respondsToSelector:@selector(userInterfaceIdiom)] && [device userInterfaceIdiom] == UIUserInterfaceIdiomPad);
+ return iPad ? [UIColor colorWithRed:0.821 green:0.834 blue:0.860 alpha:1] : [UIColor groupTableViewBackgroundColor];
+}
+
- (void) loadView {
[self setView:[[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]];
- [[self view] setBackgroundColor:[UIColor pinStripeColor]];
+ [[self view] setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
indicator_ = [[[CYLoadingIndicator alloc] initWithFrame:[[self view] bounds]] autorelease];
[indicator_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];