summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.app/changes7.pngbin0 -> 23467 bytes
-rw-r--r--MobileCydia.app/changes7@2x.pngbin0 -> 24004 bytes
-rw-r--r--MobileCydia.app/changes7s.pngbin0 -> 23363 bytes
-rw-r--r--MobileCydia.app/changes7s@2x.pngbin0 -> 23784 bytes
-rw-r--r--MobileCydia.app/home7.pngbin0 -> 23527 bytes
-rw-r--r--MobileCydia.app/home7@2x.pngbin0 -> 24135 bytes
-rw-r--r--MobileCydia.app/home7s.pngbin0 -> 23410 bytes
-rw-r--r--MobileCydia.app/home7s@2x.pngbin0 -> 23883 bytes
-rw-r--r--MobileCydia.app/install7.pngbin0 -> 23083 bytes
-rw-r--r--MobileCydia.app/install7@2x.pngbin0 -> 23150 bytes
-rw-r--r--MobileCydia.app/install7s.pngbin0 -> 23077 bytes
-rw-r--r--MobileCydia.app/install7s@2x.pngbin0 -> 23137 bytes
-rw-r--r--MobileCydia.app/installed7.pngbin0 -> 23497 bytes
-rw-r--r--MobileCydia.app/installed7@2x.pngbin0 -> 24046 bytes
-rw-r--r--MobileCydia.app/installed7s.pngbin0 -> 23411 bytes
-rw-r--r--MobileCydia.app/installed7s@2x.pngbin0 -> 23843 bytes
-rw-r--r--MobileCydia.app/manage7.pngbin0 -> 23769 bytes
-rw-r--r--MobileCydia.app/manage7@2x.pngbin0 -> 24782 bytes
-rw-r--r--MobileCydia.app/manage7s.pngbin0 -> 23690 bytes
-rw-r--r--MobileCydia.app/manage7s@2x.pngbin0 -> 24640 bytes
-rw-r--r--MobileCydia.app/search7.pngbin0 -> 23389 bytes
-rw-r--r--MobileCydia.app/search7@2x.pngbin0 -> 23885 bytes
-rw-r--r--MobileCydia.app/search7s.pngbin0 -> 23382 bytes
-rw-r--r--MobileCydia.app/search7s@2x.pngbin0 -> 23855 bytes
-rw-r--r--MobileCydia.mm37
-rw-r--r--iPhonePrivate.h4
26 files changed, 31 insertions, 10 deletions
diff --git a/MobileCydia.app/changes7.png b/MobileCydia.app/changes7.png
new file mode 100644
index 0000000..ef10a6d
--- /dev/null
+++ b/MobileCydia.app/changes7.png
Binary files differ
diff --git a/MobileCydia.app/changes7@2x.png b/MobileCydia.app/changes7@2x.png
new file mode 100644
index 0000000..f2745b2
--- /dev/null
+++ b/MobileCydia.app/changes7@2x.png
Binary files differ
diff --git a/MobileCydia.app/changes7s.png b/MobileCydia.app/changes7s.png
new file mode 100644
index 0000000..124d9db
--- /dev/null
+++ b/MobileCydia.app/changes7s.png
Binary files differ
diff --git a/MobileCydia.app/changes7s@2x.png b/MobileCydia.app/changes7s@2x.png
new file mode 100644
index 0000000..c3c9674
--- /dev/null
+++ b/MobileCydia.app/changes7s@2x.png
Binary files differ
diff --git a/MobileCydia.app/home7.png b/MobileCydia.app/home7.png
new file mode 100644
index 0000000..8f46952
--- /dev/null
+++ b/MobileCydia.app/home7.png
Binary files differ
diff --git a/MobileCydia.app/home7@2x.png b/MobileCydia.app/home7@2x.png
new file mode 100644
index 0000000..89a3736
--- /dev/null
+++ b/MobileCydia.app/home7@2x.png
Binary files differ
diff --git a/MobileCydia.app/home7s.png b/MobileCydia.app/home7s.png
new file mode 100644
index 0000000..c6e225f
--- /dev/null
+++ b/MobileCydia.app/home7s.png
Binary files differ
diff --git a/MobileCydia.app/home7s@2x.png b/MobileCydia.app/home7s@2x.png
new file mode 100644
index 0000000..b662d5b
--- /dev/null
+++ b/MobileCydia.app/home7s@2x.png
Binary files differ
diff --git a/MobileCydia.app/install7.png b/MobileCydia.app/install7.png
new file mode 100644
index 0000000..ecfce8d
--- /dev/null
+++ b/MobileCydia.app/install7.png
Binary files differ
diff --git a/MobileCydia.app/install7@2x.png b/MobileCydia.app/install7@2x.png
new file mode 100644
index 0000000..19a56aa
--- /dev/null
+++ b/MobileCydia.app/install7@2x.png
Binary files differ
diff --git a/MobileCydia.app/install7s.png b/MobileCydia.app/install7s.png
new file mode 100644
index 0000000..5adb7a6
--- /dev/null
+++ b/MobileCydia.app/install7s.png
Binary files differ
diff --git a/MobileCydia.app/install7s@2x.png b/MobileCydia.app/install7s@2x.png
new file mode 100644
index 0000000..1b2fd30
--- /dev/null
+++ b/MobileCydia.app/install7s@2x.png
Binary files differ
diff --git a/MobileCydia.app/installed7.png b/MobileCydia.app/installed7.png
new file mode 100644
index 0000000..79f86ba
--- /dev/null
+++ b/MobileCydia.app/installed7.png
Binary files differ
diff --git a/MobileCydia.app/installed7@2x.png b/MobileCydia.app/installed7@2x.png
new file mode 100644
index 0000000..58a1a1f
--- /dev/null
+++ b/MobileCydia.app/installed7@2x.png
Binary files differ
diff --git a/MobileCydia.app/installed7s.png b/MobileCydia.app/installed7s.png
new file mode 100644
index 0000000..1781884
--- /dev/null
+++ b/MobileCydia.app/installed7s.png
Binary files differ
diff --git a/MobileCydia.app/installed7s@2x.png b/MobileCydia.app/installed7s@2x.png
new file mode 100644
index 0000000..25a4ade
--- /dev/null
+++ b/MobileCydia.app/installed7s@2x.png
Binary files differ
diff --git a/MobileCydia.app/manage7.png b/MobileCydia.app/manage7.png
new file mode 100644
index 0000000..070b5be
--- /dev/null
+++ b/MobileCydia.app/manage7.png
Binary files differ
diff --git a/MobileCydia.app/manage7@2x.png b/MobileCydia.app/manage7@2x.png
new file mode 100644
index 0000000..ffef928
--- /dev/null
+++ b/MobileCydia.app/manage7@2x.png
Binary files differ
diff --git a/MobileCydia.app/manage7s.png b/MobileCydia.app/manage7s.png
new file mode 100644
index 0000000..f3979cb
--- /dev/null
+++ b/MobileCydia.app/manage7s.png
Binary files differ
diff --git a/MobileCydia.app/manage7s@2x.png b/MobileCydia.app/manage7s@2x.png
new file mode 100644
index 0000000..5334fbc
--- /dev/null
+++ b/MobileCydia.app/manage7s@2x.png
Binary files differ
diff --git a/MobileCydia.app/search7.png b/MobileCydia.app/search7.png
new file mode 100644
index 0000000..3f7f7bc
--- /dev/null
+++ b/MobileCydia.app/search7.png
Binary files differ
diff --git a/MobileCydia.app/search7@2x.png b/MobileCydia.app/search7@2x.png
new file mode 100644
index 0000000..c124697
--- /dev/null
+++ b/MobileCydia.app/search7@2x.png
Binary files differ
diff --git a/MobileCydia.app/search7s.png b/MobileCydia.app/search7s.png
new file mode 100644
index 0000000..4e383ba
--- /dev/null
+++ b/MobileCydia.app/search7s.png
Binary files differ
diff --git a/MobileCydia.app/search7s@2x.png b/MobileCydia.app/search7s@2x.png
new file mode 100644
index 0000000..1b437ee
--- /dev/null
+++ b/MobileCydia.app/search7s@2x.png
Binary files differ
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 661e402..8298c37 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 80aed02..5f5ba12 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