Skip to content

Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.

C

fix: the redesign has no dark band at the bottom on Spotify 9.1.90

My-Name-Is-Jefff37c4a6cac13
diff --git a/tweak/Sources/Redesigned/Navbar/TabBar.x b/tweak/Sources/Redesigned/Navbar/TabBar.x
index 98f3724c..595ba6f2 100644
--- a/tweak/Sources/Redesigned/Navbar/TabBar.x
+++ b/tweak/Sources/Redesigned/Navbar/TabBar.x
@@ -912,9 +912,24 @@ static void itemDidLayOut(UIView *item) {
}
%end
+// Spotify's own fade under its bar, 219 pt down to black from 9.1.90 (TabBarGradientView), stacked with SGRBarFade
+// into a band near black over the page's foot. SGRBarFade is the redesign's, so Spotify's stays clear.
+%group SpotifyBarFade
+%hook _TtC23NavigationUI_TabBarImpl18TabBarGradientView
+- (void)didMoveToWindow {
+ %orig;
+ ((UIView *)self).alpha = 0;
+}
+- (void)setAlpha:(CGFloat)alpha {
+ %orig(0);
+}
+%end
+%end
+
%ctor {
if (!SGRedesignedUI()) return;
%init;
+ if (objc_getClass("_TtC23NavigationUI_TabBarImpl18TabBarGradientView")) %init(SpotifyBarFade);
SGRequireClasses(@[
@"_TtC23NavigationUI_TabBarImpl10TabBarView",
@"_TtC23NavigationUI_TabBarImpl21TabBarItemElementView",