diff --git a/Header.h b/Header.h index fd07ce7..f099c12 100644 --- a/Header.h +++ b/Header.h @@ -182,3 +182,13 @@ @interface UIPredictionViewController : UIViewController @end + +@interface FRPreferences : UITableViewController +@end + +@interface FRPSelectListTable : UITableViewController +@end + +@interface settingsReorderTable : UIViewController +@property(nonatomic, strong) UITableView *tableView; +@end \ No newline at end of file diff --git a/uYouPlus.xm b/uYouPlus.xm index 999837e..75bfe19 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -621,6 +621,9 @@ static void replaceTab(YTIGuideResponse *response) { UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:1.0]; %group gOLED %hook YTCommonColorPalette +- (UIColor *)baseBackground { + return self.pageStyle == 1 ? [UIColor blackColor] : %orig; +} - (UIColor *)brandBackgroundSolid { return self.pageStyle == 1 ? [UIColor blackColor] : %orig; } @@ -641,6 +644,35 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: } %end +// uYou settings +%hook UITableViewCell +- (void)_layoutSystemBackgroundView:(BOOL)animated { + %orig; + ((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:@"_colorView"]).backgroundColor = [UIColor blackColor]; +} +%end + +%hook settingsReorderTable +- (void)viewDidLayoutSubviews { + %orig; + self.tableView.backgroundColor = [UIColor blackColor]; +} +%end + +%hook FRPSelectListTable +- (void)viewDidLayoutSubviews { + %orig; + self.tableView.backgroundColor = [UIColor blackColor]; +} +%end + +%hook FRPreferences +- (void)viewDidLayoutSubviews { + %orig; + self.tableView.backgroundColor = [UIColor blackColor]; +} +%end + %hook YTInnerTubeCollectionViewController - (UIColor *)backgroundColor:(NSInteger)pageStyle { return pageStyle == 1 ? [UIColor blackColor] : %orig;