Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
feat: the redesign's Albums & artists page splits into Albums and Artists
My-Name-Is-Jeffb46ac4c4a113
diff --git a/docs/tweaks.md b/docs/tweaks.mdindex caab5524..f5381493 100644--- a/docs/tweaks.md+++ b/docs/tweaks.md@@ -556,10 +556,10 @@ Redesigned:there and the row carries the Kit's stand-ins, which draw their glyph and fire them. A track's artist linegoes where it only repeats the album's artist (with the guests the title names after "feat." and thelike), its explicit badge drawn after the title instead (AlbumCredits.m decides, checked on the Mac- by harness/album-credits/; a switch on the Albums & artists page). Under the tracks+ by harness/album-credits/; a switch on the Albums page). Under the trackseverything the server sends is dropped -- more by the artist, videos, concerts, merch, you might alsolike, and whatever it adds next -- but the album's own line and its copyright, each section back- once its switch on the Albums & artists page is off (told apart by its English heading; in another+ once its switch on the Albums page is off (told apart by its English heading; in anotherlanguage Everything else covers them all; Album.h lists its files). A podcast's episode page is the same template, so it is given the same field, and what itpaints over it is taken off. Laid out on the Mac against harness/album/@@ -698,8 +698,8 @@ the files are gone. Swiping the row deletes the family. An import from before faspotifyglass.font.file) moves to spotifyglass.font.files and the family name on first use. Then the App icon. Everything on the page applies after a restart. Redesigned UI, the main page'sfirst row, is the one switch between the two looks (see Layers): it glows (Settings/SGGlowSwitch), its ⓘ says whatit changes, and flipping it offers to restart Spotify. The pages show only what the stored look has: a page opened-after flipping the switch already shows what the restart will bring, and the main page swaps Home & Library and-Albums & artists as it is flipped. Tab bar: the tab editor of the stored look, each with+after flipping the switch already shows what the restart will bring, and the main page swaps Home & Library for+Albums and Artists as it is flipped. Tab bar: the tab editor of the stored look, each withits own list of tabs. Lyrics, on the main page of its own: in the redesign a live preview of the lyrics first, with the presets of their lookunder it and their sliders in a sheet (Text size, Line spacing, Blur, Glow, Wave), applying at once; then Karaoke, then the ordered list of lyrics sources,lyrics for every track, naming the source in the redesign, the lock screen, and glass lyrics in the native look; indiff --git a/harness/mod-settings/README.md b/harness/mod-settings/README.mdindex 3f5f9285..9252b470 100644--- a/harness/mod-settings/README.md+++ b/harness/mod-settings/README.md@@ -36,10 +36,10 @@ both. With main's ModSettings.x before the fix it read 0 and 0 for the drawer analert it brings up: "Full-screen artwork", "Needs iOS 26", and an alert naming the iOS version.2026-10-06, iPhone 17 Pro on iOS 27.0: the warning row leads; then Redesigned UI (glowing, with its ⓘ), Appearance-and Tab bar; Player, Lyrics and Albums & artists (Home & Library in the native look); Sing, Spatial voice, Audio+and Tab bar; Player, Lyrics, Albums and Artists (Home & Library in the native look); Sing, Spatial voice, Audioeffects, Vibrations, Live Activity, AirPods gestures and Listening stats; Lock screen and Premium, ads & privacy; Labs andAll flags; Mod with the version. Flipping Redesigned UI on in the native look offers the restart and swaps Home &-Library for Albums & artists in place.+Library for Albums and Artists in place.`App/About/Signing.m` is the real one. A free Apple ID's "Signed until" row joins the top section once the.app holds an `embedded.mobileprovision` whose `ExpirationDate` is under eight days after its `CreationDate`; thediff --git a/harness/mod-settings/stubs.m b/harness/mod-settings/stubs.mindex 66f9c092..ecd60bc2 100644--- a/harness/mod-settings/stubs.m+++ b/harness/mod-settings/stubs.m@@ -14,7 +14,8 @@ static UIViewController *blank(NSString *title) {PAGE(SGAboutPage) PAGE(SGAdsSettingsPage) PAGE(SGAllFlagsPage) PAGE(SGArtistBlockSettingsPage) PAGE(SGDSPSettingsPage)PAGE(SGGesturesSettingsPage) PAGE(SGHeadGesturesSettingsPage) PAGE(SGHomeSettingsPage) PAGE(SGLabsPage)PAGE(SGListeningStatsPage) PAGE(SGLiveActivitySettingsPage) PAGE(SGLockScreenWidgetPage) PAGE(SGNavbarSettingsPage)-PAGE(SGNowPlayingBarSettingsPage) PAGE(SGQueueSettingsPage) PAGE(SGRAlbumSettingsPage) PAGE(SGRNavbarSettingsPage)+PAGE(SGNowPlayingBarSettingsPage) PAGE(SGQueueSettingsPage) PAGE(SGRAlbumSettingsPage) PAGE(SGRArtistSettingsPage)+PAGE(SGRNavbarSettingsPage)PAGE(SGSingSettingsPage) PAGE(SGSpatialVoiceSettingsPage) PAGE(SGVibrationsSettingsPage)UIViewController *SGRPlayerSettingsPage(NSArray *more) { return blank(@"SGRPlayerSettingsPage"); }UIViewController *SGRLyricsSettingsPage(NSString *title, NSString *intro, NSArray<SGModSection *> *sections) { return blank(title); }diff --git a/tweak/Sources/App/ModSettings.x b/tweak/Sources/App/ModSettings.xindex 1f8318e4..d1f38808 100644--- a/tweak/Sources/App/ModSettings.x+++ b/tweak/Sources/App/ModSettings.x@@ -31,6 +31,7 @@#import "App/About/About.h"#import "App/Onboarding/Onboarding.h"#import "Redesigned/Album/Album.h"+#import "Redesigned/Artist/Artist.h"#import "Pages.h"static const CGFloat kRowHeight = 56;@@ -65,14 +66,18 @@ static UIViewController *modSettingsPage(void) {])];// Home & Library holds only the native look's switches; the redesign has its album and artist pages instead.- SGModRow *albums = pageRow(@"Albums & artists", @"square.stack", UIColor.systemCyanColor, ^UIViewController *{ return SGRAlbumSettingsPage(); });+ SGModRow *albums = pageRow(@"Albums", @"square.stack", UIColor.systemCyanColor, ^UIViewController *{ return SGRAlbumSettingsPage(); });albums.visible = redesigned;+ // Not music.mic: Karaoke's tile below carries it.+ SGModRow *artists = pageRow(@"Artists", @"guitars", UIColor.systemCyanColor, ^UIViewController *{ return SGRArtistSettingsPage(); });+ artists.visible = redesigned;SGModRow *home = pageRow(@"Home & Library", @"house", UIColor.systemCyanColor, ^UIViewController *{ return SGHomeSettingsPage(); });home.visible = native;[sections addObject:SGSection(nil, @[pageRow(@"Player", @"play.circle", UIColor.systemPinkColor, ^UIViewController *{ return SGPlayerSettingsPage(); }),pageRow(@"Lyrics", @"quote.bubble", UIColor.systemPurpleColor, ^UIViewController *{ return SGLyricsSettingsPage(); }),albums,+ artists,home,])];diff --git a/tweak/Sources/Redesigned/Album/Album.h b/tweak/Sources/Redesigned/Album/Album.hindex f3419e6c..fee8a6a3 100644--- a/tweak/Sources/Redesigned/Album/Album.h+++ b/tweak/Sources/Redesigned/Album/Album.h@@ -22,10 +22,8 @@// Threading: main thread only.#import <UIKit/UIKit.h>-// Apple Music's animated cover at the top of an album, and its logo in place of an artist's name; both on-// until switched off (AlbumSettings.m).+// Apple Music's animated cover at the top of an album; on until switched off (AlbumSettings.m).#define SGRKeyAlbumMotion @"spotifyglass.redesign.album.motion"-#define SGRKeyArtistLogo @"spotifyglass.redesign.artist.logo"UIViewController *SGRAlbumSettingsPage(void);// AlbumSections.x. The sections under the tracks, one switch each, all dropped until switched off; the lastdiff --git a/tweak/Sources/Redesigned/Album/AlbumSettings.m b/tweak/Sources/Redesigned/Album/AlbumSettings.mindex 6cb4e8ae..5b25e340 100644--- a/tweak/Sources/Redesigned/Album/AlbumSettings.m+++ b/tweak/Sources/Redesigned/Album/AlbumSettings.m@@ -1,18 +1,16 @@-// The redesign's Albums & artists page: Apple Music's animated covers on album pages and its logos on-// artist pages, whether their downloads run in Low Data Mode, and what the redesign takes off both pages.+// The redesign's Albums page: Apple Music's animated covers on album pages, whether their downloads run in Low+// Data Mode, and what the redesign takes off the page.#import "Core/SGCore.h"#import "Settings/SGModPage.h"#import "Shared/AnimatedArtwork/AnimatedArtwork.h"-#import "Redesigned/Artist/Artist.h"#import "Album.h"UIViewController *SGRAlbumSettingsPage(void) {- return [[SGModPage alloc] initWithTitle:@"Albums & artists" intro:SGRestartNote sections:@[+ return [[SGModPage alloc] initWithTitle:@"Albums" intro:SGRestartNote sections:@[SGNotedSection(@"Apple Music", @[SGSwitchRow(@"Animated covers", @"At the top of an album that has one, about 5 MB each", SGRKeyAlbumMotion),- SGSwitchRow(@"Artist logos", @"In place of the name on an artist's page", SGRKeyArtistLogo),SGOptionRow(@"Download in Low Data Mode", nil, SGKeyMotionLowData),- ], @"Only the album's or artist's name is sent to Apple Music."),+ ], @"Only the album's name is sent to Apple Music. A cover stays still in Low Power Mode."),SGSection(@"Hide on an album's page", @[SGSwitchRow(@"Repeated track artists", @"The artist under a track when it is the album's own", SGRKeyAlbumHideTrackArtists),]),@@ -25,9 +23,5 @@ UIViewController *SGRAlbumSettingsPage(void) {SGSwitchRow(@"Everything else", @"Any other section Spotify sends", SGRKeyAlbumHideOther),], @"Sections are told apart by their English names. With Spotify in another language, Everything else "@"covers them all."),- SGSection(@"Hide on an artist's page", @[- SGSwitchRow(@"Videos", @"In the Music list, and in the Video tab", SGRKeyArtistHideVideos),- SGSwitchRow(@"Music, Video and Merch tabs", @"Without them the Music list is the page", SGRKeyArtistHideTabs),- ]),] footer:nil];}diff --git a/tweak/Sources/Redesigned/Artist/Artist.h b/tweak/Sources/Redesigned/Artist/Artist.hindex 332f8dd9..6c0977b9 100644--- a/tweak/Sources/Redesigned/Artist/Artist.h+++ b/tweak/Sources/Redesigned/Artist/Artist.h@@ -12,15 +12,19 @@// SGRHeaderInfo over it -- the name, the listeners, shuffle, a white Play and Follow// ArtistSections.x the sections the Music list carries that are not the artist's music: its videos// ArtistFollow.x whether the artist is followed, from Spotify's collection, for Follow's glyph+// ArtistSettings.m the Artists page of Mod Settings: the switches below//// Every hook installs only while Redesigned UI is on (SGRedesignedUI); the native look's do not then.// Threading: main thread only.#import <UIKit/UIKit.h>-// What the redesign takes off the page, on until switched off (Redesigned/Album/AlbumSettings.m): the videos-// in the Music list (ArtistSections.x) and the Music / Video / Merch strip (ArtistField.x).+// Apple Music's logo in place of the artist's name (ArtistHeader.x); on until switched off.+#define SGRKeyArtistLogo @"spotifyglass.redesign.artist.logo"+// What the redesign takes off the page, on until switched off: the videos in the Music list (ArtistSections.x)+// and the Music / Video / Merch strip (ArtistField.x).#define SGRKeyArtistHideVideos @"spotifyglass.redesign.artist.hide.videos"#define SGRKeyArtistHideTabs @"spotifyglass.redesign.artist.hide.tabs"+UIViewController *SGRArtistSettingsPage(void);// The artist page `view` is on, or nil: the TemplateView with the identifier creator-page.UIView *SGRArtistPageOf(UIView *view);diff --git a/tweak/Sources/Redesigned/Artist/ArtistSettings.m b/tweak/Sources/Redesigned/Artist/ArtistSettings.mnew file mode 100644index 00000000..2a7c8bcb--- /dev/null+++ b/tweak/Sources/Redesigned/Artist/ArtistSettings.m@@ -0,0 +1,17 @@+// The redesign's Artists page: Apple Music's logo in place of the name on an artist's page, and what the redesign+// takes off the page.+#import "Core/SGCore.h"+#import "Settings/SGModPage.h"+#import "Artist.h"++UIViewController *SGRArtistSettingsPage(void) {+ return [[SGModPage alloc] initWithTitle:@"Artists" intro:SGRestartNote sections:@[+ SGNotedSection(@"Apple Music", @[+ SGSwitchRow(@"Artist logos", @"In place of the name on an artist's page", SGRKeyArtistLogo),+ ], @"Only the artist's name is sent to Apple Music."),+ SGSection(@"Hide on an artist's page", @[+ SGSwitchRow(@"Videos", @"In the Music list, and in the Video tab", SGRKeyArtistHideVideos),+ SGSwitchRow(@"Music, Video and Merch tabs", @"Without them the Music list is the page", SGRKeyArtistHideTabs),+ ]),+ ] footer:nil];+}