Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: an artist's About photo shows whole, and the liked heart has no black disc
My-Name-Is-Jefff2f09f2d00bc
diff --git a/tweak/Sources/Redesigned/Artist/ArtistSections.x b/tweak/Sources/Redesigned/Artist/ArtistSections.xindex 80aa0a26..f4fc63ae 100644--- a/tweak/Sources/Redesigned/Artist/ArtistSections.x+++ b/tweak/Sources/Redesigned/Artist/ArtistSections.x@@ -21,6 +21,24 @@#import "Artist.h"static char kSettledKey, kKindsKey, kDroppedKey;++// The "You liked" row's heart sits on a 24pt black disc at the avatar's corner, a ring on any field but black+// (device 2026-10-08). The disc goes; a soft shadow keeps the heart readable on the photo.+static void clearLikedBadge(UIView *cell) {+ SGForEachView(cell, ^(UIView *row) {+ if (![row.accessibilityIdentifier isEqualToString:@"Components.UI.LikedSongs.Row"]) return;+ SGForEachView(row, ^(UIView *disc) {+ CGSize size = disc.bounds.size;+ if (size.width > 30 || size.width != size.height || !SGIsBaseSurface(disc.layer.backgroundColor)) return;+ disc.backgroundColor = UIColor.clearColor;+ disc.clipsToBounds = NO;+ disc.layer.shadowColor = UIColor.blackColor.CGColor;+ disc.layer.shadowOpacity = 0.5;+ disc.layer.shadowRadius = 2;+ disc.layer.shadowOffset = CGSizeZero;+ });+ });+}static BOOL hideVideos;typedef NS_ENUM(NSInteger, SGRArtistCell) {@@ -173,6 +191,7 @@ static void logOnce(NSString *what) {// What the cell paints over the field -- the "You liked" row, every carousel's collection and the// fade Popular's "See more" draws over its last track (device, trees/continuous/3.txt 2026-09-18).SGRClearCellPaint(cell);+ clearLikedBadge(cell);}}diff --git a/tweak/Sources/Redesigned/Kit/SGRRestyle.m b/tweak/Sources/Redesigned/Kit/SGRRestyle.mindex 30726704..85fb1ecf 100644--- a/tweak/Sources/Redesigned/Kit/SGRRestyle.m+++ b/tweak/Sources/Redesigned/Kit/SGRRestyle.m@@ -348,11 +348,17 @@ static const CGFloat kPaintedShare = 0.75;// A "see more" fade lies over the section's last row with the footer drawn on top of both, its button over the// row's bottom line (Popular's 6th track, device 2026-10-07: the fade over the whole cell, the footer from 40pt).// With the fade gone, the row fades itself out above the footer instead, so the field shows through, not a paint.+// Only above a section footer (ListSectionFooterElement): the About card lays its photo, a fade and its words out the+// same way, and its photo is not to fade (device 2026-10-08).static char kRowFadeKey;+static BOOL isFooter(UIView *view) {+ return [NSStringFromClass(view.class) containsString:@"ListSectionFooter"];+}+static void fadeRowsAbove(UIView *gradient) {NSArray<UIView *> *siblings = gradient.superview.subviews;NSUInteger at = [siblings indexOfObject:gradient];- if (at == NSNotFound || at + 1 >= siblings.count) return;+ if (at == NSNotFound || at + 1 >= siblings.count || !isFooter(siblings[at + 1])) return;CGFloat footerTop = siblings[at + 1].frame.origin.y;for (NSUInteger i = 0; i < at; i++) {UIView *row = siblings[i];@@ -378,7 +384,7 @@ static BOOL aboveFooter(UIView *row) {NSArray<UIView *> *siblings = row.superview.subviews;NSUInteger at = [siblings indexOfObject:row];for (NSUInteger i = at + 1; at != NSNotFound && i + 1 < siblings.count; i++) {- if ([NSStringFromClass(siblings[i].class) containsString:@"GradientView"]) return YES;+ if ([NSStringFromClass(siblings[i].class) containsString:@"GradientView"] && isFooter(siblings[i + 1])) return YES;}return NO;}