clean up
This commit is contained in:
+11
-11
@@ -215,7 +215,7 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
//}
|
//}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook UIControl
|
%hook UIControl // this sucks I know :/
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
-(void)setBackgroundColor:(id)arg1 {
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTShareMainView)])
|
if ([self.nextResponder isKindOfClass:%c(YTShareMainView)])
|
||||||
arg1 = oledColor;
|
arg1 = oledColor;
|
||||||
@@ -223,14 +223,6 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook UICollectionView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(UICollectionViewControllerWrapperView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTAsyncCollectionView
|
%hook YTAsyncCollectionView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
-(void)setBackgroundColor:(id)arg1 {
|
||||||
if([self.nextResponder isKindOfClass:%c(YTRelatedVideosCollectionViewController)]) {
|
if([self.nextResponder isKindOfClass:%c(YTRelatedVideosCollectionViewController)]) {
|
||||||
@@ -251,12 +243,12 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTTopAlignedView // Example from Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L700
|
%hook YTTopAlignedView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
-(void)setBackgroundColor:(id)arg1 {
|
||||||
arg1 = oledColor;
|
arg1 = oledColor;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
-(void)layoutSubviews {
|
-(void)layoutSubviews { // Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L70
|
||||||
%orig;
|
%orig;
|
||||||
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
||||||
}
|
}
|
||||||
@@ -525,6 +517,14 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
|
|
||||||
////
|
////
|
||||||
/*
|
/*
|
||||||
|
%hook UICollectionView
|
||||||
|
-(void)setBackgroundColor:(id)arg1 {
|
||||||
|
if ([self.nextResponder isKindOfClass:%c(UICollectionViewControllerWrapperView)])
|
||||||
|
arg1 = oledColor;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%hook YTShortsGalleryHeaderView // upload videos heaer (gallery)
|
%hook YTShortsGalleryHeaderView // upload videos heaer (gallery)
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
-(void)setBackgroundColor:(id)arg1 {
|
||||||
arg1 = oledColor;
|
arg1 = oledColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user