mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Fix Fake Premium Logo
Google literally changed one of the classes right as soon as I fixed it weeks ago. Pretty odd.
This commit is contained in:
parent
b68e6bfdaa
commit
1a0337dc1d
1 changed files with 3 additions and 11 deletions
|
|
@ -443,21 +443,13 @@ static NSMutableArray <YTIItemSectionRenderer *> *filteredArray(NSArray <YTIItem
|
|||
%group gCenterYouTubeLogo
|
||||
%hook YTNavigationBarTitleView
|
||||
- (void)setShouldCenterNavBarTitleView:(BOOL)center {
|
||||
center = YES;
|
||||
%orig(center);
|
||||
if (center) {
|
||||
[self alignCustomViewToCenterOfWindow];
|
||||
}
|
||||
[self alignCustomViewToCenterOfWindow];
|
||||
}
|
||||
- (BOOL)shouldCenterNavBarTitleView {
|
||||
return YES;
|
||||
}
|
||||
%new;
|
||||
- (void)alignCustomViewToCenterOfWindow {
|
||||
CGRect frame = self.customView.frame;
|
||||
frame.origin.x = (self.window.frame.size.width - frame.size.width) / 2;
|
||||
self.customView.frame = frame;
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
// YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/
|
||||
|
|
@ -605,7 +597,7 @@ static NSMutableArray <YTIItemSectionRenderer *> *filteredArray(NSArray <YTIItem
|
|||
// Fake premium - @bhackel
|
||||
%group gFakePremium
|
||||
// YouTube Premium Logo - @arichornlover & bhackel
|
||||
%hook YTHeaderLogoController
|
||||
%hook YTHeaderLogoControllerImpl // originally was "YTHeaderLogoController"
|
||||
- (void)setTopbarLogoRenderer:(YTITopbarLogoRenderer *)renderer {
|
||||
// Modify the type of the icon before setting the renderer
|
||||
YTIIcon *icon = renderer.iconImage;
|
||||
|
|
|
|||
Loading…
Reference in a new issue