forked from yaypixxo/Kage
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
ce1287e547 | |||
1ebf7538c5 | |||
6aba0c484e | |||
a69c67bee4 | |||
ceb0288569 | |||
2fd4b787a3 | |||
c66c64af42 |
@ -1,7 +1,5 @@
|
|||||||
# Kage
|
# Kage
|
||||||
|
|
||||||
Kage means cake in Danish
|
Kage means cake in Danish and it's pretty cool
|
||||||
|
|
||||||
I really like cake
|
|
||||||
|
|
||||||
anyway, this tweak has a bunch of settings for hiding and showing stuff on the LS and HS.
|
anyway, this tweak has a bunch of settings for hiding and showing stuff on the LS and HS.
|
156
Tweak.x
156
Tweak.x
@ -1,4 +1,4 @@
|
|||||||
// respring function
|
// Respring function
|
||||||
@interface FBSystemService : NSObject
|
@interface FBSystemService : NSObject
|
||||||
+(id)sharedInstance;
|
+(id)sharedInstance;
|
||||||
-(void)exitAndRelaunch:(bool)arg1;
|
-(void)exitAndRelaunch:(bool)arg1;
|
||||||
@ -8,7 +8,7 @@ static void RespringDevice() {
|
|||||||
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES];
|
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
// prefs
|
// Prefs
|
||||||
@interface NSUserDefaults (KagePrefs)
|
@interface NSUserDefaults (KagePrefs)
|
||||||
-(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
|
-(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
|
||||||
-(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
|
-(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
|
||||||
@ -17,14 +17,14 @@ static void RespringDevice() {
|
|||||||
static NSString *nsDomainString = @"com.yaypixxo.kage";
|
static NSString *nsDomainString = @"com.yaypixxo.kage";
|
||||||
static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed";
|
static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed";
|
||||||
|
|
||||||
// declare pref things here (switches, buttons, etc.)
|
// Declare pref things here (switches, buttons, etc.)
|
||||||
static BOOL enabled;
|
static BOOL enabled;
|
||||||
static BOOL hideQuickActionsBG;
|
static BOOL hideQuickActionsBG;
|
||||||
static BOOL gridSwitcher;
|
static BOOL gridSwitcher;
|
||||||
static BOOL hideLSBatt;
|
static BOOL hideLSBatt;
|
||||||
static BOOL statusBarShowTimeLS;
|
static BOOL statusBarShowTimeLS;
|
||||||
static BOOL hideLabels;
|
static BOOL hideLabels;
|
||||||
static BOOL hideCarPlayLabels;
|
//static BOOL hideCarPlayLabels;
|
||||||
static BOOL hideFolderBadges;
|
static BOOL hideFolderBadges;
|
||||||
static BOOL hideFolderTitle;
|
static BOOL hideFolderTitle;
|
||||||
static BOOL hideFolderBG;
|
static BOOL hideFolderBG;
|
||||||
@ -33,6 +33,8 @@ static BOOL hideFolderDots;
|
|||||||
static BOOL hideNoOlderNotifs;
|
static BOOL hideNoOlderNotifs;
|
||||||
//static BOOL hideStatusBarLS;
|
//static BOOL hideStatusBarLS;
|
||||||
static BOOL hideCCGrabber;
|
static BOOL hideCCGrabber;
|
||||||
|
static BOOL noBetaAlert;
|
||||||
|
static BOOL tapFolderClose;
|
||||||
|
|
||||||
static void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
|
static void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
|
||||||
NSNumber *eEnabled = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"enabled" inDomain:nsDomainString];
|
NSNumber *eEnabled = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"enabled" inDomain:nsDomainString];
|
||||||
@ -41,7 +43,7 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
NSNumber *eHideLSBatt = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLSBatt" inDomain:nsDomainString];
|
NSNumber *eHideLSBatt = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLSBatt" inDomain:nsDomainString];
|
||||||
NSNumber *eStatusBarShowTimeLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"statusBarShowTimeLS" inDomain:nsDomainString];
|
NSNumber *eStatusBarShowTimeLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"statusBarShowTimeLS" inDomain:nsDomainString];
|
||||||
NSNumber *eHideLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLabels" inDomain:nsDomainString];
|
NSNumber *eHideLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLabels" inDomain:nsDomainString];
|
||||||
NSNumber *eHideCarPlayLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCarPlayLabels" inDomain:nsDomainString];
|
//NSNumber *eHideCarPlayLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCarPlayLabels" inDomain:nsDomainString];
|
||||||
NSNumber *eHideFolderBadges = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBadges" inDomain:nsDomainString];
|
NSNumber *eHideFolderBadges = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBadges" inDomain:nsDomainString];
|
||||||
NSNumber *eHideFolderTitle = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderTitle" inDomain:nsDomainString];
|
NSNumber *eHideFolderTitle = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderTitle" inDomain:nsDomainString];
|
||||||
NSNumber *eHideFolderBG = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBG" inDomain:nsDomainString];
|
NSNumber *eHideFolderBG = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBG" inDomain:nsDomainString];
|
||||||
@ -50,6 +52,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
NSNumber *eHideNoOlderNotifs = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideNoOlderNotifs" inDomain:nsDomainString];
|
NSNumber *eHideNoOlderNotifs = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideNoOlderNotifs" inDomain:nsDomainString];
|
||||||
//NSNumber *eHideStatusBarLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideStatusBarLS" inDomain:nsDomainString];
|
//NSNumber *eHideStatusBarLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideStatusBarLS" inDomain:nsDomainString];
|
||||||
NSNumber *eHideCCGrabber = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCCGrabber" inDomain:nsDomainString];
|
NSNumber *eHideCCGrabber = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCCGrabber" inDomain:nsDomainString];
|
||||||
|
NSNumber *eNoBetaAlert = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"noBetaAlert" inDomain:nsDomainString];
|
||||||
|
NSNumber *eTapFolderClose = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"tapFolderClose" inDomain:nsDomainString];
|
||||||
|
|
||||||
enabled = (eEnabled) ? [eEnabled boolValue]:NO;
|
enabled = (eEnabled) ? [eEnabled boolValue]:NO;
|
||||||
hideQuickActionsBG = (eHideQuickActionsBG) ? [eHideQuickActionsBG boolValue]:NO;
|
hideQuickActionsBG = (eHideQuickActionsBG) ? [eHideQuickActionsBG boolValue]:NO;
|
||||||
@ -57,7 +61,7 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
hideLSBatt = (eHideLSBatt) ? [eHideLSBatt boolValue]:NO;
|
hideLSBatt = (eHideLSBatt) ? [eHideLSBatt boolValue]:NO;
|
||||||
statusBarShowTimeLS = (eStatusBarShowTimeLS) ? [eStatusBarShowTimeLS boolValue]:NO;
|
statusBarShowTimeLS = (eStatusBarShowTimeLS) ? [eStatusBarShowTimeLS boolValue]:NO;
|
||||||
hideLabels = (eHideLabels) ? [eHideLabels boolValue]:NO;
|
hideLabels = (eHideLabels) ? [eHideLabels boolValue]:NO;
|
||||||
hideCarPlayLabels = (eHideCarPlayLabels) ? [eHideCarPlayLabels boolValue]:NO;
|
//hideCarPlayLabels = (eHideCarPlayLabels) ? [eHideCarPlayLabels boolValue]:NO;
|
||||||
hideFolderBadges = (eHideFolderBadges) ? [eHideFolderBadges boolValue]:NO;
|
hideFolderBadges = (eHideFolderBadges) ? [eHideFolderBadges boolValue]:NO;
|
||||||
hideFolderTitle = (eHideFolderTitle) ? [eHideFolderTitle boolValue]:NO;
|
hideFolderTitle = (eHideFolderTitle) ? [eHideFolderTitle boolValue]:NO;
|
||||||
hideFolderBG = (eHideFolderBG) ? [eHideFolderBG boolValue]:NO;
|
hideFolderBG = (eHideFolderBG) ? [eHideFolderBG boolValue]:NO;
|
||||||
@ -66,13 +70,15 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
hideNoOlderNotifs = (eHideNoOlderNotifs) ? [eHideNoOlderNotifs boolValue]:NO;
|
hideNoOlderNotifs = (eHideNoOlderNotifs) ? [eHideNoOlderNotifs boolValue]:NO;
|
||||||
//hideStatusBarLS = (eHideStatusBarLS) ? [eHideStatusBarLS boolValue]:NO;
|
//hideStatusBarLS = (eHideStatusBarLS) ? [eHideStatusBarLS boolValue]:NO;
|
||||||
hideCCGrabber = (eHideCCGrabber) ? [eHideCCGrabber boolValue]:NO;
|
hideCCGrabber = (eHideCCGrabber) ? [eHideCCGrabber boolValue]:NO;
|
||||||
|
noBetaAlert = (eNoBetaAlert) ? [eNoBetaAlert boolValue]:NO;
|
||||||
|
tapFolderClose = (eTapFolderClose) ? [eTapFolderClose boolValue]:NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
// headers and hooks
|
// Headers
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
/*@interface SBFolderView : UIView
|
@interface SBFloatyFolderView : UIView
|
||||||
@end*/
|
@end
|
||||||
|
|
||||||
@interface SBIconView : UIView
|
@interface SBIconView : UIView
|
||||||
-(void)setLabelHidden:(BOOL)hidden;
|
-(void)setLabelHidden:(BOOL)hidden;
|
||||||
@ -130,9 +136,9 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
|
|
||||||
#define kSLSystemVersioniOS13 kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_13_0
|
#define kSLSystemVersioniOS13 kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_13_0
|
||||||
|
|
||||||
%group universal
|
%group universal // Stuff that works on both iOS 12 & iOS 13 (and some things 9+)
|
||||||
|
|
||||||
// HIDE NO OLDER NOTIFICATIONS START //
|
// Hide no older notifications
|
||||||
%hook NCNotificationListSectionRevealHintView
|
%hook NCNotificationListSectionRevealHintView
|
||||||
|
|
||||||
-(void)didMoveToWindow {
|
-(void)didMoveToWindow {
|
||||||
@ -143,9 +149,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
%end
|
%end
|
||||||
// HIDE NO OLDER NOTIFICATIONS END //
|
|
||||||
|
|
||||||
// QUICK ACTIONS BG START //
|
// Hide quick actions BG
|
||||||
%hook UICoverSheetButton
|
%hook UICoverSheetButton
|
||||||
-(id)_backgroundEffectsWithBrightness:(double)arg1 {
|
-(id)_backgroundEffectsWithBrightness:(double)arg1 {
|
||||||
if (enabled && hideQuickActionsBG) {
|
if (enabled && hideQuickActionsBG) {
|
||||||
@ -156,9 +161,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// QUICK ACTIONS BG END //
|
|
||||||
|
|
||||||
// HIDE FOLDER BADGE TEXT START //
|
// Hide folder badges text
|
||||||
%hook SBIcon
|
%hook SBIcon
|
||||||
-(id)badgeNumberOrString {
|
-(id)badgeNumberOrString {
|
||||||
if (enabled && hideFolderBadges) {
|
if (enabled && hideFolderBadges) {
|
||||||
@ -169,9 +173,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// HIDE FOLDER BADGE TEXT END //
|
|
||||||
|
|
||||||
// HIDE LABELS START //
|
// Hide icon labels
|
||||||
%hook SBIconView
|
%hook SBIconView
|
||||||
-(void)setLabelHidden:(BOOL)hidden {
|
-(void)setLabelHidden:(BOOL)hidden {
|
||||||
if (enabled && hideLabels) {
|
if (enabled && hideLabels) {
|
||||||
@ -180,9 +183,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// HIDE LABELS END //
|
|
||||||
|
|
||||||
// GRID SWITCHER START //
|
// Grid switcher
|
||||||
%hook SBAppSwitcherSettings
|
%hook SBAppSwitcherSettings
|
||||||
- (void)setGridSwitcherPageScale:(double)arg1 {
|
- (void)setGridSwitcherPageScale:(double)arg1 {
|
||||||
if (enabled && gridSwitcher) {
|
if (enabled && gridSwitcher) {
|
||||||
@ -226,9 +228,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// GRID SWITCHER END //
|
|
||||||
|
|
||||||
// NO LS BATTERY START //
|
// Hide LS battery
|
||||||
%hook CSCoverSheetViewController
|
%hook CSCoverSheetViewController
|
||||||
- (void)_transitionChargingViewToVisible:(bool)arg1 showBattery:(bool)arg2 animated:(bool)arg3 {
|
- (void)_transitionChargingViewToVisible:(bool)arg1 showBattery:(bool)arg2 animated:(bool)arg3 {
|
||||||
if (enabled && hideLSBatt) {
|
if (enabled && hideLSBatt) {
|
||||||
@ -237,9 +238,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// NO LS BATTERY END //
|
|
||||||
|
|
||||||
// SHOW FOLDER TITLE START //
|
// Hide folder title
|
||||||
%hook SBFloatyFolderView
|
%hook SBFloatyFolderView
|
||||||
-(BOOL)_showsTitle {
|
-(BOOL)_showsTitle {
|
||||||
if (enabled && hideFolderTitle) {
|
if (enabled && hideFolderTitle) {
|
||||||
@ -250,9 +250,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// SHOW FOLDER TITLE END //
|
|
||||||
|
|
||||||
// HIDE FOLDER BACKGROUND START //
|
// Hide folder backgrounds
|
||||||
%hook SBFloatyFolderView
|
%hook SBFloatyFolderView
|
||||||
-(void)setBackgroundAlpha:(CGFloat)arg1 {
|
-(void)setBackgroundAlpha:(CGFloat)arg1 {
|
||||||
if (enabled && hideFolderBG) {
|
if (enabled && hideFolderBG) {
|
||||||
@ -275,39 +274,19 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// Close folder when tapped inside
|
// Close folder when tapped inside
|
||||||
/*%hook SBFloatyFolderScrollView
|
%hook SBFloatyFolderView
|
||||||
-(SBFloatyFolderScrollView *)initWithFrame:(CGRect)frame {
|
-(BOOL)_tapToCloseGestureRecognizer:(id)arg1 shouldReceiveTouch:(id)arg2 {
|
||||||
if (enabled && hideFolderBG) {
|
%orig;
|
||||||
SBFloatyFolderScrollView *yeet = %orig;
|
if (enabled && tapFolderClose) {
|
||||||
|
return YES;
|
||||||
UITapGestureRecognizer *closeGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeFolder)];
|
|
||||||
|
|
||||||
[yeet addGestureRecognizer:closeGesture];
|
|
||||||
|
|
||||||
return yeet;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%new
|
// Hide folder dots
|
||||||
-(void)closeFolder:(id)sender {
|
|
||||||
UIViewController *parentController = [self _viewControllerForAncestor];
|
|
||||||
|
|
||||||
if ([parentController isKindOfClass:[objc_getClass("SBFolderController") class]]) {
|
|
||||||
SBFolderController *sbfc = (SBFolderController *)parentController;
|
|
||||||
|
|
||||||
if (sbfc && [sbfc.containerView isKindOfClass:[objc_getClass("SBFloatyFolderView") class]]) {
|
|
||||||
[(SBFloatyFolderView *)sbfc.containerView _handleOutsideTap:nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%end*/
|
|
||||||
|
|
||||||
// HIDE FOLDER BACKGROUND END //
|
|
||||||
|
|
||||||
// HIDE FOLDER DOTS START //
|
|
||||||
%hook SBIconListPageControl
|
%hook SBIconListPageControl
|
||||||
-(void)layoutSubviews {
|
-(void)layoutSubviews {
|
||||||
if (enabled && hideFolderDots) {
|
if (enabled && hideFolderDots) {
|
||||||
@ -318,14 +297,39 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// HIDE FOLDER DOTS END //
|
|
||||||
|
|
||||||
%end // end universal group
|
// Hide beta alert
|
||||||
|
|
||||||
// stuff that only works on iOS 13
|
// iOS 9-10
|
||||||
|
%hook SBIconController
|
||||||
|
-(void)showDeveloperBuildExpirationAlertIfNecesarryFromLockscreen:(BOOL)arg1 toLauncher:(BOOL)arg2 {
|
||||||
|
if (enabled && noBetaAlert) {
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// iOS 11-13
|
||||||
|
%hook SBDeveloperBuildExpirationTrigger
|
||||||
|
-(void)showDeveloperBuildExpirationAlertIfNecesarryFromLockscreen:(BOOL)arg1 toLauncher:(BOOL)arg2 {
|
||||||
|
if (enabled && noBetaAlert) {
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%end // End universal group
|
||||||
|
|
||||||
|
// Stuff that only works on iOS 13
|
||||||
%group ios13
|
%group ios13
|
||||||
|
|
||||||
// SHOW TIME IN LS STATUSBAR START //
|
// Show time in LS statusbar
|
||||||
%hook CSCoverSheetViewController
|
%hook CSCoverSheetViewController
|
||||||
- (bool)shouldShowLockStatusBarTime {
|
- (bool)shouldShowLockStatusBarTime {
|
||||||
if (enabled && statusBarShowTimeLS) {
|
if (enabled && statusBarShowTimeLS) {
|
||||||
@ -336,9 +340,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// SHOW TIME IN LS STATUSBAR END //
|
|
||||||
|
|
||||||
// HIDE CC GRABBER START //
|
// Hide CC LS grabber
|
||||||
%hook CSTeachableMomentsContainerView
|
%hook CSTeachableMomentsContainerView
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
if (enabled && hideCCGrabber) {
|
if (enabled && hideCCGrabber) {
|
||||||
@ -350,10 +353,9 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// HIDE CC GRABBER END //
|
|
||||||
|
|
||||||
// HIDE CARPLAY LABELS START //
|
// Hide CarPlay labels
|
||||||
%hook CARIconView
|
/*%hook CARIconView
|
||||||
+(CGSize)maxLabelSizeForIconImageSize:(CGSize)imageSize {
|
+(CGSize)maxLabelSizeForIconImageSize:(CGSize)imageSize {
|
||||||
if (enabled && hideCarPlayLabels) {
|
if (enabled && hideCarPlayLabels) {
|
||||||
return CGSizeZero;
|
return CGSizeZero;
|
||||||
@ -362,15 +364,14 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end*/
|
||||||
// HIDE CARPLAY LABELS END //
|
|
||||||
|
|
||||||
%end // end ios13 group
|
%end // End ios13 group
|
||||||
|
|
||||||
// stuff that only works on iOS 12
|
// Stuff that only works on iOS 12
|
||||||
%group ios12
|
%group ios12
|
||||||
|
|
||||||
// SHOW TIME IN LS STATUSBAR START //
|
// Show time in LS statusbar
|
||||||
%hook SBLockScreenViewControllerBase
|
%hook SBLockScreenViewControllerBase
|
||||||
- (bool)shouldShowLockStatusBarTime {
|
- (bool)shouldShowLockStatusBarTime {
|
||||||
if (enabled && statusBarShowTimeLS) {
|
if (enabled && statusBarShowTimeLS) {
|
||||||
@ -381,9 +382,8 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// SHOW TIME IN LS STATUSBAR END //
|
|
||||||
|
|
||||||
// HIDE CC GRABBER START //
|
// Hide CC LS grabber
|
||||||
%hook SBDashBoardTeachableMomentsContainerView
|
%hook SBDashBoardTeachableMomentsContainerView
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
if (enabled && hideCCGrabber) {
|
if (enabled && hideCCGrabber) {
|
||||||
@ -395,10 +395,9 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
// HIDE CC GRABBER END //
|
|
||||||
|
|
||||||
// HIDE CARPLAY LABELS START //
|
// Hide CarPlay labels
|
||||||
%hook SBStarkIconView
|
/*%hook SBStarkIconView
|
||||||
+(CGSize)maxLabelSize {
|
+(CGSize)maxLabelSize {
|
||||||
if (enabled && hideCarPlayLabels) {
|
if (enabled && hideCarPlayLabels) {
|
||||||
return CGSizeZero;
|
return CGSizeZero;
|
||||||
@ -407,15 +406,14 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end*/
|
||||||
// HIDE CARPLAY LABELS END //
|
|
||||||
|
|
||||||
%end // end ios12 group
|
%end // End ios12 group
|
||||||
|
|
||||||
// LISTENERS
|
// Listeners
|
||||||
%ctor {
|
%ctor {
|
||||||
%init(universal);
|
%init(universal);
|
||||||
// check iOS version
|
// Check iOS version
|
||||||
if (kSLSystemVersioniOS13) {
|
if (kSLSystemVersioniOS13) {
|
||||||
%init(ios13);
|
%init(ios13);
|
||||||
}
|
}
|
||||||
@ -423,10 +421,10 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%init(ios12);
|
%init(ios12);
|
||||||
}
|
}
|
||||||
|
|
||||||
// prefs changed listener
|
// Prefs changed listener
|
||||||
notificationCallback(NULL, NULL, NULL, NULL, NULL);
|
notificationCallback(NULL, NULL, NULL, NULL, NULL);
|
||||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
|
||||||
|
|
||||||
// respring listener
|
// Respring listener
|
||||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.kage/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.kage/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||||
}
|
}
|
||||||
|
4
control
4
control
@ -1,9 +1,9 @@
|
|||||||
Package: com.yaypixxo.kage
|
Package: com.yaypixxo.kage
|
||||||
Name: Kage
|
Name: Kage
|
||||||
Depends: mobilesubstrate, preferenceloader
|
Depends: mobilesubstrate, preferenceloader
|
||||||
Version: 1.1.2
|
Version: 1.1.3
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Description: show/hide/change ls and hs stuff!
|
Description: Show/hide/change LS and HS stuff
|
||||||
Icon: https://yaypixxo.com/assets/com.yaypixxo.kage.png
|
Icon: https://yaypixxo.com/assets/com.yaypixxo.kage.png
|
||||||
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage
|
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage
|
||||||
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage
|
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage
|
||||||
|
@ -220,6 +220,34 @@
|
|||||||
<key>PostNotification</key>
|
<key>PostNotification</key>
|
||||||
<string>com.yaypixxo.kage/preferences.changed</string>
|
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.yaypixxo.kage</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>noBetaAlert</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>No Beta iOS Alert</string>
|
||||||
|
<key>PostNotification</key>
|
||||||
|
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.yaypixxo.kage</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>tapFolderClose</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Tap Folder BG To Close</string>
|
||||||
|
<key>PostNotification</key>
|
||||||
|
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSGroupCell</string>
|
<string>PSGroupCell</string>
|
||||||
|
Reference in New Issue
Block a user