mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Re-added “Fix streched artwork in uYou”
uYou 3.0.1 was supposed to have this but it wasn’t included in there. So I have re-added this patch back to uYouPlus.
This commit is contained in:
parent
5e1064b8a6
commit
247ecde7ce
1 changed files with 15 additions and 0 deletions
15
uYouPlus.xm
15
uYouPlus.xm
|
|
@ -143,6 +143,21 @@ static void repositionCreateTab(YTIGuideResponse *response) {
|
|||
%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
|
||||
// IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
||||
%hook YTVersionUtils
|
||||
|
|
|
|||
Loading…
Reference in a new issue