Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f33dc5a
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
debs/ | ||
obj/ | ||
_/ | ||
.theos/ | ||
theos/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ Filter = { Bundles = ( "com.apple.mobilephone" ); }; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARCHS = armv7 armv7s arm64 | ||
include theos/makefiles/common.mk | ||
|
||
TWEAK_NAME = Elite | ||
Elite_FILES = Tweak.xm | ||
Elite_FRAMEWORKS = UIKit | ||
TARGET := iphone:8.0:8.0 | ||
|
||
include $(THEOS_MAKE_PATH)/tweak.mk | ||
|
||
after-install:: | ||
install.exec "killall -9 MobilePhone" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface CHRecentCall : NSObject | ||
@property unsigned int callStatus; | ||
@end | ||
|
||
@interface PHRecentsCell : UITableViewCell { | ||
UILabel* _callerNameLabel; | ||
CHRecentCall* _call; | ||
} | ||
-(void)setEditing:(BOOL)arg1 animated:(BOOL)arg2; | ||
@end | ||
|
||
%hook PHRecentsCell | ||
|
||
//yea probably not the best place to do this | ||
-(void)setEditing:(BOOL)arg1 animated:(BOOL)arg2 { | ||
|
||
UILabel *nameLabel = MSHookIvar<UILabel *>(self, "_callerNameLabel"); | ||
CHRecentCall *callInfo = MSHookIvar<CHRecentCall *>(self, "_call"); | ||
|
||
//incoming call : 1 | ||
//answered elsewhere (another device) : 4 | ||
if (callInfo.callStatus == 1 || callInfo.callStatus == 4) { | ||
nameLabel.textColor = [UIColor colorWithRed:36.0/255.0 green:87.0/255.0 blue:156.0/255.0 alpha:1]; | ||
} else | ||
|
||
//outgoing call : 2 | ||
//cancelled (??) : 16 | ||
if (callInfo.callStatus == 2 || callInfo.callStatus == 16) { | ||
nameLabel.textColor = [UIColor colorWithRed:0.0/255.0 green:125.0/255.0 blue:0.0/255.0 alpha:1]; | ||
} else { | ||
nameLabel.textColor = [UIColor colorWithRed:218.0/255.0 green:0.0/255.0 blue:0.0/255.0 alpha:1]; | ||
} | ||
|
||
%orig; | ||
} | ||
%end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: com.leftyfl1p.elite | ||
Name: Elite | ||
Depends: mobilesubstrate | ||
Version: 0.0.1 | ||
Architecture: iphoneos-arm | ||
Description: An awesome MobileSubstrate tweak! | ||
Maintainer: leftyfl1p | ||
Author: leftyfl1p | ||
Section: Tweaks | ||
Depiction: https://leftyfl1p.github.io/depictions/?p=com.leftyfl1p.elite |