|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
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]; |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
%end |
|
|
%end |
|
|
// HIDE NO OLDER NOTIFICATIONS END // |
|
|
// HIDE NO OLDER NOTIFICATIONS END // |
|
|
|
|
|
|
|
|
// QUICK ACTIONS BG START // |
|
|
|
|
|
|
|
|
// HIDE QUICK ACTIONS BG START // |
|
|
%hook UICoverSheetButton |
|
|
%hook UICoverSheetButton |
|
|
-(id)_backgroundEffectsWithBrightness:(double)arg1 { |
|
|
-(id)_backgroundEffectsWithBrightness:(double)arg1 { |
|
|
if (enabled && hideQuickActionsBG) { |
|
|
if (enabled && hideQuickActionsBG) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
%end |
|
|
%end |
|
|
// QUICK ACTIONS BG END // |
|
|
|
|
|
|
|
|
// HIDE QUICK ACTIONS BG END // |
|
|
|
|
|
|
|
|
// HIDE FOLDER BADGE TEXT START // |
|
|
// HIDE FOLDER BADGE TEXT START // |
|
|
%hook SBIcon |
|
|
%hook SBIcon |
|
|
|
|
|
|
|
|
// HIDE CC GRABBER END // |
|
|
// HIDE CC GRABBER END // |
|
|
|
|
|
|
|
|
// HIDE CARPLAY LABELS START // |
|
|
// HIDE CARPLAY LABELS START // |
|
|
%hook CARIconView |
|
|
|
|
|
|
|
|
/*%hook CARIconView |
|
|
+(CGSize)maxLabelSizeForIconImageSize:(CGSize)imageSize { |
|
|
+(CGSize)maxLabelSizeForIconImageSize:(CGSize)imageSize { |
|
|
if (enabled && hideCarPlayLabels) { |
|
|
if (enabled && hideCarPlayLabels) { |
|
|
return CGSizeZero; |
|
|
return CGSizeZero; |
|
|
|
|
|
|
|
|
return %orig; |
|
|
return %orig; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
%end |
|
|
|
|
|
|
|
|
%end*/ |
|
|
// HIDE CARPLAY LABELS END // |
|
|
// HIDE CARPLAY LABELS END // |
|
|
|
|
|
|
|
|
%end // end ios13 group |
|
|
%end // end ios13 group |
|
|
|
|
|
|
|
|
// HIDE CC GRABBER END // |
|
|
// HIDE CC GRABBER END // |
|
|
|
|
|
|
|
|
// HIDE CARPLAY LABELS START // |
|
|
// HIDE CARPLAY LABELS START // |
|
|
%hook SBStarkIconView |
|
|
|
|
|
|
|
|
/*%hook SBStarkIconView |
|
|
+(CGSize)maxLabelSize { |
|
|
+(CGSize)maxLabelSize { |
|
|
if (enabled && hideCarPlayLabels) { |
|
|
if (enabled && hideCarPlayLabels) { |
|
|
return CGSizeZero; |
|
|
return CGSizeZero; |
|
|
|
|
|
|
|
|
return %orig; |
|
|
return %orig; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
%end |
|
|
|
|
|
|
|
|
%end*/ |
|
|
// HIDE CARPLAY LABELS END // |
|
|
// HIDE CARPLAY LABELS END // |
|
|
|
|
|
|
|
|
%end // end ios12 group |
|
|
%end // end ios12 group |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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); |
|
|
} |
|
|
|
|
|
|
|
|
} |