BandarHelal

Untitled

Feb 26th, 2021
2,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %hook YTIIcon
  2. - (id)iconImageWithColor:(UIColor *)arg1 {
  3.     if (self.iconType == 88) {
  4.         UIImage *image = [UIImage systemImageNamed:@"arrow.down"];
  5.         UIImage *newImage = [[UIImage systemImageNamed:@"arrow.down"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
  6.         UIGraphicsBeginImageContextWithOptions(image.size, NO, newImage.scale);
  7.         [arg1 set];
  8.         [newImage drawInRect:CGRectMake(0, 0, image.size.width, newImage.size.height)];
  9.         newImage = UIGraphicsGetImageFromCurrentImageContext();
  10.         UIGraphicsEndImageContext();
  11.         if ([bandarAPI isDarkMode]) {
  12.             return [newImage imageWithTintColor:[UIColor colorFromHexString:@"908F90"]];
  13.         } else {
  14.             return [newImage imageWithTintColor:[UIColor colorFromHexString:@"616261"]];
  15.         }
  16.     } else {
  17.         return %orig;
  18.     }
  19. }
  20. %end
Advertisement
Add Comment
Please, Sign In to add comment