diff --git a/Header.h b/Header.h index b925c77..8e6718a 100644 --- a/Header.h +++ b/Header.h @@ -12,8 +12,8 @@ @interface YTMainAppControlsOverlayView : UIView @end -// @interface YTTransportControlsButtonView : UIView -// @end +@interface YTTransportControlsButtonView : UIView +@end @interface _ASCollectionViewCell : UICollectionViewCell - (id)node; diff --git a/uYouPlus.xm b/uYouPlus.xm index af74b55..3325ff8 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -78,7 +78,6 @@ BOOL hidePaidPromotionCard() { %new - (BOOL)canReorder { return YES; } %end -// // YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/ %hook YTWatchMiniBarViewController @@ -103,8 +102,8 @@ BOOL hidePaidPromotionCard() { if (hidePreviousAndNextButton()) { MSHookIvar(self, "_nextButton").hidden = YES; MSHookIvar(self, "_previousButton").hidden = YES; - // MSHookIvar(self, "_nextButtonView").hidden = YES; - // MSHookIvar(self, "_previousButtonView").hidden = YES; + MSHookIvar(self, "_nextButtonView").hidden = YES; + MSHookIvar(self, "_previousButtonView").hidden = YES; } } %end @@ -209,12 +208,9 @@ BOOL hidePaidPromotionCard() { - (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; } %end -// YTSystemAppearance: https://poomsmart.github.io/repo/depictions/ytsystemappearance.html // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html %hook YTColdConfig -- (BOOL)shouldUseAppThemeSetting { return YES; } - (BOOL)respectDeviceCaptionSetting { return NO; } -- (BOOL)isEnhancedSearchBarEnabled { return YES; } %end // NOYTPremium - https://github.com/PoomSmart/NoYTPremium/ @@ -387,7 +383,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: } - (UIColor *)raisedBackground { if (self.pageStyle == 1) { - return raisedColor; + return [UIColor blackColor]; } return %orig; } @@ -550,11 +546,11 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: - (void)didMoveToWindow { %orig; if (isDarkMode()) { - if ([self.nextResponder isKindOfClass:%c(ASScrollView)]) { self.backgroundColor = raisedColor; } + if ([self.nextResponder isKindOfClass:%c(ASScrollView)]) { self.backgroundColor = [UIColor clearColor]; } if ([self.accessibilityIdentifier isEqualToString:@"eml.cvr"]) { self.backgroundColor = [UIColor blackColor]; } if ([self.accessibilityIdentifier isEqualToString:@"rich_header"]) { self.backgroundColor = [UIColor blackColor]; } if ([self.accessibilityIdentifier isEqualToString:@"id.ui.comment_cell"]) { self.backgroundColor = [UIColor blackColor]; } - if ([self.accessibilityIdentifier isEqualToString:@"id.ui.cancel.button"]) { self.superview.backgroundColor = raisedColor; } + if ([self.accessibilityIdentifier isEqualToString:@"id.ui.cancel.button"]) { self.superview.backgroundColor = [UIColor clearColor]; } if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.filter_chip_bar"]) { self.backgroundColor = [UIColor blackColor]; } if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.comment_composer"]) { self.backgroundColor = [UIColor blackColor]; } if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.video_list_entry"]) { self.backgroundColor = [UIColor blackColor]; }