Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: the redesigned pages' Play button is as wide as "Shuffle Play"
My-Name-Is-Jeff3bb8cd5ac8ce
diff --git a/tweak/Sources/Redesigned/Kit/SGRActionRow.m b/tweak/Sources/Redesigned/Kit/SGRActionRow.mindex 10f028b4..5d0c5d56 100644--- a/tweak/Sources/Redesigned/Kit/SGRActionRow.m+++ b/tweak/Sources/Redesigned/Kit/SGRActionRow.m@@ -117,6 +117,8 @@ static NSString *wordIn(UIView *button) {_title.text = word;self.accessibilityLabel = word;[self setNeedsLayout];+ // The header sizes the capsule to its word ("Play", "Shuffle Play" with shuffle on).+ [self.superview setNeedsLayout];}if (![_glyph.tintColor isEqual:content]) _glyph.tintColor = content;diff --git a/tweak/Sources/Redesigned/Kit/SGRHeaderInfo.m b/tweak/Sources/Redesigned/Kit/SGRHeaderInfo.mindex 4d05e610..758f9db2 100644--- a/tweak/Sources/Redesigned/Kit/SGRHeaderInfo.m+++ b/tweak/Sources/Redesigned/Kit/SGRHeaderInfo.m@@ -313,7 +313,8 @@ UIImageView *SGRCreatorPicture(UIView *root) {// Play on the middle of the page, the other two hung off its sides, so it holds its place whether both// are there or not.CGFloat side = SGRActionHeight;- CGFloat playWidth = MAX(kPlayWidth, [_play sgr_width]);+ // As wide as its word, short of pushing the other two off the page.+ CGFloat playWidth = MIN(MAX(kPlayWidth, [_play sgr_width]), width - 2 * (kSide + side + kRowSpacing));CGRect play = CGRectMake(round((width - playWidth) / 2), y, playWidth, side);_play.frame = play;_shuffle.frame = CGRectMake(CGRectGetMinX(play) - kRowSpacing - side, y, side, side);