Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: declutter only elements under the player
Vojtěch Škopek5d4478b97227
diff --git a/tweak/Sources/Features/Declutter/Declutter.h b/tweak/Sources/Features/Declutter/Declutter.hindex 2f511440..f8658409 100644--- a/tweak/Sources/Features/Declutter/Declutter.h+++ b/tweak/Sources/Features/Declutter/Declutter.h@@ -24,7 +24,8 @@#define SGHideHomePreviews @"spotifyglass.hide.homePreviews"#define SGHideHomeDJ @"spotifyglass.hide.homeDJ"-// The welcome tour's one switch for the player: on sets every hide key of the now playing screen-// but the two lyrics ones, off clears them. Only the tour reads it; the hooks read the keys above.+// The welcome tour's one switch for the player: on hides every card under the player but the+// lyrics, off shows them again. The player's buttons are not its business. Only the tour reads+// it; the hooks read the keys above.#define SGKeyPlayerLyricsOnly @"spotifyglass.hide.playerLyricsOnly"void SGSetPlayerLyricsOnly(BOOL on);diff --git a/tweak/Sources/Features/Declutter/Declutter.x b/tweak/Sources/Features/Declutter/Declutter.xindex 214fbf49..9b77a378 100644--- a/tweak/Sources/Features/Declutter/Declutter.x+++ b/tweak/Sources/Features/Declutter/Declutter.x@@ -144,8 +144,7 @@ static void finish(UIViewController *unit, BOOL changed) {%endvoid SGSetPlayerLyricsOnly(BOOL on) {- for (NSString *key in @[SGHideShuffle, SGHideRepeat, SGHideConnect, SGHideShare, SGHideQueue, SGHideAddTo,- SGHideAboutArtist, SGHideRelatedVideos, SGHideSongDNA, SGHideLiveEvents,+ for (NSString *key in @[SGHideAboutArtist, SGHideRelatedVideos, SGHideSongDNA, SGHideLiveEvents,SGHideExploreArtist, SGHideCredits, SGHideMerch, SGHideRecommendations]) {SGSetEnabled(key, on);}diff --git a/tweak/Sources/Features/Onboarding/Tour.m b/tweak/Sources/Features/Onboarding/Tour.mindex 64b2693e..1ecd9fd8 100644--- a/tweak/Sources/Features/Onboarding/Tour.m+++ b/tweak/Sources/Features/Onboarding/Tour.m@@ -360,7 +360,7 @@ static SGTourRow *actionRow(NSString *symbol, NSString *title, NSString *subtitlpremium,switchRow(@"antenna.radiowaves.left.and.right.slash", @"Block telemetry", @"Analytics requests answered empty instead of let out", SGKeyBlockTelemetry, YES),]]];- SGTourRow *lyricsOnly = switchRow(@"rectangle.compress.vertical", @"Only the lyrics", @"Hides everything on the now playing screen except lyrics: the buttons around the controls and every card under the player", SGKeyPlayerLyricsOnly, NO);+ SGTourRow *lyricsOnly = switchRow(@"rectangle.compress.vertical", @"Only the lyrics", @"Hides every card under the player except lyrics: about the artist, videos, song DNA, credits, merch and the rest", SGKeyPlayerLyricsOnly, NO);lyricsOnly.changed = ^(BOOL on) { SGSetPlayerLyricsOnly(on); };[pages addObject:[self pageWithSymbol:@"rectangle.compress.vertical" heading:@"Declutter." body:@"The player, down to the music. Every piece has a switch of its own under Now Playing in Mod Settings." rows:@[lyricsOnly]]];[pages addObject:[self navbarPage]];