mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-19 03:42:01 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
5197eacd2a
commit
a3581bf3ba
1 changed files with 2 additions and 3 deletions
|
|
@ -159,14 +159,13 @@ static void repositionCreateTab(YTIGuideResponse *response) {
|
||||||
%new
|
%new
|
||||||
- (void)customLogoWithImageName:(NSString *)imageName {
|
- (void)customLogoWithImageName:(NSString *)imageName {
|
||||||
UIImageView *customLogoView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 122, 48)];
|
UIImageView *customLogoView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 122, 48)];
|
||||||
customLogoView.image = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"/Library/Application Support/uYouPlus.bundle/%@", imageName]];
|
customLogoView.image = [UIImage imageWithContentsOfFile:@"/Library/Application Support/uYouPlus.bundle/" stringByAppendingString:imageName];
|
||||||
UIView *logoView = [self valueForKey:@"logoView"];
|
UIView *logoView = [self valueForKey:@"logoView"];
|
||||||
[logoView addSubview:customLogoView];
|
[logoView addSubview:customLogoView];
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Remove Original YouTube Logo - this prevents the custom Logo from Overlapping with the Original
|
%hook YTNavigationBarTitleView // Hide Original YouTube Logo - this prevents the custom Logo from Overlapping with the Original
|
||||||
%hook YTNavigationBarTitleView
|
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig;
|
%orig;
|
||||||
if (self.subviews.count > 1 && [self.subviews[1].accessibilityIdentifier isEqualToString:@"id.yoodle.logo"]) {
|
if (self.subviews.count > 1 && [self.subviews[1].accessibilityIdentifier isEqualToString:@"id.yoodle.logo"]) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue