Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: trim the Mod Settings descriptions
Vojtěch Škopek79572ae06b2a
diff --git a/tweak/Sources/App/About/AboutSettings.m b/tweak/Sources/App/About/AboutSettings.mindex 1f795cb3..6a072ab3 100644--- a/tweak/Sources/App/About/AboutSettings.m+++ b/tweak/Sources/App/About/AboutSettings.m@@ -35,12 +35,11 @@ static SGModRow *withSymbol(SGModRow *row, NSString *symbol) {// Which build this is, whether GitHub has a newer release, and where to reach the mod: without these// rows a build that is already installed has no way of telling its user that anything moved on.UIViewController *SGAboutPage(void) {- SGModRow *reset = withSymbol(SGActionRow(@"Reset all settings", @"Every switch off, Spotify as it came, then a restart", ^{ confirmReset(); }), @"trash");+ SGModRow *reset = withSymbol(SGActionRow(@"Reset all settings", nil, ^{ confirmReset(); }), @"trash");reset.color = SGRed();NSString *spotify = [NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"] ?: @"unknown";// The row reads out where the build stands and opens the changelog of everything newer than it.SGModRow *updates = SGPageRow(@"Updates", ^UIViewController *{ return SGUpdatePage(); });- updates.subtitle = @"What is new on GitHub, and whether this build is behind";updates.value = ^NSString *{ return SGUpdateStatus(); };return [[SGModPage alloc] initWithTitle:@"Mod" intro:nil sections:@[SGSection(nil, @[@@ -49,13 +48,13 @@ UIViewController *SGAboutPage(void) {SGStatRow(@"Spotify", ^NSString *{ return spotify; }),]),SGSection(nil, @[- withSymbol(SGLinkRow(@"Website", @"Features, and how to build it yourself", SGSiteURL), @"safari"),- withSymbol(SGLinkRow(@"GitHub", @"Source, releases and issues", SGRepoURL), @"chevron.left.forwardslash.chevron.right"),- withSymbol(SGActionRow(@"Welcome tour", @"The pages from the first launch, again", ^{ SGShowOnboarding(); }), @"map"),+ withSymbol(SGLinkRow(@"Website", nil, SGSiteURL), @"safari"),+ withSymbol(SGLinkRow(@"GitHub", nil, SGRepoURL), @"chevron.left.forwardslash.chevron.right"),+ withSymbol(SGActionRow(@"Welcome tour", nil, ^{ SGShowOnboarding(); }), @"map"),]),SGSection(nil, @[- withSymbol(SGActionRow(@"Export settings", @"Every switch and choice to a file to keep or share", ^{ SGExportSettings(); }), @"square.and.arrow.up"),- withSymbol(SGActionRow(@"Import settings", @"Replace yours with a file's, then a restart", ^{ SGImportSettings(); }), @"square.and.arrow.down"),+ withSymbol(SGActionRow(@"Export settings", nil, ^{ SGExportSettings(); }), @"square.and.arrow.up"),+ withSymbol(SGActionRow(@"Import settings", nil, ^{ SGImportSettings(); }), @"square.and.arrow.down"),]),SGSection(nil, @[reset]),] footer:nil];diff --git a/tweak/Sources/App/About/Signing.m b/tweak/Sources/App/About/Signing.mindex 73cd600a..0e09257c 100644--- a/tweak/Sources/App/About/Signing.m+++ b/tweak/Sources/App/About/Signing.m@@ -81,8 +81,7 @@ static void showFix(void) {SGModRow *SGSigningWarningRow(void) {if (SGSigningOpensFromLockScreen()) return nil;return SGWarningRow(@"The lock screen cannot open Spotify",- @"Signed under a different name than it is installed under. Tap for the one "- @"line that fixes it.",+ @"Tap for the fix",^{ showFix(); });}diff --git a/tweak/Sources/App/Pages.m b/tweak/Sources/App/Pages.mindex d6eeb300..408b2a5c 100644--- a/tweak/Sources/App/Pages.m+++ b/tweak/Sources/App/Pages.m@@ -107,6 +107,5 @@ UIViewController *SGPlayerSettingsPage(void) {// Vibrations hook Spotify's own controls and its audio, so they answer under either look.[sections addObjectsFromArray:SGVibrationsSections()];- NSString *intro = @"Changes apply after you restart Spotify. Gestures, Blocked artists and Vibrations apply straight away.";- return [[SGModPage alloc] initWithTitle:@"Player" intro:intro sections:sections footer:nil];+ return [[SGModPage alloc] initWithTitle:@"Player" intro:SGRestartNote sections:sections footer:nil];}diff --git a/tweak/Sources/Native/Album/AlbumSettings.m b/tweak/Sources/Native/Album/AlbumSettings.mindex 4b981cff..60fed962 100644--- a/tweak/Sources/Native/Album/AlbumSettings.m+++ b/tweak/Sources/Native/Album/AlbumSettings.m@@ -19,7 +19,7 @@ UIViewController *SGAlbumSettingsPage(void) {SGHideRow(@"Concerts", nil, SGHideAlbumConcerts),SGHideRow(@"Merch", nil, SGHideAlbumMerch),SGHideRow(@"You might also like", nil, SGHideAlbumYouMightLike),- ], @"Sections are found by their English titles, so these do nothing while Spotify is in another language."),+ ], @"Works only with Spotify in English."),];return [[SGModPage alloc] initWithTitle:@"Album" intro:nil sections:sections footer:nil];}diff --git a/tweak/Sources/Native/Artist/ArtistSettings.m b/tweak/Sources/Native/Artist/ArtistSettings.mindex 0991cede..4de6dce5 100644--- a/tweak/Sources/Native/Artist/ArtistSettings.m+++ b/tweak/Sources/Native/Artist/ArtistSettings.m@@ -5,7 +5,7 @@UIViewController *SGArtistSettingsPage(void) {NSArray<SGModSection *> *sections = @[SGSection(@"Photo", @[- SGOptionRow(@"Fade into a blur", @"The photo melts into a blurred copy of itself instead of ending in a straight line", SGKeyArtistPhotoFade),+ SGOptionRow(@"Fade into a blur", nil, SGKeyArtistPhotoFade),]),SGSection(@"Hide in the header", @[SGHideRow(@"Explore (video deck)", nil, SGHideArtistExplore),@@ -15,9 +15,9 @@ UIViewController *SGArtistSettingsPage(void) {SGHideRow(@"Verified badge", nil, SGHideArtistVerified),SGHideRow(@"Monthly listeners", nil, SGHideArtistListeners),]),- SGNotedSection(@"Tabs", @[+ SGSection(@"Tabs", @[SGHideRow(@"Hide the tab bar", nil, SGHideArtistTabBar),- ], @"Music, Video, Merch, Events and any other tab. The page stays on Music and no longer swipes to the others."),+ ]),SGNotedSection(@"Hide on the page", @[SGHideRow(@"Songs you liked", nil, SGHideArtistLikedSongs),SGHideRow(@"Popular", nil, SGHideArtistPopular),@@ -30,12 +30,13 @@ UIViewController *SGArtistSettingsPage(void) {SGHideRow(@"Fans also like", nil, SGHideArtistFansAlsoLike),SGHideRow(@"Appears on", nil, SGHideArtistAppearsOn),SGHideRow(@"Discovered on", nil, SGHideArtistDiscoveredOn),- ], @"Sections are found by their English titles, so these do nothing while Spotify is in another language."),+ ], @"Works only with Spotify in English."),SGSection(@"Spotify's own", @[SGFlagRow(@"Share button in the header", @"ios-creator-impl.share_in_action_row_enabled_artist"),SGFlagRow(@"More options in the navigation bar", @"ios-creator-impl.context_menu_in_navigation_bar_enabled_artist"),SGFlagRow(@"Top collaborators", @"ios-creator-impl.is_top_collaborators_enabled"),- SGFlagRow(@"Artist facts", @"ios-creator-impl.is_artist_facts_enabled"), ]),+ SGFlagRow(@"Artist facts", @"ios-creator-impl.is_artist_facts_enabled"),+ ]),];return [[SGModPage alloc] initWithTitle:@"Artist" intro:nil sections:sections footer:nil];}diff --git a/tweak/Sources/Native/Home/HomeSettings.m b/tweak/Sources/Native/Home/HomeSettings.mindex a5a8ff08..1680a955 100644--- a/tweak/Sources/Native/Home/HomeSettings.m+++ b/tweak/Sources/Native/Home/HomeSettings.m@@ -12,20 +12,20 @@ static SGModRow *choiceRow(NSString *title, NSString *subtitle, SGHomeChoice choUIViewController *SGHomeGradientPage(void) {return [[SGModPage alloc] initWithTitle:@"Gradient"- intro:@"A wash behind the top of Home, under the avatar and the pills, fading into the page by the second shelf. Turning it on or off applies after you restart Spotify; the colour, the strength and the height take effect straight away."+ intro:@"Turning it on or off applies after you restart Spotify."sections:@[SGSection(@"Gradient", @[- SGOptionRow(@"Show", @"Off leaves Home the way Spotify draws it", SGKeyHomeGradient),+ SGOptionRow(@"Show", nil, SGKeyHomeGradient),choiceRow(@"Colour", nil, SGHomeChoiceTint),- choiceRow(@"Strength", @"How much of that colour reaches the top of the screen", SGHomeChoiceStrength),- choiceRow(@"Height", @"How far down the page it reaches before the page takes over", SGHomeChoiceHeight),+ choiceRow(@"Strength", nil, SGHomeChoiceStrength),+ choiceRow(@"Height", nil, SGHomeChoiceHeight),]),] footer:nil];}static UIViewController *libraryPage(void) {return [[SGModPage alloc] initWithTitle:@"Library" intro:nil sections:@[- SGNotedSection(@"Library", @[+ SGSection(@"Library", @[SGFlagRow(@"Denser rows", @"ios-feature-yourlibaryx.denser_rows_enabled"),SGFlagRow(@"Sort playlists by recently updated", @"ios-feature-yourlibaryx.recently_updated_playlists_sort_enabled"),SGFlagRow(@"Sort artists by recently updated", @"ios-feature-yourlibaryx.recently_updated_artists_sort_enabled"),@@ -33,16 +33,10 @@ static UIViewController *libraryPage(void) {SGFlagRow(@"Recents sort order", @"ios-feature-yourlibaryx.recents_sort_order_enabled"),SGFlagRow(@"Library settings", @"ios-feature-yourlibaryx.library_settings_enabled"),SGFlagRow(@"Library Pro", @"ios-feature-yourlibaryx.your_library_pro_enabled"),- ], @"Spotify's own Library options, some of them only rolled out to some accounts."),+ ]),] footer:nil];}-// Flag rows show the flag's name as their subtitle by default.-static SGModRow *bare(SGModRow *row) {- row.subtitle = nil;- return row;-}-UIViewController *SGHomeSettingsPage(void) {// The row reads its own state out, so the section says which colour is set without being opened.SGModRow *gradient = SGPageRow(@"Gradient", ^UIViewController *{ return SGHomeGradientPage(); });@@ -60,7 +54,7 @@ UIViewController *SGHomeSettingsPage(void) {]),SGSection(@"Home", @[SGWithSymbol(gradient, @"rectangle.tophalf.inset.filled"),- bare(SGFlagRow(@"Pull to refresh", @"ios-home-evopage-impl.pull_to_refresh_enabled")),+ SGFlagRow(@"Pull to refresh", @"ios-home-evopage-impl.pull_to_refresh_enabled"),]),SGSection(@"Hide on Home", @[SGHideRow(@"Filter pills", nil, SGHideHomePills),@@ -68,8 +62,8 @@ UIViewController *SGHomeSettingsPage(void) {SGHideRow(@"Promo cards", nil, SGHideHomePromo),SGHideRow(@"Preview cards", nil, SGHideHomePreviews),SGHideRow(@"DJ card", nil, SGHideHomeDJ),- bare(SGKillRow(@"DJ button", @"ios-home-evopage-impl.idj_show_dj_button")),- bare(SGKillRow(@"DJ beta badge", @"ios-home-evopage-impl.dj_mdc_beta_badge_enabled")),+ SGKillRow(@"DJ button", @"ios-home-evopage-impl.idj_show_dj_button"),+ SGKillRow(@"DJ beta badge", @"ios-home-evopage-impl.dj_mdc_beta_badge_enabled"),]),];return [[SGModPage alloc] initWithTitle:@"Home & Library" intro:nil sections:sections footer:nil];diff --git a/tweak/Sources/Native/Navbar/NavbarSettings.m b/tweak/Sources/Native/Navbar/NavbarSettings.mindex 420053a6..66ff83fd 100644--- a/tweak/Sources/Native/Navbar/NavbarSettings.m+++ b/tweak/Sources/Native/Navbar/NavbarSettings.m@@ -71,10 +71,9 @@ static void appendTab(NSDictionary *tab) {- (void)viewDidLoad {[super viewDidLoad];- _footer = SGNote(@"Anything Spotify can open by link works, so a playlist, an artist or a page of "- "your own goes on the bar the same way. Icons are Spotify's own: home, search, "- "collection, heart, playlist, album, artist, podcasts, audiobook, downloaded, "- "bookmark, browse, star, user, events, queue, plus, radio, gears, spotifyLogo.");+ _footer = SGNote(@"Paste a share link or a spotify: URI. Icons: home, search, collection, heart, "+ "playlist, album, artist, podcasts, audiobook, downloaded, bookmark, browse, star, "+ "user, events, queue, plus, radio, gears, spotifyLogo.");self.tableView.tableFooterView = _footer;}@@ -114,7 +113,7 @@ static void appendTab(NSDictionary *tab) {NSDictionary *tab = tabPresets()[(NSUInteger)path.row];SGFillCell(cell, tab[SGNavbarTitle], tab[SGNavbarURI], nil, nil);} else {- SGFillCell(cell, @"Any link…", @"A name, a URI of your own and an icon", nil, @"link");+ SGFillCell(cell, @"Any link…", nil, nil, @"link");}cell.selectionStyle = UITableViewCellSelectionStyleDefault;return cell;@@ -181,7 +180,7 @@ typedef NS_ENUM(NSInteger, SGNavbarSection) {[super viewDidLoad];self.tableView.allowsSelectionDuringEditing = YES;self.tableView.editing = YES;- _intro = SGNote(@"Drag a tab by the handle to move it, tap it to show or hide it. The bar follows straight away.");+ _intro = SGNote(@"Drag to reorder, tap to show or hide.");self.tableView.tableHeaderView = _intro;_entries = navbarEntries();}@@ -255,11 +254,11 @@ typedef NS_ENUM(NSInteger, SGNavbarSection) {break;}case SGNavbarSectionAdd:- SGFillCell(cell, @"Add a tab…", @"A page of Spotify's, or any link", nil, @"plus");+ SGFillCell(cell, @"Add a tab…", nil, nil, @"plus");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;default:- SGFillCell(cell, @"Use Spotify's order", @"Forgets the order and the tabs you added", nil, @"arrow.uturn.backward");+ SGFillCell(cell, @"Use Spotify's order", nil, nil, @"arrow.uturn.backward");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;}diff --git a/tweak/Sources/Native/NowPlayingBar/NowPlayingBarSettings.m b/tweak/Sources/Native/NowPlayingBar/NowPlayingBarSettings.mindex 9c215b58..f1102237 100644--- a/tweak/Sources/Native/NowPlayingBar/NowPlayingBarSettings.m+++ b/tweak/Sources/Native/NowPlayingBar/NowPlayingBarSettings.m@@ -5,7 +5,7 @@UIViewController *SGNowPlayingBarSettingsPage(void) {return [[SGModPage alloc] initWithTitle:@"Now playing bar" intro:SGRestartNote sections:@[SGSection(nil, @[- SGHideRow(@"Hide the device button", @"The speaker icon in the bar", SGHideBarConnect),+ SGHideRow(@"Hide the device button", nil, SGHideBarConnect),]),SGSection(@"Spotify's flags", @[SGFlagRow(@"Two lines of track info", @"ios-feature-nowplayingbar.two_lines_information_unit"),diff --git a/tweak/Sources/Native/Player/PlayerSettings.m b/tweak/Sources/Native/Player/PlayerSettings.mindex bcf75d98..9f234d7b 100644--- a/tweak/Sources/Native/Player/PlayerSettings.m+++ b/tweak/Sources/Native/Player/PlayerSettings.m@@ -4,22 +4,16 @@#import "Settings/SGModPage.h"#import "NowPlaying.h"-// Flag rows show the flag's name as their subtitle by default.-static SGModRow *bare(SGModRow *row) {- row.subtitle = nil;- return row;-}-NSArray<SGModSection *> *SGNativePlayerScreenSections(void) {return @[SGSection(@"Player screen", @[- SGOptionRow(@"Artwork background", @"The cover blurred and dimmed behind the player instead of the flat album colour", SGKeyPlayerBackdrop),+ SGOptionRow(@"Artwork background", nil, SGKeyPlayerBackdrop),SGOptionRow(@"Glass header buttons", nil, SGKeyPlayer),- bare(SGKillRow(@"Disable Canvas", @"ios-feature-canvas.canvas_enabled")),- bare(SGFlagRow(@"Sheet style player", @"ios-feature-nowplaying.sheet_style_npv")),- bare(SGFlagRow(@"Redesigned header", @"ios-feature-nowplaying.new_redesign_header_with_context_menu_enabled")),- bare(SGFlagRow(@"New progress slider", @"ios-feature-encoreexperiments.new_npv_slider_enabled")),- bare(SGFlagRow(@"Expand the sticky header on tap", @"ios-feature-nowplaying.expand_sticky_header_on_tap")),+ SGKillRow(@"Disable Canvas", @"ios-feature-canvas.canvas_enabled"),+ SGFlagRow(@"Sheet style player", @"ios-feature-nowplaying.sheet_style_npv"),+ SGFlagRow(@"Redesigned header", @"ios-feature-nowplaying.new_redesign_header_with_context_menu_enabled"),+ SGFlagRow(@"New progress slider", @"ios-feature-encoreexperiments.new_npv_slider_enabled"),+ SGFlagRow(@"Expand the sticky header on tap", @"ios-feature-nowplaying.expand_sticky_header_on_tap"),]),SGSection(@"Hide cards below the player", @[SGHideRow(@"Lyrics", nil, SGHideLyricsCard),@@ -33,7 +27,7 @@ NSArray<SGModSection *> *SGNativePlayerScreenSections(void) {SGHideRow(@"Recommendations", nil, SGHideRecommendations),]),SGSection(@"Hide on the player", @[- SGHideRow(@"Lyrics preview", @"The lyric lines shown under the artwork", SGHideLyricsInline),+ SGHideRow(@"Lyrics preview", nil, SGHideLyricsInline),SGHideRow(@"Shuffle", nil, SGHideShuffle),SGHideRow(@"Repeat", nil, SGHideRepeat),SGHideRow(@"Add to playlist", nil, SGHideAddTo),@@ -45,19 +39,19 @@ NSArray<SGModSection *> *SGNativePlayerScreenSections(void) {}SGModRow *SGGlassLyricsRow(void) {- return SGOptionRow(@"Glass lyrics", @"Glass card, and the page it expands into", SGKeyLyricsCard);+ return SGOptionRow(@"Glass lyrics", nil, SGKeyLyricsCard);}UIViewController *SGQueueSettingsPage(void) {return [[SGModPage alloc] initWithTitle:@"Queue & devices" intro:SGRestartNote sections:@[SGSection(@"Bottom sheets", @[- bare(SGFlagRow(@"Queue as a bottom sheet", @"ios-feature-nowplaying.bottom_sheet_queue_enabled")),- bare(SGFlagRow(@"Connect as a bottom sheet", @"ios-feature-nowplaying-elements.enable_connect_bottom_sheet")),- bare(SGFlagRow(@"Connect sheet from the video switcher", @"ios-playbackcontrol-audiovideoswitcher-impl.enable_connect_bottom_sheet")),+ SGFlagRow(@"Queue as a bottom sheet", @"ios-feature-nowplaying.bottom_sheet_queue_enabled"),+ SGFlagRow(@"Connect as a bottom sheet", @"ios-feature-nowplaying-elements.enable_connect_bottom_sheet"),+ SGFlagRow(@"Connect sheet from the video switcher", @"ios-playbackcontrol-audiovideoswitcher-impl.enable_connect_bottom_sheet"),]),SGSection(@"Queue", @[- bare(SGFlagRow(@"Queue flip transition", @"ios-feature-nowplaying.queue_flip_transition_enabled")),- bare(SGFlagRow(@"Play next in the context menu", @"ios-feature-queue.is_play_next_context_menu_enabled")),+ SGFlagRow(@"Queue flip transition", @"ios-feature-nowplaying.queue_flip_transition_enabled"),+ SGFlagRow(@"Play next in the context menu", @"ios-feature-queue.is_play_next_context_menu_enabled"),]),] footer:nil];}diff --git a/tweak/Sources/Redesigned/Navbar/NavbarSettings.m b/tweak/Sources/Redesigned/Navbar/NavbarSettings.mindex 8e324858..555d989e 100644--- a/tweak/Sources/Redesigned/Navbar/NavbarSettings.m+++ b/tweak/Sources/Redesigned/Navbar/NavbarSettings.m@@ -99,10 +99,9 @@ static NSArray<NSDictionary *> *openablePresets(void) {- (void)viewDidLoad {[super viewDidLoad];- _footer = SGNote(@"Anything Spotify can open by link works, so a playlist, an artist or a page of "- "your own goes on the bar the same way: a spotify: URI, or a share link pasted as "- "it is. Icons are Spotify's own: home, search, collection, heart, playlist, album, artist, podcasts, audiobook, downloaded, "- "bookmark, browse, star, user, events, queue, plus, radio, gears, spotifyLogo.");+ _footer = SGNote(@"Paste a share link or a spotify: URI. Icons: home, search, collection, heart, "+ "playlist, album, artist, podcasts, audiobook, downloaded, bookmark, browse, star, "+ "user, events, queue, plus, radio, gears, spotifyLogo.");self.tableView.tableFooterView = _footer;}@@ -142,7 +141,7 @@ static NSArray<NSDictionary *> *openablePresets(void) {NSDictionary *tab = _presets[(NSUInteger)path.row];SGFillCell(cell, tab[SGRNavbarTitle], tab[SGRNavbarURI], nil, nil);} else {- SGFillCell(cell, @"Any link…", @"A name, a URI of your own and an icon", nil, @"link");+ SGFillCell(cell, @"Any link…", nil, nil, @"link");}cell.selectionStyle = UITableViewCellSelectionStyleDefault;return cell;@@ -217,7 +216,7 @@ typedef NS_ENUM(NSInteger, SGRNavbarSection) {[super viewDidLoad];self.tableView.allowsSelectionDuringEditing = YES;self.tableView.editing = YES;- _intro = SGNote(@"Drag a tab by the handle to move it, tap it to show or hide it. The bar follows straight away.");+ _intro = SGNote(@"Drag to reorder, tap to show or hide.");self.tableView.tableHeaderView = _intro;_entries = navbarEntries();}@@ -294,11 +293,11 @@ typedef NS_ENUM(NSInteger, SGRNavbarSection) {break;}case SGRNavbarSectionAdd:- SGFillCell(cell, @"Add a tab…", @"A page of Spotify's, or any link", nil, @"plus");+ SGFillCell(cell, @"Add a tab…", nil, nil, @"plus");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;default:- SGFillCell(cell, @"Use Spotify's order", @"Forgets the order and the tabs you added", nil, @"arrow.uturn.backward");+ SGFillCell(cell, @"Use Spotify's order", nil, nil, @"arrow.uturn.backward");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;}diff --git a/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBarSettings.m b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBarSettings.mindex 5e99b36d..64f96a8d 100644--- a/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBarSettings.m+++ b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBarSettings.m@@ -8,10 +8,10 @@UIViewController *SGRNowPlayingBarSettingsPage(void) {return [[SGModPage alloc] initWithTitle:@"Now playing" intro:SGRestartNote sections:@[SGSection(nil, @[- SGHideRow(@"Hide the device button", @"The speaker icon on the now playing bar", SGRHideBarConnect),+ SGHideRow(@"Hide the device button", nil, SGRHideBarConnect),+ ]),+ SGSection(nil, @[+ SGSwitchRow(@"Moving background", nil, SGRKeyPlayerMotion),]),- SGNotedSection(nil, @[- SGSwitchRow(@"Moving background", @"The artwork's colours drift slowly behind the player", SGRKeyPlayerMotion),- ], @"Off, the blurred artwork stays still. The colours hold still anyway while a song is paused, with Reduce Motion and in Low Power Mode."),] footer:nil];}diff --git a/tweak/Sources/Settings/SGModPage.m b/tweak/Sources/Settings/SGModPage.mindex 6b6f25c1..59b3d4b3 100644--- a/tweak/Sources/Settings/SGModPage.m+++ b/tweak/Sources/Settings/SGModPage.m@@ -43,7 +43,7 @@ SGModRow *SGUnstableRow(NSString *title, NSString *subtitle, NSString *key, NSSt}SGModRow *SGFlagRow(NSString *title, NSString *key) {- SGModRow *row = SGHideRow(title, [key substringFromIndex:[key rangeOfString:@"."].location + 1], key);+ SGModRow *row = SGHideRow(title, nil, key);row.flag = YES;return row;}diff --git a/tweak/Sources/Shared/AdBlock/AdBlockSettings.m b/tweak/Sources/Shared/AdBlock/AdBlockSettings.mindex 7a4911fb..d80e0459 100644--- a/tweak/Sources/Shared/AdBlock/AdBlockSettings.m+++ b/tweak/Sources/Shared/AdBlock/AdBlockSettings.m@@ -17,9 +17,9 @@ static UIViewController *adFlagsPage(void) {SGKillRow(@"Hide the shuffle toggle upsell", @"ios-feature-shuffletoggleupsell.is_enabled_pt2"),SGKillRow(@"Hide the shuffle upsell in the video player", @"ios-feature-nowplaying-modes.video_first_shuffle_upsell_enabled"),], @"Locked while Hide upsells is on."),- SGNotedSection(@"Reduce interventions", @[+ SGSection(@"Reduce interventions", @[SGFlagRow(@"Reduce interventions", @"ios-messaging-reduceinterventions-impl.enabled"),- ], @"Spotify's own system for in-app tips, which most of the tooltip switches below belong to."),+ ]),SGSection(@"Tooltips", @[SGKillRow(@"Hide the smart shuffle helper", @"ios-messaging-reduceinterventions-impl.enable_message_smart_shuffle_helper_tooltip"),SGKillRow(@"Hide the data saver tip", @"ios-feature-nowplayingbar.data_saver_tooltip"),@@ -46,22 +46,22 @@ UIViewController *SGAdsSettingsPage(void) {[counts addObject:SGStatRow(@"Total", ^NSString *{return @(SGAdBlockCount(nil)).stringValue;})];- [counts addObject:SGActionRow(@"Reset the counters", @"Start counting from zero", ^{ SGResetAdBlock(); })];+ [counts addObject:SGActionRow(@"Reset the counters", nil, ^{ SGResetAdBlock(); })];- SGModRow *fakePremium = SGOptionRow(@"Spoof Premium", @"The product state and config the server sends are rewritten to a Premium account's, and the logout it sends back is answered as done", SGKeyFakePremium);+ SGModRow *fakePremium = SGOptionRow(@"Spoof Premium", nil, SGKeyFakePremium);fakePremium.warning = SGFakePremiumWarning;return [[SGModPage alloc] initWithTitle:@"Premium, ads & privacy" intro:SGRestartNote sections:@[SGNotedSection(@"Ads", @[- SGWithSymbol(SGOptionRow(@"Hide ads", @"The ad services never start, ad components leave Home and Search before they render, and the requests behind them are answered empty", SGKeyHideAds), @"speaker.slash"),- SGWithSymbol(SGOptionRow(@"Hide upsells", @"Premium prompts, banners and sheets dropped, and the flags that show them forced off", SGKeyHideUpsells), @"hand.raised"),+ SGWithSymbol(SGOptionRow(@"Hide ads", nil, SGKeyHideAds), @"speaker.slash"),+ SGWithSymbol(SGOptionRow(@"Hide upsells", nil, SGKeyHideUpsells), @"hand.raised"),SGWithSymbol(SGOptionRow(@"Hide the video carousel in Search", nil, SGKeyHideSearchVideos), @"play.rectangle.on.rectangle"),SGWithSymbol(SGOptionRow(@"Hide social proof in Search", nil, SGKeyHideSocialProof), @"person.2"),SGWithSymbol(SGPageRow(@"Ad and upsell flags", ^UIViewController *{ return adFlagsPage(); }), @"flag"),- ], @"From EeveeSpotify, off until switched on. They reach only what is drawn; audio ads between songs are Spoof Premium's to stop."),+ ], @"Audio ads between songs need Spoof Premium."),SGNotedSection(@"Premium", @[SGWithSymbol(fakePremium, @"crown"),- ], @"Free accounts only; a Premium account gains nothing from it."),+ ], @"Free accounts only."),SGPrivacySection(),SGSection(@"Ads blocked so far", counts),SGPrivacyCountersSection(),diff --git a/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.m b/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.mindex f15ffb71..e19f580c 100644--- a/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.m+++ b/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.m@@ -66,7 +66,7 @@ typedef NS_ENUM(NSInteger, SGArtistSection) {UITableViewCell *cell = SGDequeueCell(table, @"artist");switch (path.section) {case SGArtistSectionSwitch: {- SGFillCell(cell, @"Skip blocked artists", @"Their tracks are skipped as soon as they start", nil, nil);+ SGFillCell(cell, @"Skip blocked artists", nil, nil, nil);UISwitch *toggle = [UISwitch new];toggle.onTintColor = SGGreen();toggle.on = SGFlag(SGKeyArtistBlock, NO);@@ -87,7 +87,7 @@ typedef NS_ENUM(NSInteger, SGArtistSection) {break;}case SGArtistSectionAdd:- SGFillCell(cell, @"Block from what's playing…", @"The main artist or anyone featured", nil, @"person.crop.circle.badge.xmark");+ SGFillCell(cell, @"Block from what's playing…", nil, nil, @"person.crop.circle.badge.xmark");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;default:diff --git a/tweak/Sources/Shared/Flags/FlagPages.m b/tweak/Sources/Shared/Flags/FlagPages.mindex 532fe778..3655520d 100644--- a/tweak/Sources/Shared/Flags/FlagPages.m+++ b/tweak/Sources/Shared/Flags/FlagPages.m@@ -23,7 +23,7 @@ static UIViewController *martiniPage(void) {}UIViewController *SGLabsPage(void) {- return [[SGModPage alloc] initWithTitle:@"Labs" intro:@"Features Spotify built and has not released. They may do nothing on your version. Changes apply after you restart Spotify." sections:@[+ return [[SGModPage alloc] initWithTitle:@"Labs" intro:@"Unreleased features; some do nothing on your version. Changes apply after you restart Spotify." sections:@[SGSection(nil, @[SGWithSymbol(SGPageRow(@"AI Chat (Martini)", ^UIViewController *{ return martiniPage(); }), @"bubble.left.and.bubble.right"),]),@@ -37,7 +37,7 @@ UIViewController *SGLabsPage(void) {SGFlagRow(@"Fade out", @"ios-feature-sleeptimer.enable_fade_out"),SGFlagRow(@"One minute option", @"ios-feature-sleeptimer.enable_one_minute_option"),SGFlagRow(@"Options sheet", @"ios-feature-sleeptimer.use_options_sheet"),- ], @"The options sheet is locked on while Redesigned UI is on."),+ ], @"Options sheet is always on in Redesigned UI."),SGSection(@"Player", @[SGFlagRow(@"Snake on the cover art", @"ios-feature-cover-art-snake.enabled"),]),diff --git a/tweak/Sources/Shared/Flags/FlagsPage.m b/tweak/Sources/Shared/Flags/FlagsPage.mindex dee16e0c..9cdd2e20 100644--- a/tweak/Sources/Shared/Flags/FlagsPage.m+++ b/tweak/Sources/Shared/Flags/FlagsPage.m@@ -40,7 +40,7 @@ static NSString *flagState(const SGFlagDef *flag, id value) {_search.placeholder = [NSString stringWithFormat:@"Search %lu flags", (unsigned long)SGFlagCount];_search.searchBarStyle = UISearchBarStyleMinimal;_search.delegate = self;- _header = SGNote(@"Spotify's remote config, read once at startup. Auto keeps the value Spotify sends; a change applies after you restart Spotify.");+ _header = SGNote(@"Auto keeps Spotify's value. Changes apply after you restart Spotify.");[_header addSubview:_search];self.tableView.tableHeaderView = _header;[self reload];diff --git a/tweak/Sources/Shared/Gestures/GesturesSettings.m b/tweak/Sources/Shared/Gestures/GesturesSettings.mindex 5950c93e..44429d90 100644--- a/tweak/Sources/Shared/Gestures/GesturesSettings.m+++ b/tweak/Sources/Shared/Gestures/GesturesSettings.m@@ -123,9 +123,7 @@ static NSString *cellLabel(SGGestureAction action) {_header.autoresizingMask = UIViewAutoresizingFlexibleWidth;[_header addSubview:_grid];self.tableView.tableHeaderView = _header;- _footer = SGNote(@"The player answers a sideways swipe with the next track and a drag upwards "- "with the cards below, so the double tap is what is left. Spotify's own buttons "- "sit above the grid and keep their taps.");+ _footer = SGNote(@"Spotify's own buttons keep their taps.");self.tableView.tableFooterView = _footer;}@@ -191,7 +189,7 @@ static NSString *cellLabel(SGGestureAction action) {UITableViewCell *cell = SGDequeueCell(table, @"gesture");switch (path.section) {case 0: {- SGFillCell(cell, @"Double tap the player", @"Tap a cell above to say what it does", nil, nil);+ SGFillCell(cell, @"Double tap the player", @"Tap a cell to set it", nil, nil);UISwitch *toggle = [UISwitch new];toggle.onTintColor = SGGreen();toggle.on = SGFlag(SGKeyGestures, NO);@@ -214,7 +212,7 @@ static NSString *cellLabel(SGGestureAction action) {break;}default:- SGFillCell(cell, @"Start over", @"Every cell back to seeking and play or pause", nil, @"arrow.uturn.backward");+ SGFillCell(cell, @"Start over", nil, nil, @"arrow.uturn.backward");cell.selectionStyle = UITableViewCellSelectionStyleDefault;break;}diff --git a/tweak/Sources/Shared/Haptics/HapticsSettings.m b/tweak/Sources/Shared/Haptics/HapticsSettings.mindex 9a301200..45e72288 100644--- a/tweak/Sources/Shared/Haptics/HapticsSettings.m+++ b/tweak/Sources/Shared/Haptics/HapticsSettings.m@@ -50,14 +50,14 @@ static SGModRow *strengthRow(NSString *key, void (^changed)(void)) {}NSArray<SGModSection *> *SGVibrationsSections(void) {- SGModRow *controls = SGSwitchRow(@"Controls", @"Play, pause, skipping, scrubbing, shuffle, repeat and adding a song", SGKeyControlHaptics);+ SGModRow *controls = SGSwitchRow(@"Controls", nil, SGKeyControlHaptics);SGModRow *controlStrength = strengthRow(SGKeyControlStrength, ^{// Felt as it is set: a tap at the new strength with each step.SGPlayFeedback(SGFeedbackAdd);});controlStrength.visible = ^BOOL { return SGEnabled(SGKeyControlHaptics); };- SGModRow *music = SGOptionRow(@"Music Haptics", @"Taps and rumbles along with the music", SGKeyMusicHaptics);+ SGModRow *music = SGOptionRow(@"Music Haptics", nil, SGKeyMusicHaptics);music.info = kMusicHapticsInfo;music.changed = ^(BOOL on) { SGSetMusicHapticsEnabled(on); };BOOL (^musicOn)(void) = ^BOOL { return SGFlag(SGKeyMusicHaptics, NO); };diff --git a/tweak/Sources/Shared/JamesDSP/JamesDSPPage.m b/tweak/Sources/Shared/JamesDSP/JamesDSPPage.mindex 11c24a64..3fc92195 100644--- a/tweak/Sources/Shared/JamesDSP/JamesDSPPage.m+++ b/tweak/Sources/Shared/JamesDSP/JamesDSPPage.m@@ -427,7 +427,7 @@ static UIView *valueAndChevron(NSString *text) {- (void)viewDidLoad {[super viewDidLoad];- _intro = SGNote(@"JamesDSP's audio effects on everything Spotify plays. Unlike the rest of Mod Settings, changes here apply straight away.");+ _intro = SGNote(@"Changes apply straight away.");self.tableView.tableHeaderView = _intro;[self buildCredits];self.tableView.tableFooterView = _credits;@@ -590,7 +590,7 @@ static UIView *valueAndChevron(NSString *text) {SGDSPEffect *e = [self effectIn:path.section];if (!e) {UITableViewCell *cell = SGDequeueCell(table, @"reset");- SGFillCell(cell, @"Reset all effects", @"Every effect off, every value back to its default", SGRed(), @"arrow.counterclockwise");+ SGFillCell(cell, @"Reset all effects", nil, SGRed(), @"arrow.counterclockwise");UIListContentConfiguration *content = (UIListContentConfiguration *)cell.contentConfiguration;content.secondaryTextProperties.color = SGRed();cell.contentConfiguration = content;diff --git a/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m b/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.mindex 66cab462..636de9a3 100644--- a/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m+++ b/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m@@ -8,7 +8,7 @@ static NSArray<NSString *> *viewNames(void) {}UIViewController *SGLiveActivitySettingsPage(void) {- SGModRow *on = SGOptionRow(@"Live Activity", @"On the lock screen and in the Dynamic Island", SGKeyLiveActivity);+ SGModRow *on = SGOptionRow(@"Live Activity", nil, SGKeyLiveActivity);on.changed = ^(BOOL value) { SGSetLiveActivityEnabled(value); };SGModRow *view = SGChoiceRow(@"Shows", nil, SGKeyLiveActivityView, viewNames(), SGLiveActivityLyrics);return [[SGModPage alloc] initWithTitle:@"Live Activity" intro:nil sections:@[diff --git a/tweak/Sources/Shared/Player/PlayerSettings.m b/tweak/Sources/Shared/Player/PlayerSettings.mindex 5ecc8527..729ec332 100644--- a/tweak/Sources/Shared/Player/PlayerSettings.m+++ b/tweak/Sources/Shared/Player/PlayerSettings.m@@ -3,24 +3,18 @@#import "Settings/SGModPage.h"#import "PlayerSettings.h"-// Flag rows show the flag's name as their subtitle by default.-static SGModRow *bare(SGModRow *row) {- row.subtitle = nil;- return row;-}-UIViewController *SGLockScreenWidgetPage(void) {return [[SGModPage alloc] initWithTitle:@"Lock screen widget" intro:SGRestartNote sections:@[SGSection(@"Controls", @[- bare(SGFlagRow(@"Like and dislike buttons", @"ios-feature-lockscreen.like_dislike_enabled")),- bare(SGFlagRow(@"Skip button on podcasts", @"ios-feature-lockscreen.skip_button_on_podcasts")),- bare(SGFlagRow(@"Chapter skip controls", @"ios-feature-lockscreen.enable_chapter_skip_controls")),- bare(SGFlagRow(@"Burst skip", @"ios-feature-lockscreen.burst_skip_enabled")),+ SGFlagRow(@"Like and dislike buttons", @"ios-feature-lockscreen.like_dislike_enabled"),+ SGFlagRow(@"Skip button on podcasts", @"ios-feature-lockscreen.skip_button_on_podcasts"),+ SGFlagRow(@"Chapter skip controls", @"ios-feature-lockscreen.enable_chapter_skip_controls"),+ SGFlagRow(@"Burst skip", @"ios-feature-lockscreen.burst_skip_enabled"),]),SGSection(@"Artwork", @[- bare(SGFlagRow(@"Animated artwork", @"ios-feature-lockscreen.animated_artwork_enabled")),- bare(SGFlagRow(@"Video artwork", @"ios-feature-lockscreen.vit_artwork_enabled")),- bare(SGFlagRow(@"Companion content", @"ios-feature-lockscreen.companion_content_enabled")),+ SGFlagRow(@"Animated artwork", @"ios-feature-lockscreen.animated_artwork_enabled"),+ SGFlagRow(@"Video artwork", @"ios-feature-lockscreen.vit_artwork_enabled"),+ SGFlagRow(@"Companion content", @"ios-feature-lockscreen.companion_content_enabled"),]),] footer:nil];}diff --git a/tweak/Sources/Shared/Privacy/PrivacySettings.m b/tweak/Sources/Shared/Privacy/PrivacySettings.mindex cde7bf16..599eebfa 100644--- a/tweak/Sources/Shared/Privacy/PrivacySettings.m+++ b/tweak/Sources/Shared/Privacy/PrivacySettings.m@@ -3,7 +3,7 @@SGModSection *SGPrivacySection(void) {return SGSection(@"Privacy", @[- SGWithSymbol(SGSwitchRow(@"Block telemetry", @"Answer the analytics of the SDKs Spotify carries (Firebase, Crashlytics, Comscore...) with an empty reply instead of letting the request out. Spotify's own events go out, since Recents is built from them", SGKeyBlockTelemetry), @"antenna.radiowaves.left.and.right.slash"),+ SGWithSymbol(SGSwitchRow(@"Block telemetry", @"Spotify's own events still go out, since Recents is built from them", SGKeyBlockTelemetry), @"antenna.radiowaves.left.and.right.slash"),]);}@@ -17,6 +17,6 @@ SGModSection *SGPrivacyCountersSection(void) {[counts addObject:SGStatRow(@"Total", ^NSString *{return @(SGBlockedCount(nil)).stringValue;})];- [counts addObject:SGActionRow(@"Reset the telemetry counters", @"Start counting from zero", ^{ SGResetBlocked(); })];+ [counts addObject:SGActionRow(@"Reset the telemetry counters", nil, ^{ SGResetBlocked(); })];return SGSection(@"Telemetry blocked so far", counts);}