+16
-1
@@ -134,6 +134,21 @@ static BOOL oldDarkTheme() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Fix streched artwork in uYou's player view
|
||||||
|
%hook ArtworkImageView
|
||||||
|
- (id)imageView {
|
||||||
|
UIImageView * imageView = %orig;
|
||||||
|
imageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||||
|
// Make artwork a bit bigger
|
||||||
|
UIView *artworkImageView = imageView.superview;
|
||||||
|
if (artworkImageView != nil && !artworkImageView.translatesAutoresizingMaskIntoConstraints) {
|
||||||
|
[artworkImageView.leftAnchor constraintEqualToAnchor:artworkImageView.superview.leftAnchor constant:16].active = YES;
|
||||||
|
[artworkImageView.rightAnchor constraintEqualToAnchor:artworkImageView.superview.rightAnchor constant:-16].active = YES;
|
||||||
|
}
|
||||||
|
return imageView;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
# pragma mark - Tweaks
|
# pragma mark - Tweaks
|
||||||
// IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
// IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
||||||
%hook YTVersionUtils
|
%hook YTVersionUtils
|
||||||
@@ -913,7 +928,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
# pragma mark - ctor
|
# pragma mark - ctor
|
||||||
%ctor {
|
%ctor {
|
||||||
// Load uYou first so its functions are available for hooks.
|
// Load uYou first so its functions are available for hooks.
|
||||||
dlopen([[NSString stringWithFormat:@"%@/Frameworks/uYou.dylib", [[NSBundle mainBundle] bundlePath]] UTF8String], RTLD_LAZY);
|
// dlopen([[NSString stringWithFormat:@"%@/Frameworks/uYou.dylib", [[NSBundle mainBundle] bundlePath]] UTF8String], RTLD_LAZY);
|
||||||
|
|
||||||
%init;
|
%init;
|
||||||
if (@available(iOS 16, *)) {
|
if (@available(iOS 16, *)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user