Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: keep glass header buttons off until switched on (#7)
Vojtěch Škopek09098a0460b5
diff --git a/tweak/Sources/Features/Appearance/AppearanceSettings.m b/tweak/Sources/Features/Appearance/AppearanceSettings.mindex 34374e68..a1b6501c 100644--- a/tweak/Sources/Features/Appearance/AppearanceSettings.m+++ b/tweak/Sources/Features/Appearance/AppearanceSettings.m@@ -6,7 +6,7 @@#import "Features/NowPlaying/NowPlaying.h"void SGSetLiquidGlassUI(BOOL on) {- for (NSString *key in @[SGKeySpotifyGlass, SGKeySearchField, SGKeyNowPlayingBar, SGKeyPlayerBackdrop, SGKeyLyricsCard]) {+ for (NSString *key in @[SGKeySpotifyGlass, SGKeySearchField, SGKeyNowPlayingBar, SGKeyPlayer, SGKeyPlayerBackdrop, SGKeyLyricsCard]) {SGSetEnabled(key, on);}}diff --git a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m b/tweak/Sources/Features/NowPlaying/NowPlayingSettings.mindex 1d51912a..9ffc7ad9 100644--- a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m+++ b/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m@@ -27,7 +27,7 @@ UIViewController *SGNowPlayingSettingsPage(void) {SGSection(@"Liquid Glass", @[SGOptionRow(@"Now playing bar", @"Glass card with round artwork", SGKeyNowPlayingBar),SGOptionRow(@"Artwork background", @"The cover blurred and dimmed behind the player instead of the flat album colour", SGKeyPlayerBackdrop),- SGSwitchRow(@"Header buttons", @"Glass circles behind close and more, over the artwork", SGKeyPlayer),+ SGOptionRow(@"Header buttons", @"Glass circles behind close and more, over the artwork", SGKeyPlayer),SGOptionRow(@"Lyrics", @"Glass card, and the page it expands into", SGKeyLyricsCard),]),SGSection(@"Spotify's flags", @[diff --git a/tweak/Sources/Features/NowPlaying/Player.x b/tweak/Sources/Features/NowPlaying/Player.xindex 8a2c42c1..b20be784 100644--- a/tweak/Sources/Features/NowPlaying/Player.x+++ b/tweak/Sources/Features/NowPlaying/Player.x@@ -40,7 +40,7 @@ static BOOL backdropOn(void) {// The playlist name is 110 wide against 48 tall, so it keeps no pane, and neither do the children// Declutter/Declutter.x made invisible.static void glassBehindRoundButtons(UIViewController *unit) {- if (!SGEnabled(SGKeyPlayer)) return;+ if (!SGFlag(SGKeyPlayer, NO)) return;UIView *host = unit.viewIfLoaded;UIStackView *row = SGRowIn(host);if (!row) return;