mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
Added iSponsorBlock Button (LowContrastMode)
This commit is contained in:
parent
da5f6223de
commit
4c92078d36
1 changed files with 13 additions and 0 deletions
|
|
@ -300,6 +300,19 @@ UIColor *lcmHexColor;
|
|||
%orig([UIColor whiteColor]);
|
||||
}
|
||||
%end
|
||||
%hook YTRightNavigationButtons // iSponsorBlock
|
||||
- (NSMutableArray *)buttons {
|
||||
NSMutableArray *buttons = %orig
|
||||
UIImage *image = [UIImage imageWithContentsOfFile:[tweakBundle pathForResource:@"sponsorblocksettings-20@2x" ofType:@"png"]];
|
||||
image = [image imageWithTintColor:[UIColor whiteColor] renderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
if (buttons.count > 0) {
|
||||
UIButton *sponsorBlockButton = buttons[0];
|
||||
[sponsorBlockButton setImage:image forState:UIControlStateNormal];
|
||||
[sponsorBlockButton setTintColor:[UIColor whiteColor]];
|
||||
}
|
||||
return buttons;
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue