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

feat: take the glass tab bar out of WIP and under Liquid Glass UI

Vojtěch Škopek0cd797845f39
diff --git a/tweak/Sources/Features/Appearance/Appearance.h b/tweak/Sources/Features/Appearance/Appearance.h
index 40a7877b..12b87751 100644
--- a/tweak/Sources/Features/Appearance/Appearance.h
+++ b/tweak/Sources/Features/Appearance/Appearance.h
@@ -13,7 +13,7 @@ NSString *SGAccentLabel(void); // "#RRGGBB", or the name of Spotify's own
void SGPickAccent(void); // the system colour picker over the top of the app, stored on the way out
// Liquid Glass UI, the one switch of Appearance that sets others: Spotify's own glass and, with
-// it, the search field, the now playing bar, the artwork background and the lyrics card. Each
+// it, the tab bar, the search field, the now playing bar, the artwork background and the lyrics card. Each
// stays a switch of its own afterwards.
void SGSetLiquidGlassUI(BOOL on);
diff --git a/tweak/Sources/Features/Appearance/AppearanceSettings.m b/tweak/Sources/Features/Appearance/AppearanceSettings.m
index a1b6501c..f613aa78 100644
--- a/tweak/Sources/Features/Appearance/AppearanceSettings.m
+++ b/tweak/Sources/Features/Appearance/AppearanceSettings.m
@@ -6,23 +6,20 @@
#import "Features/NowPlaying/NowPlaying.h"
void SGSetLiquidGlassUI(BOOL on) {
- for (NSString *key in @[SGKeySpotifyGlass, SGKeySearchField, SGKeyNowPlayingBar, SGKeyPlayer, SGKeyPlayerBackdrop, SGKeyLyricsCard]) {
+ for (NSString *key in @[SGKeySpotifyGlass, SGKeyTabBar, SGKeySearchField, SGKeyNowPlayingBar, SGKeyPlayer, SGKeyPlayerBackdrop, SGKeyLyricsCard]) {
SGSetEnabled(key, on);
}
}
UIViewController *SGAppearanceSettingsPage(void) {
- SGModRow *tabBar = SGUnstableRow(@"Tab bar", @"[WIP] Unstable", SGKeyTabBar,
- @"The glass capsule does not render the way iOS draws its own, and there is no selection indicator behind the active tab. Switching this on will look wrong.\n\nIf you want to take it further, pull requests are very welcome.");
- tabBar.defaultOn = NO;
- SGModRow *glass = SGOptionRow(@"Liquid Glass UI", @"Spotify's own glass navigation bar, slider and sheets, and with it the search field, now playing bar, artwork background and lyrics", SGKeySpotifyGlass);
+ SGModRow *glass = SGOptionRow(@"Liquid Glass UI", @"Spotify's own glass navigation bar, slider and sheets, and with it the tab bar, search field, now playing bar, artwork background and lyrics", SGKeySpotifyGlass);
glass.changed = ^(BOOL on) { SGSetLiquidGlassUI(on); };
return [[SGModPage alloc] initWithTitle:@"Appearance" intro:SGRestartNote sections:@[
SGSection(nil, @[
SGPageRow(@"Navbar", ^UIViewController *{ return SGNavbarSettingsPage(); }),
]),
SGSection(@"Liquid Glass", @[
- tabBar,
+ SGOptionRow(@"Tab bar", @"The system glass tab bar in place of Spotify's", SGKeyTabBar),
SGOptionRow(@"Search field", @"Glass capsule instead of the white field", SGKeySearchField),
glass,
]),
diff --git a/tweak/Sources/Features/Onboarding/Tour.m b/tweak/Sources/Features/Onboarding/Tour.m
index 912be1cf..79d1ad26 100644
--- a/tweak/Sources/Features/Onboarding/Tour.m
+++ b/tweak/Sources/Features/Onboarding/Tour.m
@@ -337,7 +337,7 @@ static SGTourRow *actionRow(NSString *symbol, NSString *title, NSString *subtitl
- (NSArray<SGTourPage *> *)buildPages {
__weak typeof(self) weakSelf = self;
- SGTourRow *glass = switchRow(@"drop.fill", @"Liquid Glass UI", @"Spotify's own glass bars and sheets, the search field, now playing bar, artwork background and lyrics", SGKeySpotifyGlass, NO);
+ SGTourRow *glass = switchRow(@"drop.fill", @"Liquid Glass UI", @"Spotify's own glass bars and sheets, the tab bar, search field, now playing bar, artwork background and lyrics", SGKeySpotifyGlass, NO);
glass.changed = ^(BOOL on) { SGSetLiquidGlassUI(on); };
SGTourRow *premium = switchRow(@"crown.fill", @"Spoof Premium", @"Free accounts only", SGKeyFakePremium, NO);
premium.warning = SGFakePremiumWarning;