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 playlist's colour wash and play disc back over the picture after pressing Play
Vojtěch Škopek8666f7b4300c
diff --git a/harness/playlist/main.m b/harness/playlist/main.mindex 7c181ac3..ac20fe29 100644--- a/harness/playlist/main.m+++ b/harness/playlist/main.m@@ -312,6 +312,17 @@ static UIView *actionButton(UIView *row, CGRect frame, NSString *identifier, NSS[actions setNeedsLayout];NSLog(@"[harness] Spotify's own frames put back");});++ // Pressing Play: Spotify reconfigures the header and shows the wash and the play disc again with+ // -setHidden:NO (trees/continuous/1.txt, 2026-09-18). They must stay drawn by nothing.+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(17 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{+ gradient.hidden = NO;+ playButton.hidden = NO;+ cover.hidden = NO;+ NSLog(@"[harness] Pressing Play: wash hidden=%d masked=%d, disc hidden=%d masked=%d, cover hidden=%d masked=%d",+ gradient.hidden, gradient.layer.mask != nil, playButton.hidden, playButton.layer.mask != nil,+ cover.hidden, cover.layer.mask != nil);+ });return YES;}diff --git a/tweak/Sources/Redesigned/Playlist/PlaylistHeader.x b/tweak/Sources/Redesigned/Playlist/PlaylistHeader.xindex 66c1cd07..2f0c78d9 100644--- a/tweak/Sources/Redesigned/Playlist/PlaylistHeader.x+++ b/tweak/Sources/Redesigned/Playlist/PlaylistHeader.x@@ -56,14 +56,21 @@ UIViewController *SGRPlaylistHeaderOf(UIView *view) {return nil;}-// Invisible for good. Spotify fades its cover square and its colour wash back in from the scroll itself,-// with nothing laid out (trees/continuous/1.txt, 2026-09-17), so a redesign that answers with alpha is in a-// fight it loses a frame of on every scroll -- which is what the flicker was. `hidden` on the layer cannot-// be undone by a write to alpha, costs nothing per frame, and, unlike -[UIView setHidden:], tells neither-// KVO nor the stack views of it, which is what makes it safe on Spotify's Encore layouts.+// Invisible for good, whatever Spotify does to it. It fades its cover square and its colour wash back in+// from the scroll itself (trees/continuous/1.txt, 2026-09-17), which a hidden layer shrugs off; but pressing+// Play reconfigures the header, and that shows the wash, the find bar and the play disc again with+// -setHidden:NO, which writes the layer's own hidden and so undid this: the wash came back over the+// picture as a dark band and the green disc beside the capsule (trees/continuous/1.txt, 2026-09-18).+//+// So two things, each for what the other cannot do. `hidden` on the layer costs nothing while it holds --+// the layer is not drawn at all -- and, unlike -[UIView setHidden:], tells neither KVO nor the stack views,+// which is what makes it safe on Spotify's Encore layouts. An empty mask is what holds when Spotify shows+// the view anyway: nothing Spotify does to these views touches a mask, and a layer masked by nothing draws+// nothing. The album page found the same (Album/AlbumHeader.x) and masks its gradients.static void conceal(UIView *view) {if (!view) return;if (!view.layer.hidden) view.layer.hidden = YES;+ if (!view.layer.mask) view.layer.mask = [CALayer layer];if (view.userInteractionEnabled) view.userInteractionEnabled = NO;view.accessibilityElementsHidden = YES;}