OLED keyboard (by @ichitaso), code cleanup
This commit is contained in:
@@ -26,11 +26,20 @@
|
|||||||
@interface YTShareMainView : UIView
|
@interface YTShareMainView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface UICollectionViewControllerWrapperView : UIView
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface ASScrollView : UIView
|
@interface ASScrollView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface ASCollectionView : UIView
|
@interface ASCollectionView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface UIKeyboardLayoutStar : UIView
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UIKeyboardDockView : UIView
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UICandidateViewController : UIViewController
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UIPredictionViewController : UIViewController
|
||||||
|
@end
|
||||||
+201
-276
@@ -46,13 +46,11 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
%hook YTMainAppControlsOverlayView
|
%hook YTMainAppControlsOverlayView
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig;
|
%orig;
|
||||||
if (hideAutoplaySwitch()) {
|
if (hideAutoplaySwitch())
|
||||||
MSHookIvar<UIView *>(self, "_autonavSwitch").hidden = YES;
|
MSHookIvar<UIView *>(self, "_autonavSwitch").hidden = YES;
|
||||||
}
|
if (hideCC())
|
||||||
if (hideCC()) {
|
|
||||||
MSHookIvar<UIView *>(self, "_closedCaptionsOrSubtitlesButton").hidden = YES;
|
MSHookIvar<UIView *>(self, "_closedCaptionsOrSubtitlesButton").hidden = YES;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Hide HUD Messages
|
// Hide HUD Messages
|
||||||
@@ -79,7 +77,7 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
// YTNoHoverCards: https://github.com/level3tjg/YTNoHoverCards
|
// YTNoHoverCards: https://github.com/level3tjg/YTNoHoverCards
|
||||||
%hook YTCreatorEndscreenView
|
%hook YTCreatorEndscreenView
|
||||||
- (void)setHidden:(BOOL)hidden {
|
- (void)setHidden:(BOOL)hidden {
|
||||||
if (!noHoverCard())
|
if (noHoverCard())
|
||||||
hidden = YES;
|
hidden = YES;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
@@ -145,6 +143,7 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
- (BOOL)shouldUseAppThemeSetting { return YES; }
|
- (BOOL)shouldUseAppThemeSetting { return YES; }
|
||||||
- (BOOL)respectDeviceCaptionSetting { return NO; }
|
- (BOOL)respectDeviceCaptionSetting { return NO; }
|
||||||
|
- (BOOL)isEnhancedSearchBarEnabled { return YES; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// OLED
|
// OLED
|
||||||
@@ -205,11 +204,23 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
arg1 = oledColor;
|
arg1 = oledColor;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
//- (void)didMoveToWindow {
|
%end
|
||||||
// %orig;
|
|
||||||
// if ([self.nextResponder isKindOfClass:%c(YTALDialog)]) // Connected apps
|
%hook YTLightweightQTMButton
|
||||||
// self.backgroundColor = oledColor;
|
- (void)setBackgroundColor:(id)arg1 {
|
||||||
//}
|
if ([self.nextResponder isKindOfClass:%c(YTShareMainView)])
|
||||||
|
arg1 = oledColor;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
- (void)setCustomTitleColor:(id)arg1 { %orig([UIColor whiteColor]); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook NIAttributedLabel
|
||||||
|
- (void)setBackgroundColor:(id)arg1 {
|
||||||
|
if ([self.nextResponder isKindOfClass:%c(UIScrollView)])
|
||||||
|
arg1 = oledColor;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook UIControl // this sucks I know :/
|
%hook UIControl // this sucks I know :/
|
||||||
@@ -233,116 +244,6 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTDialogContainerScrollView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTTopAlignedView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
-(void)didMoveToWindow { // Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L70
|
|
||||||
%orig;
|
|
||||||
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook MDXQueueView // Cast queue
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelProfileEditorView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelSubMenuView //
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelListSubMenuView // sub -
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCommentView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCreateCommentAccessoryView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCreateCommentTextView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
-(void)setTextColor:(id)arg1 {
|
|
||||||
arg1 = [UIColor whiteColor];
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YCHLiveChatActionPanelView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTEmojiTextView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTShareTitleView // Share sheet
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTNavigationBar
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
-(void)setBarTintColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTPrivacyTosFooterView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTWatchMiniBarView
|
%hook YTWatchMiniBarView
|
||||||
- (void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(id)arg1 {
|
||||||
arg1 = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9];
|
arg1 = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9];
|
||||||
@@ -364,147 +265,10 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTEngagementPanelHeaderView
|
%hook YTTopAlignedView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
arg1 = oledColor;
|
- (void)didMoveToWindow { // Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L70
|
||||||
%orig;
|
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelMobileHeaderView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTInlineSignInView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTHeaderView //Stt bar
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTTabTitlesView // Tab bar - mychannel
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSettingsCell // Settings
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook GOODialogView // 3 dots menu
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCollectionView //sharesheet
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook ASWAppSwitchingSheetHeaderView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook ASWAppSwitchingSheetFooterView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCollectionSeparatorView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
- (void)didMoveToWindow {}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTLightweightQTMButton
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if([self.nextResponder isKindOfClass:%c(YTShareMainView)]) {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-(void)setCustomTitleColor:(id)arg1 {
|
|
||||||
arg1 = [UIColor whiteColor];
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTShareBusyView // sharesheet load
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTPageView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTWatchView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSearchBarView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSearchSuggestionCollectionViewCell
|
|
||||||
-(void)updateColors {}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook UISearchBarBackground
|
|
||||||
-(void)setBarTintColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTMealBarPromoView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 { // Offline
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook NIAttributedLabel
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(UIScrollView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
@@ -523,6 +287,180 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// OLED keyboard by @ichitaso <3 - http://gist.github.com/ichitaso/935100fd53a26f18a9060f7195a1be0e
|
||||||
|
%hook UIPredictionViewController
|
||||||
|
- (void)loadView {
|
||||||
|
%orig;
|
||||||
|
[self.view setBackgroundColor:oledColor];
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UICandidateViewController
|
||||||
|
- (void)loadView {
|
||||||
|
%orig;
|
||||||
|
[self.view setBackgroundColor:oledColor];
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UIKeyboardDockView
|
||||||
|
- (void)didMoveToWindow {
|
||||||
|
self.backgroundColor = oledColor;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UIKeyboardLayoutStar
|
||||||
|
- (void)didMoveToWindow {
|
||||||
|
self.backgroundColor = oledColor;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UIKBRenderConfig // Prediction text color
|
||||||
|
- (void)setLightKeyboard:(BOOL)arg1 { %orig(NO); }
|
||||||
|
%end
|
||||||
|
//
|
||||||
|
|
||||||
|
%hook YTDialogContainerScrollView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook MDXQueueView // Cast queue
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTChannelProfileEditorView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTChannelSubMenuView //
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTChannelListSubMenuView // sub -
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTCommentView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTCreateCommentAccessoryView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTCreateCommentTextView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
- (void)setTextColor:(id)arg1 { %orig([UIColor whiteColor]); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YCHLiveChatActionPanelView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTEmojiTextView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTShareTitleView // Share sheet
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTNavigationBar
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
- (void)setBarTintColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTPrivacyTosFooterView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTEngagementPanelHeaderView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTChannelMobileHeaderView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTInlineSignInView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTHeaderView //Stt bar
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTTabTitlesView // Tab bar - mychannel
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTSettingsCell // Settings
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTHorizontalCardListView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTShortsGalleryHeaderView // upload videos heaer (gallery)
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook GOODialogView // 3 dots menu
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTCollectionView //sharesheet
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook ASWAppSwitchingSheetHeaderView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook ASWAppSwitchingSheetFooterView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTCollectionSeparatorView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
- (void)didMoveToWindow {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTShareBusyView // sharesheet load
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTPageView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTWatchView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTSearchBarView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTSearchBoxView
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTSearchSuggestionCollectionViewCell
|
||||||
|
- (void)updateColors {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UISearchBarBackground
|
||||||
|
- (void)setBarTintColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTMealBarPromoView // Offline
|
||||||
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
|
%end
|
||||||
|
|
||||||
|
|
||||||
////
|
////
|
||||||
/*
|
/*
|
||||||
%hook UICollectionView
|
%hook UICollectionView
|
||||||
@@ -533,13 +471,6 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTShortsGalleryHeaderView // upload videos heaer (gallery)
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook _ASDisplayView // edit your videos
|
%hook _ASDisplayView // edit your videos
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
if ([self.nextResponder isKindOfClass:%c(ELMView)])
|
if ([self.nextResponder isKindOfClass:%c(ELMView)])
|
||||||
@@ -548,17 +479,11 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTChannelProfileDescriptionEditorView // edit profile Description
|
%hook YTChannelProfileDescriptionEditorView // edit profile Description
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTChannelProfileNameEditorView // edit profile Name
|
%hook YTChannelProfileNameEditorView // edit profile Name
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(id)arg1 { %orig(oledColor); }
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
hook GOOTextField
|
hook GOOTextField
|
||||||
|
|||||||
Reference in New Issue
Block a user