hide/show/change stuff on the LS and HS
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

356 lines
25KB

  1. #line 1 "Tweak.x"
  2. @interface FBSystemService : NSObject
  3. +(id)sharedInstance;
  4. -(void)exitAndRelaunch:(bool)arg1;
  5. @end
  6. #include <substrate.h>
  7. #if defined(__clang__)
  8. #if __has_feature(objc_arc)
  9. #define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
  10. #define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
  11. #define _LOGOS_SELF_CONST const
  12. #define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
  13. #else
  14. #define _LOGOS_SELF_TYPE_NORMAL
  15. #define _LOGOS_SELF_TYPE_INIT
  16. #define _LOGOS_SELF_CONST
  17. #define _LOGOS_RETURN_RETAINED
  18. #endif
  19. #else
  20. #define _LOGOS_SELF_TYPE_NORMAL
  21. #define _LOGOS_SELF_TYPE_INIT
  22. #define _LOGOS_SELF_CONST
  23. #define _LOGOS_RETURN_RETAINED
  24. #endif
  25. @class SBStarkIconView; @class UICoverSheetButton; @class CSTeachableMomentsContainerView; @class SBLockScreenViewControllerBase; @class CARIconView; @class SBIconView; @class SBFloatyFolderView; @class FBSystemService; @class SBDashBoardTeachableMomentsContainerView; @class SBIcon; @class SBAppSwitcherSettings; @class CSCoverSheetViewController; @class SBFolderBackgroundView;
  26. static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$FBSystemService(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("FBSystemService"); } return _klass; }
  27. #line 7 "Tweak.x"
  28. static void RespringDevice() {
  29. [[_logos_static_class_lookup$FBSystemService() sharedInstance] exitAndRelaunch:YES];
  30. }
  31. @interface NSUserDefaults (KagePrefs)
  32. -(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
  33. -(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
  34. @end
  35. static NSString *nsDomainString = @"com.yaypixxo.kage";
  36. static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed";
  37. static BOOL enabled;
  38. static BOOL hideQuickActionsBG;
  39. static BOOL gridSwitcher;
  40. static BOOL hideLSBatt;
  41. static BOOL statusBarShowTimeLS;
  42. static BOOL hideLabels;
  43. static BOOL hideCarPlayLabels;
  44. static BOOL hideFolderBadges;
  45. static BOOL hideFolderTitle;
  46. static BOOL hideFolderBG;
  47. static BOOL hideCCGrabber;
  48. static void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
  49. NSNumber *eEnabled = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"enabled" inDomain:nsDomainString];
  50. NSNumber *eHideQuickActionsBG = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideQuickActionsBG" inDomain:nsDomainString];
  51. NSNumber *eGridSwitcher = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"gridSwitcher" inDomain:nsDomainString];
  52. NSNumber *eHideLSBatt = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLSBatt" inDomain:nsDomainString];
  53. NSNumber *eStatusBarShowTimeLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"statusBarShowTimeLS" inDomain:nsDomainString];
  54. NSNumber *eHideLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLabels" inDomain:nsDomainString];
  55. NSNumber *eHideCarPlayLabels = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCarPlayLabels" inDomain:nsDomainString];
  56. NSNumber *eHideFolderBadges = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBadges" inDomain:nsDomainString];
  57. NSNumber *eHideFolderTitle = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderTitle" inDomain:nsDomainString];
  58. NSNumber *eHideFolderBG = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideFolderBG" inDomain:nsDomainString];
  59. NSNumber *eHideCCGrabber = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideCCGrabber" inDomain:nsDomainString];
  60. enabled = (eEnabled) ? [eEnabled boolValue]:NO;
  61. hideQuickActionsBG = (eHideQuickActionsBG) ? [eHideQuickActionsBG boolValue]:NO;
  62. gridSwitcher = (eGridSwitcher) ? [eGridSwitcher boolValue]:NO;
  63. hideLSBatt = (eHideLSBatt) ? [eHideLSBatt boolValue]:NO;
  64. statusBarShowTimeLS = (eStatusBarShowTimeLS) ? [eStatusBarShowTimeLS boolValue]:NO;
  65. hideLabels = (eHideLabels) ? [eHideLabels boolValue]:NO;
  66. hideCarPlayLabels = (eHideCarPlayLabels) ? [eHideCarPlayLabels boolValue]:NO;
  67. hideFolderBadges = (eHideFolderBadges) ? [eHideFolderBadges boolValue]:NO;
  68. hideFolderTitle = (eHideFolderTitle) ? [eHideFolderTitle boolValue]:NO;
  69. hideFolderBG = (eHideFolderBG) ? [eHideFolderBG boolValue]:NO;
  70. hideCCGrabber = (eHideCCGrabber) ? [eHideCCGrabber boolValue]:NO;
  71. }
  72. #import <UIKit/UIKit.h>
  73. @interface SBIconView : UIView
  74. -(void)setLabelHidden:(BOOL)hidden;
  75. @end
  76. @interface SBIcon : NSObject
  77. -(id)badgeNumberOrString;
  78. @end
  79. @interface CSTeachableMomentsContainerView
  80. @property (nonatomic,retain) UIView * controlCenterGrabberView;
  81. @end
  82. @interface SBDashBoardTeachableMomentsContainerView
  83. @property (nonatomic,retain) UIView * controlCenterGrabberView;
  84. @end
  85. @interface SBFolderControllerBackgroundView
  86. @property (nonatomic, assign, readwrite) CGFloat alpha;
  87. @end
  88. @interface SBRootFolderView : UIView
  89. @property (nonatomic, assign, readwrite) CGFloat alpha;
  90. @end
  91. @interface SBFolderIconImageView
  92. @property (nonatomic, copy, readwrite) CALayer * layer;
  93. @end
  94. #ifndef kCFCoreFoundationVersionNumber_iOS_13_0
  95. #define kCFCoreFoundationVersionNumber_iOS_13_0 1665.15
  96. #endif
  97. #define kSLSystemVersioniOS13 kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_13_0
  98. static id (*_logos_orig$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$)(_LOGOS_SELF_TYPE_NORMAL UICoverSheetButton* _LOGOS_SELF_CONST, SEL, double); static id _logos_method$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$(_LOGOS_SELF_TYPE_NORMAL UICoverSheetButton* _LOGOS_SELF_CONST, SEL, double); static id (*_logos_orig$universal$SBIcon$badgeNumberOrString)(_LOGOS_SELF_TYPE_NORMAL SBIcon* _LOGOS_SELF_CONST, SEL); static id _logos_method$universal$SBIcon$badgeNumberOrString(_LOGOS_SELF_TYPE_NORMAL SBIcon* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$universal$SBIconView$setLabelHidden$)(_LOGOS_SELF_TYPE_NORMAL SBIconView* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$universal$SBIconView$setLabelHidden$(_LOGOS_SELF_TYPE_NORMAL SBIconView* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void (*_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void (*_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void (*_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void (*_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, double); static void (*_logos_orig$universal$SBAppSwitcherSettings$setSwitcherStyle$)(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, long long); static void _logos_method$universal$SBAppSwitcherSettings$setSwitcherStyle$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST, SEL, long long); static void (*_logos_orig$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$)(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST, SEL, bool, bool, bool); static void _logos_method$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST, SEL, bool, bool, bool); static BOOL (*_logos_orig$universal$SBFloatyFolderView$_showsTitle)(_LOGOS_SELF_TYPE_NORMAL SBFloatyFolderView* _LOGOS_SELF_CONST, SEL); static BOOL _logos_method$universal$SBFloatyFolderView$_showsTitle(_LOGOS_SELF_TYPE_NORMAL SBFloatyFolderView* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$universal$SBFolderBackgroundView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL SBFolderBackgroundView* _LOGOS_SELF_CONST, SEL); static void _logos_method$universal$SBFolderBackgroundView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL SBFolderBackgroundView* _LOGOS_SELF_CONST, SEL);
  99. static id _logos_method$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$(_LOGOS_SELF_TYPE_NORMAL UICoverSheetButton* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  100. if (enabled && hideQuickActionsBG) {
  101. return 0;
  102. }
  103. else {
  104. return _logos_orig$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$(self, _cmd, arg1);
  105. }
  106. }
  107. static id _logos_method$universal$SBIcon$badgeNumberOrString(_LOGOS_SELF_TYPE_NORMAL SBIcon* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  108. if (enabled && hideFolderBadges) {
  109. return @"";
  110. }
  111. else {
  112. return _logos_orig$universal$SBIcon$badgeNumberOrString(self, _cmd);
  113. }
  114. }
  115. static void _logos_method$universal$SBIconView$setLabelHidden$(_LOGOS_SELF_TYPE_NORMAL SBIconView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL hidden) {
  116. if (enabled && hideLabels) {
  117. hidden = YES;
  118. }
  119. _logos_orig$universal$SBIconView$setLabelHidden$(self, _cmd, hidden);
  120. }
  121. static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  122. if (enabled && gridSwitcher) {
  123. arg1 = 0.4;
  124. }
  125. _logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$(self, _cmd, arg1);
  126. }
  127. static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  128. if (enabled && gridSwitcher) {
  129. arg1 = 25.5;
  130. }
  131. _logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$(self, _cmd, arg1);
  132. }
  133. static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  134. if (enabled && gridSwitcher) {
  135. arg1 = 11.6;
  136. }
  137. _logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$(self, _cmd, arg1);
  138. }
  139. static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  140. if (enabled && gridSwitcher) {
  141. arg1 = 42;
  142. }
  143. _logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$(self, _cmd, arg1);
  144. }
  145. static void _logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
  146. if (enabled && gridSwitcher) {
  147. arg1 = 38;
  148. }
  149. _logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$(self, _cmd, arg1);
  150. }
  151. static void _logos_method$universal$SBAppSwitcherSettings$setSwitcherStyle$(_LOGOS_SELF_TYPE_NORMAL SBAppSwitcherSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, long long arg1) {
  152. if (enabled && gridSwitcher) {
  153. arg1 = 2;
  154. }
  155. _logos_orig$universal$SBAppSwitcherSettings$setSwitcherStyle$(self, _cmd, arg1);
  156. }
  157. static void _logos_method$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, bool arg1, bool arg2, bool arg3) {
  158. if (enabled && hideLSBatt) {
  159. arg1 = 0;
  160. }
  161. _logos_orig$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$(self, _cmd, arg1, arg2, arg3);
  162. }
  163. static BOOL _logos_method$universal$SBFloatyFolderView$_showsTitle(_LOGOS_SELF_TYPE_NORMAL SBFloatyFolderView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  164. if (enabled && hideFolderTitle) {
  165. return NO;
  166. }
  167. else {
  168. return _logos_orig$universal$SBFloatyFolderView$_showsTitle(self, _cmd);
  169. }
  170. }
  171. static void _logos_method$universal$SBFolderBackgroundView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL SBFolderBackgroundView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  172. _logos_orig$universal$SBFolderBackgroundView$layoutSubviews(self, _cmd);
  173. if (enabled && hideFolderBG) {
  174. UIImageView * tintView = MSHookIvar<UIImageView *>(self, "_tintView");
  175. tintView.alpha = 0;
  176. }
  177. }
  178. static bool (*_logos_orig$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime)(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST, SEL); static bool _logos_method$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$ios13$CSTeachableMomentsContainerView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL CSTeachableMomentsContainerView* _LOGOS_SELF_CONST, SEL); static void _logos_method$ios13$CSTeachableMomentsContainerView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSTeachableMomentsContainerView* _LOGOS_SELF_CONST, SEL); static CGSize (*_logos_meta_orig$ios13$CARIconView$maxLabelSizeForIconImageSize$)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL, CGSize); static CGSize _logos_meta_method$ios13$CARIconView$maxLabelSizeForIconImageSize$(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL, CGSize);
  179. static bool _logos_method$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime(_LOGOS_SELF_TYPE_NORMAL CSCoverSheetViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  180. if (enabled && statusBarShowTimeLS) {
  181. return YES;
  182. }
  183. else {
  184. return _logos_orig$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime(self, _cmd);
  185. }
  186. }
  187. static void _logos_method$ios13$CSTeachableMomentsContainerView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSTeachableMomentsContainerView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  188. if (enabled && hideCCGrabber) {
  189. [self.controlCenterGrabberView setHidden:YES];
  190. }
  191. else {
  192. [self.controlCenterGrabberView setHidden:NO];
  193. }
  194. return _logos_orig$ios13$CSTeachableMomentsContainerView$layoutSubviews(self, _cmd);
  195. }
  196. static CGSize _logos_meta_method$ios13$CARIconView$maxLabelSizeForIconImageSize$(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, CGSize imageSize) {
  197. if (enabled && hideCarPlayLabels) {
  198. return CGSizeZero;
  199. }
  200. else {
  201. return _logos_meta_orig$ios13$CARIconView$maxLabelSizeForIconImageSize$(self, _cmd, imageSize);
  202. }
  203. }
  204. static bool (*_logos_orig$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime)(_LOGOS_SELF_TYPE_NORMAL SBLockScreenViewControllerBase* _LOGOS_SELF_CONST, SEL); static bool _logos_method$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime(_LOGOS_SELF_TYPE_NORMAL SBLockScreenViewControllerBase* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL SBDashBoardTeachableMomentsContainerView* _LOGOS_SELF_CONST, SEL); static void _logos_method$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL SBDashBoardTeachableMomentsContainerView* _LOGOS_SELF_CONST, SEL); static CGSize (*_logos_meta_orig$ios12$SBStarkIconView$maxLabelSize)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static CGSize _logos_meta_method$ios12$SBStarkIconView$maxLabelSize(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL);
  205. static bool _logos_method$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime(_LOGOS_SELF_TYPE_NORMAL SBLockScreenViewControllerBase* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  206. if (enabled && statusBarShowTimeLS) {
  207. return YES;
  208. }
  209. else {
  210. return _logos_orig$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime(self, _cmd);
  211. }
  212. }
  213. static void _logos_method$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL SBDashBoardTeachableMomentsContainerView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  214. if (enabled && hideCCGrabber) {
  215. [self.controlCenterGrabberView setHidden:YES];
  216. }
  217. else {
  218. [self.controlCenterGrabberView setHidden:NO];
  219. }
  220. return _logos_orig$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews(self, _cmd);
  221. }
  222. static CGSize _logos_meta_method$ios12$SBStarkIconView$maxLabelSize(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
  223. if (enabled && hideCarPlayLabels) {
  224. return CGSizeZero;
  225. }
  226. else {
  227. return _logos_meta_orig$ios12$SBStarkIconView$maxLabelSize(self, _cmd);
  228. }
  229. }
  230. static __attribute__((constructor)) void _logosLocalCtor_69dc0f6b(int __unused argc, char __unused **argv, char __unused **envp) {
  231. {Class _logos_class$universal$UICoverSheetButton = objc_getClass("UICoverSheetButton"); MSHookMessageEx(_logos_class$universal$UICoverSheetButton, @selector(_backgroundEffectsWithBrightness:), (IMP)&_logos_method$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$, (IMP*)&_logos_orig$universal$UICoverSheetButton$_backgroundEffectsWithBrightness$);Class _logos_class$universal$SBIcon = objc_getClass("SBIcon"); MSHookMessageEx(_logos_class$universal$SBIcon, @selector(badgeNumberOrString), (IMP)&_logos_method$universal$SBIcon$badgeNumberOrString, (IMP*)&_logos_orig$universal$SBIcon$badgeNumberOrString);Class _logos_class$universal$SBIconView = objc_getClass("SBIconView"); MSHookMessageEx(_logos_class$universal$SBIconView, @selector(setLabelHidden:), (IMP)&_logos_method$universal$SBIconView$setLabelHidden$, (IMP*)&_logos_orig$universal$SBIconView$setLabelHidden$);Class _logos_class$universal$SBAppSwitcherSettings = objc_getClass("SBAppSwitcherSettings"); MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setGridSwitcherPageScale:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherPageScale$);MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setGridSwitcherHorizontalInterpageSpacingPortrait:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingPortrait$);MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setGridSwitcherHorizontalInterpageSpacingLandscape:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherHorizontalInterpageSpacingLandscape$);MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setGridSwitcherVerticalNaturalSpacingPortrait:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingPortrait$);MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setGridSwitcherVerticalNaturalSpacingLandscape:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setGridSwitcherVerticalNaturalSpacingLandscape$);MSHookMessageEx(_logos_class$universal$SBAppSwitcherSettings, @selector(setSwitcherStyle:), (IMP)&_logos_method$universal$SBAppSwitcherSettings$setSwitcherStyle$, (IMP*)&_logos_orig$universal$SBAppSwitcherSettings$setSwitcherStyle$);Class _logos_class$universal$CSCoverSheetViewController = objc_getClass("CSCoverSheetViewController"); MSHookMessageEx(_logos_class$universal$CSCoverSheetViewController, @selector(_transitionChargingViewToVisible:showBattery:animated:), (IMP)&_logos_method$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$, (IMP*)&_logos_orig$universal$CSCoverSheetViewController$_transitionChargingViewToVisible$showBattery$animated$);Class _logos_class$universal$SBFloatyFolderView = objc_getClass("SBFloatyFolderView"); MSHookMessageEx(_logos_class$universal$SBFloatyFolderView, @selector(_showsTitle), (IMP)&_logos_method$universal$SBFloatyFolderView$_showsTitle, (IMP*)&_logos_orig$universal$SBFloatyFolderView$_showsTitle);Class _logos_class$universal$SBFolderBackgroundView = objc_getClass("SBFolderBackgroundView"); MSHookMessageEx(_logos_class$universal$SBFolderBackgroundView, @selector(layoutSubviews), (IMP)&_logos_method$universal$SBFolderBackgroundView$layoutSubviews, (IMP*)&_logos_orig$universal$SBFolderBackgroundView$layoutSubviews);}
  232. if (kSLSystemVersioniOS13) {
  233. {Class _logos_class$ios13$CSCoverSheetViewController = objc_getClass("CSCoverSheetViewController"); MSHookMessageEx(_logos_class$ios13$CSCoverSheetViewController, @selector(shouldShowLockStatusBarTime), (IMP)&_logos_method$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime, (IMP*)&_logos_orig$ios13$CSCoverSheetViewController$shouldShowLockStatusBarTime);Class _logos_class$ios13$CSTeachableMomentsContainerView = objc_getClass("CSTeachableMomentsContainerView"); MSHookMessageEx(_logos_class$ios13$CSTeachableMomentsContainerView, @selector(layoutSubviews), (IMP)&_logos_method$ios13$CSTeachableMomentsContainerView$layoutSubviews, (IMP*)&_logos_orig$ios13$CSTeachableMomentsContainerView$layoutSubviews);Class _logos_class$ios13$CARIconView = objc_getClass("CARIconView"); Class _logos_metaclass$ios13$CARIconView = object_getClass(_logos_class$ios13$CARIconView); MSHookMessageEx(_logos_metaclass$ios13$CARIconView, @selector(maxLabelSizeForIconImageSize:), (IMP)&_logos_meta_method$ios13$CARIconView$maxLabelSizeForIconImageSize$, (IMP*)&_logos_meta_orig$ios13$CARIconView$maxLabelSizeForIconImageSize$);}
  234. }
  235. else {
  236. {Class _logos_class$ios12$SBLockScreenViewControllerBase = objc_getClass("SBLockScreenViewControllerBase"); MSHookMessageEx(_logos_class$ios12$SBLockScreenViewControllerBase, @selector(shouldShowLockStatusBarTime), (IMP)&_logos_method$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime, (IMP*)&_logos_orig$ios12$SBLockScreenViewControllerBase$shouldShowLockStatusBarTime);Class _logos_class$ios12$SBDashBoardTeachableMomentsContainerView = objc_getClass("SBDashBoardTeachableMomentsContainerView"); MSHookMessageEx(_logos_class$ios12$SBDashBoardTeachableMomentsContainerView, @selector(layoutSubviews), (IMP)&_logos_method$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews, (IMP*)&_logos_orig$ios12$SBDashBoardTeachableMomentsContainerView$layoutSubviews);Class _logos_class$ios12$SBStarkIconView = objc_getClass("SBStarkIconView"); Class _logos_metaclass$ios12$SBStarkIconView = object_getClass(_logos_class$ios12$SBStarkIconView); MSHookMessageEx(_logos_metaclass$ios12$SBStarkIconView, @selector(maxLabelSize), (IMP)&_logos_meta_method$ios12$SBStarkIconView$maxLabelSize, (IMP*)&_logos_meta_orig$ios12$SBStarkIconView$maxLabelSize);}
  237. }
  238. notificationCallback(NULL, NULL, NULL, NULL, NULL);
  239. CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
  240. CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.kage/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
  241. }