From: Jay Freeman (saurik) Date: Tue, 15 Oct 2013 04:03:29 +0000 (-0700) Subject: Add the new iOS 7 tab bar icons (from Surenix). X-Git-Tag: v1.1.9~23 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/6445279ba16f6b45769f65ab9386af5b3c2fc506?ds=sidebyside Add the new iOS 7 tab bar icons (from Surenix). --- diff --git a/MobileCydia.app/changes7.png b/MobileCydia.app/changes7.png new file mode 100644 index 00000000..ef10a6dc Binary files /dev/null and b/MobileCydia.app/changes7.png differ diff --git a/MobileCydia.app/changes7@2x.png b/MobileCydia.app/changes7@2x.png new file mode 100644 index 00000000..f2745b28 Binary files /dev/null and b/MobileCydia.app/changes7@2x.png differ diff --git a/MobileCydia.app/changes7s.png b/MobileCydia.app/changes7s.png new file mode 100644 index 00000000..124d9db9 Binary files /dev/null and b/MobileCydia.app/changes7s.png differ diff --git a/MobileCydia.app/changes7s@2x.png b/MobileCydia.app/changes7s@2x.png new file mode 100644 index 00000000..c3c9674c Binary files /dev/null and b/MobileCydia.app/changes7s@2x.png differ diff --git a/MobileCydia.app/home7.png b/MobileCydia.app/home7.png new file mode 100644 index 00000000..8f469523 Binary files /dev/null and b/MobileCydia.app/home7.png differ diff --git a/MobileCydia.app/home7@2x.png b/MobileCydia.app/home7@2x.png new file mode 100644 index 00000000..89a37363 Binary files /dev/null and b/MobileCydia.app/home7@2x.png differ diff --git a/MobileCydia.app/home7s.png b/MobileCydia.app/home7s.png new file mode 100644 index 00000000..c6e225f8 Binary files /dev/null and b/MobileCydia.app/home7s.png differ diff --git a/MobileCydia.app/home7s@2x.png b/MobileCydia.app/home7s@2x.png new file mode 100644 index 00000000..b662d5b6 Binary files /dev/null and b/MobileCydia.app/home7s@2x.png differ diff --git a/MobileCydia.app/install7.png b/MobileCydia.app/install7.png new file mode 100644 index 00000000..ecfce8dd Binary files /dev/null and b/MobileCydia.app/install7.png differ diff --git a/MobileCydia.app/install7@2x.png b/MobileCydia.app/install7@2x.png new file mode 100644 index 00000000..19a56aa7 Binary files /dev/null and b/MobileCydia.app/install7@2x.png differ diff --git a/MobileCydia.app/install7s.png b/MobileCydia.app/install7s.png new file mode 100644 index 00000000..5adb7a65 Binary files /dev/null and b/MobileCydia.app/install7s.png differ diff --git a/MobileCydia.app/install7s@2x.png b/MobileCydia.app/install7s@2x.png new file mode 100644 index 00000000..1b2fd306 Binary files /dev/null and b/MobileCydia.app/install7s@2x.png differ diff --git a/MobileCydia.app/installed7.png b/MobileCydia.app/installed7.png new file mode 100644 index 00000000..79f86bac Binary files /dev/null and b/MobileCydia.app/installed7.png differ diff --git a/MobileCydia.app/installed7@2x.png b/MobileCydia.app/installed7@2x.png new file mode 100644 index 00000000..58a1a1fa Binary files /dev/null and b/MobileCydia.app/installed7@2x.png differ diff --git a/MobileCydia.app/installed7s.png b/MobileCydia.app/installed7s.png new file mode 100644 index 00000000..1781884b Binary files /dev/null and b/MobileCydia.app/installed7s.png differ diff --git a/MobileCydia.app/installed7s@2x.png b/MobileCydia.app/installed7s@2x.png new file mode 100644 index 00000000..25a4ade6 Binary files /dev/null and b/MobileCydia.app/installed7s@2x.png differ diff --git a/MobileCydia.app/manage7.png b/MobileCydia.app/manage7.png new file mode 100644 index 00000000..070b5be7 Binary files /dev/null and b/MobileCydia.app/manage7.png differ diff --git a/MobileCydia.app/manage7@2x.png b/MobileCydia.app/manage7@2x.png new file mode 100644 index 00000000..ffef928f Binary files /dev/null and b/MobileCydia.app/manage7@2x.png differ diff --git a/MobileCydia.app/manage7s.png b/MobileCydia.app/manage7s.png new file mode 100644 index 00000000..f3979cbd Binary files /dev/null and b/MobileCydia.app/manage7s.png differ diff --git a/MobileCydia.app/manage7s@2x.png b/MobileCydia.app/manage7s@2x.png new file mode 100644 index 00000000..5334fbce Binary files /dev/null and b/MobileCydia.app/manage7s@2x.png differ diff --git a/MobileCydia.app/search7.png b/MobileCydia.app/search7.png new file mode 100644 index 00000000..3f7f7bc8 Binary files /dev/null and b/MobileCydia.app/search7.png differ diff --git a/MobileCydia.app/search7@2x.png b/MobileCydia.app/search7@2x.png new file mode 100644 index 00000000..c1246971 Binary files /dev/null and b/MobileCydia.app/search7@2x.png differ diff --git a/MobileCydia.app/search7s.png b/MobileCydia.app/search7s.png new file mode 100644 index 00000000..4e383ba9 Binary files /dev/null and b/MobileCydia.app/search7s.png differ diff --git a/MobileCydia.app/search7s@2x.png b/MobileCydia.app/search7s@2x.png new file mode 100644 index 00000000..1b437ee7 Binary files /dev/null and b/MobileCydia.app/search7s@2x.png differ diff --git a/MobileCydia.mm b/MobileCydia.mm index 661e402d..8298c374 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10112,18 +10112,35 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) setupViewControllers { tabbar_ = [[[CYTabBarController alloc] initWithDatabase:database_] autorelease]; - NSMutableArray *items([NSMutableArray arrayWithObjects: - [[[UITabBarItem alloc] initWithTitle:@"Cydia" image:[UIImage applicationImageNamed:@"home.png"] tag:0] autorelease], - [[[UITabBarItem alloc] initWithTitle:UCLocalize("SECTIONS") image:[UIImage applicationImageNamed:@"install.png"] tag:0] autorelease], - [[[UITabBarItem alloc] initWithTitle:(AprilFools_ ? @"Timeline" : UCLocalize("CHANGES")) image:[UIImage applicationImageNamed:@"changes.png"] tag:0] autorelease], - [[[UITabBarItem alloc] initWithTitle:UCLocalize("SEARCH") image:[UIImage applicationImageNamed:@"search.png"] tag:0] autorelease], - nil]); + NSMutableArray *items; + if (kCFCoreFoundationVersionNumber < 800) { + items = [NSMutableArray arrayWithObjects: + [[[UITabBarItem alloc] initWithTitle:@"Cydia" image:[UIImage applicationImageNamed:@"home.png"] tag:0] autorelease], + [[[UITabBarItem alloc] initWithTitle:UCLocalize("SECTIONS") image:[UIImage applicationImageNamed:@"install.png"] tag:0] autorelease], + [[[UITabBarItem alloc] initWithTitle:(AprilFools_ ? @"Timeline" : UCLocalize("CHANGES")) image:[UIImage applicationImageNamed:@"changes.png"] tag:0] autorelease], + [[[UITabBarItem alloc] initWithTitle:UCLocalize("SEARCH") image:[UIImage applicationImageNamed:@"search.png"] tag:0] autorelease], + nil]; - if (IsWildcat_) { - [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("SOURCES") image:[UIImage applicationImageNamed:@"source.png"] tag:0] autorelease] atIndex:3]; - [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("INSTALLED") image:[UIImage applicationImageNamed:@"manage.png"] tag:0] autorelease] atIndex:3]; + if (IsWildcat_) { + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("SOURCES") image:[UIImage applicationImageNamed:@"source.png"] tag:0] autorelease] atIndex:3]; + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("INSTALLED") image:[UIImage applicationImageNamed:@"manage.png"] tag:0] autorelease] atIndex:3]; + } else { + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("MANAGE") image:[UIImage applicationImageNamed:@"manage.png"] tag:0] autorelease] atIndex:3]; + } } else { - [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("MANAGE") image:[UIImage applicationImageNamed:@"manage.png"] tag:0] autorelease] atIndex:3]; + items = [NSMutableArray arrayWithObjects: + [[[UITabBarItem alloc] initWithTitle:@"Cydia" image:[UIImage applicationImageNamed:@"home7.png"] selectedImage:[UIImage applicationImageNamed:@"home7s.png"]] autorelease], + [[[UITabBarItem alloc] initWithTitle:UCLocalize("SECTIONS") image:[UIImage applicationImageNamed:@"install7.png"] selectedImage:[UIImage applicationImageNamed:@"install7s.png"]] autorelease], + [[[UITabBarItem alloc] initWithTitle:(AprilFools_ ? @"Timeline" : UCLocalize("CHANGES")) image:[UIImage applicationImageNamed:@"changes7.png"] selectedImage:[UIImage applicationImageNamed:@"changes7s.png"]] autorelease], + [[[UITabBarItem alloc] initWithTitle:UCLocalize("SEARCH") image:[UIImage applicationImageNamed:@"search7.png"] selectedImage:[UIImage applicationImageNamed:@"search7s.png"]] autorelease], + nil]; + + if (IsWildcat_) { + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("SOURCES") image:[UIImage applicationImageNamed:@"source7.png"] selectedImage:[UIImage applicationImageNamed:@"source7s.png"]] autorelease] atIndex:3]; + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("INSTALLED") image:[UIImage applicationImageNamed:@"manage7.png"] selectedImage:[UIImage applicationImageNamed:@"manage7s.png"]] autorelease] atIndex:3]; + } else { + [items insertObject:[[[UITabBarItem alloc] initWithTitle:UCLocalize("MANAGE") image:[UIImage applicationImageNamed:@"manage7.png"] selectedImage:[UIImage applicationImageNamed:@"manage7s.png"]] autorelease] atIndex:3]; + } } NSMutableArray *controllers([NSMutableArray array]); diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 80aed02f..5f5ba129 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -410,6 +410,10 @@ extern float const UIScrollViewDecelerationRateNormal; #define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32 #endif +@interface UITabBarItem (iOS_7_0) +- (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage; +@end + @interface UIScreen (iOS_4_0) @property(nonatomic,readonly) CGFloat scale; @end