mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
darker?
This commit is contained in:
parent
ff5167af99
commit
a38e37f6e9
2 changed files with 62 additions and 4 deletions
10
Header.h
10
Header.h
|
|
@ -14,8 +14,8 @@
|
|||
- (void)autoFullscreen;
|
||||
@end
|
||||
|
||||
//@interface ASCollectionView : UIView
|
||||
//@end
|
||||
@interface YTTopAlignedView : UIView
|
||||
@end
|
||||
|
||||
@interface YTLightweightQTMButton : UIView
|
||||
@end
|
||||
|
|
@ -25,3 +25,9 @@
|
|||
|
||||
@interface NIAttributedLabel : UIView
|
||||
@end
|
||||
|
||||
@interface YTShareMainView : UIView
|
||||
@end
|
||||
|
||||
@interface UICollectionViewControllerWrapperView : UIView
|
||||
@end
|
||||
56
uYouPlus.xm
56
uYouPlus.xm
|
|
@ -184,6 +184,8 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatTextCell)])
|
||||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatView)])
|
||||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatViewerEngagementCell)])
|
||||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YTSlideForActionsView)])
|
||||
|
|
@ -201,7 +203,9 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
if ([self.nextResponder isKindOfClass:%c(ASWAppSwitcherCollectionViewCell)])
|
||||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YTEditSheetControllerHeader)])
|
||||
arg1 = oledColor;
|
||||
arg1 = oledColor;
|
||||
if ([self.nextResponder isKindOfClass:%c(YTDialogContainerScrollView)])
|
||||
arg1 = oledColor;
|
||||
%orig;
|
||||
}
|
||||
//- (void)layoutSubviews {
|
||||
|
|
@ -211,6 +215,22 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
//}
|
||||
%end
|
||||
|
||||
%hook UIControl
|
||||
-(void)setBackgroundColor:(id)arg1 {
|
||||
if ([self.nextResponder isKindOfClass:%c(YTShareMainView)])
|
||||
arg1 = oledColor;
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook UICollectionView
|
||||
-(void)setBackgroundColor:(id)arg1 {
|
||||
if ([self.nextResponder isKindOfClass:%c(UICollectionViewControllerWrapperView)])
|
||||
arg1 = oledColor;
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTAsyncCollectionView
|
||||
-(void)setBackgroundColor:(id)arg1 {
|
||||
if([self.nextResponder isKindOfClass:%c(YTRelatedVideosCollectionViewController)]) {
|
||||
|
|
@ -224,7 +244,18 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTDialogContainerScrollView
|
||||
-(void)setBackgroundColor:(id)arg1 {
|
||||
arg1 = oledColor;
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTTopAlignedView // Example from Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L700
|
||||
-(void)setBackgroundColor:(id)arg1 {
|
||||
arg1 = oledColor;
|
||||
%orig;
|
||||
}
|
||||
-(void)layoutSubviews {
|
||||
%orig;
|
||||
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
||||
|
|
@ -438,6 +469,27 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
}
|
||||
%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
|
||||
|
|
@ -482,7 +534,7 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
|
||||
%hook _ASDisplayView // edit your videos
|
||||
-(void)layoutSubviews {
|
||||
if ([self.nextResponder isKindOfClass:%c(ELMView)]) //uYou
|
||||
if ([self.nextResponder isKindOfClass:%c(ELMView)])
|
||||
self.backgroundColor = oledColor;
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue