]> git.saurik.com Git - cydia.git/commitdiff
Add the new iOS 7 tab bar icons (from Surenix).
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 15 Oct 2013 04:03:29 +0000 (21:03 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 15 Oct 2013 04:03:29 +0000 (21:03 -0700)
26 files changed:
MobileCydia.app/changes7.png [new file with mode: 0644]
MobileCydia.app/changes7@2x.png [new file with mode: 0644]
MobileCydia.app/changes7s.png [new file with mode: 0644]
MobileCydia.app/changes7s@2x.png [new file with mode: 0644]
MobileCydia.app/home7.png [new file with mode: 0644]
MobileCydia.app/home7@2x.png [new file with mode: 0644]
MobileCydia.app/home7s.png [new file with mode: 0644]
MobileCydia.app/home7s@2x.png [new file with mode: 0644]
MobileCydia.app/install7.png [new file with mode: 0644]
MobileCydia.app/install7@2x.png [new file with mode: 0644]
MobileCydia.app/install7s.png [new file with mode: 0644]
MobileCydia.app/install7s@2x.png [new file with mode: 0644]
MobileCydia.app/installed7.png [new file with mode: 0644]
MobileCydia.app/installed7@2x.png [new file with mode: 0644]
MobileCydia.app/installed7s.png [new file with mode: 0644]
MobileCydia.app/installed7s@2x.png [new file with mode: 0644]
MobileCydia.app/manage7.png [new file with mode: 0644]
MobileCydia.app/manage7@2x.png [new file with mode: 0644]
MobileCydia.app/manage7s.png [new file with mode: 0644]
MobileCydia.app/manage7s@2x.png [new file with mode: 0644]
MobileCydia.app/search7.png [new file with mode: 0644]
MobileCydia.app/search7@2x.png [new file with mode: 0644]
MobileCydia.app/search7s.png [new file with mode: 0644]
MobileCydia.app/search7s@2x.png [new file with mode: 0644]
MobileCydia.mm
iPhonePrivate.h

diff --git a/MobileCydia.app/changes7.png b/MobileCydia.app/changes7.png
new file mode 100644 (file)
index 0000000..ef10a6d
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 (file)
index 0000000..f2745b2
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 (file)
index 0000000..124d9db
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 (file)
index 0000000..c3c9674
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 (file)
index 0000000..8f46952
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 (file)
index 0000000..89a3736
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 (file)
index 0000000..c6e225f
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 (file)
index 0000000..b662d5b
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 (file)
index 0000000..ecfce8d
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 (file)
index 0000000..19a56aa
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 (file)
index 0000000..5adb7a6
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 (file)
index 0000000..1b2fd30
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 (file)
index 0000000..79f86ba
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 (file)
index 0000000..58a1a1f
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 (file)
index 0000000..1781884
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 (file)
index 0000000..25a4ade
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 (file)
index 0000000..070b5be
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 (file)
index 0000000..ffef928
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 (file)
index 0000000..f3979cb
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 (file)
index 0000000..5334fbc
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 (file)
index 0000000..3f7f7bc
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 (file)
index 0000000..c124697
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 (file)
index 0000000..4e383ba
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 (file)
index 0000000..1b437ee
Binary files /dev/null and b/MobileCydia.app/search7s@2x.png differ
index 661e402dc8f3cef0d4bb7ed1d84af55be0748b3d..8298c374bdd48d92bcb872bf0ba6dadfb9161cc6 100644 (file)
@@ -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]);
index 80aed02f2e26774ba12336dbd872e711e317c15f..5f5ba129843b83c55b20ec9c6be3a1c5a5bd7443 100644 (file)
@@ -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