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

refactor: sort the sources into Shared, Native, Redesigned and App layers

Vojtěch Škopekaf40f21e14f7
diff --git a/.gitignore b/.gitignore
index 093514cf..0f9efe8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,6 @@ trees/*.txt
tweak/.theos/
tweak/obj/
tweak/packages/
-tweak/Sources/Features/Flags/SGFlagList.m
+tweak/Sources/Shared/Flags/SGFlagList.m
/trees/continuous
/trees/clean
diff --git a/Makefile b/Makefile
index d82ab295..de250524 100644
--- a/Makefile
+++ b/Makefile
@@ -29,5 +29,5 @@ session: ## record clean trees screen by screen into trees/clean/, Enter per sn
./scripts/record-session.py $(SCREENS)
log: ## stream the tweak's log lines from the phone
./scripts/dump-log.sh
-flags: ## regenerate tweak/Sources/Features/Flags/SGFlagList.m, Spotify's remote-config flags, from the IPA
+flags: ## regenerate tweak/Sources/Shared/Flags/SGFlagList.m, Spotify's remote-config flags, from the IPA
./scripts/extract-flags.py $(IPA)
diff --git a/scripts/extract-flags.py b/scripts/extract-flags.py
index 95bac9af..4563ba09 100755
--- a/scripts/extract-flags.py
+++ b/scripts/extract-flags.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Write tweak/Sources/Features/Flags/SGFlagList.m, the table of Spotify's remote-config flags, from a decrypted IPA.
+"""Write tweak/Sources/Shared/Flags/SGFlagList.m, the table of Spotify's remote-config flags, from a decrypted IPA.
Every generated SPT*ImplProperties class reads its flags in initWithConfigurationProvider: through
boolValueForId:defaultValue:, intValueForId:lower:upper:defaultValue: or
@@ -252,7 +252,7 @@ def main():
kind, value, lower, upper = flags[key]
lines.append(f' {{"{key}", SGFlag{kind}, {signed(value)}, {signed(lower)}, {signed(upper)}}},')
lines += ['};', 'const NSUInteger SGFlagCount = sizeof(SGFlagTable) / sizeof(*SGFlagTable);', '']
- out = ROOT / 'tweak/Sources/Features/Flags/SGFlagList.m'
+ out = ROOT / 'tweak/Sources/Shared/Flags/SGFlagList.m'
out.write_text('\n'.join(lines))
typed = sum(1 for f in flags.values() if f[0] != 'Unknown')
print(f'{out.relative_to(ROOT)}: {len(flags)} flags, {typed} with a type and default')
diff --git a/scripts/pipeline.sh b/scripts/pipeline.sh
index 193e8832..419ed920 100755
--- a/scripts/pipeline.sh
+++ b/scripts/pipeline.sh
@@ -62,7 +62,7 @@ OUT="${OUT:-$ROOT/out/Spotify-$VERSION-glass.ipa}"
echo "==> Spotify $VERSION -> $OUT"
# The flag table is generated rather than committed, so it always matches the IPA being built.
-if [ ! -f "$ROOT/tweak/Sources/Features/Flags/SGFlagList.m" ]; then
+if [ ! -f "$ROOT/tweak/Sources/Shared/Flags/SGFlagList.m" ]; then
echo "==> extracting the flag table (once, about 40 s)"
"$ROOT/scripts/extract-flags.py" "$IN"
fi
diff --git a/tweak/Makefile b/tweak/Makefile
index 9e46cac1..81376dbe 100644
--- a/tweak/Makefile
+++ b/tweak/Makefile
@@ -8,7 +8,7 @@ TWEAK_NAME := spotifyglass
SG_VERSION := $(shell sed -n 's/^Version: //p' control)
-# Every source under Sources/, so a new feature needs no Makefile edit. Features/Flags/SGFlagList.m
+# Every source under Sources/, so a new feature needs no Makefile edit. Shared/Flags/SGFlagList.m
# is generated from the IPA by scripts/extract-flags.py.
spotifyglass_FILES := $(shell find Sources -name '*.m' -o -name '*.x' -o -name '*.swift' | sort)
spotifyglass_CFLAGS := -fobjc-arc -ISources -DSG_VERSION=\"$(SG_VERSION)\"
diff --git a/tweak/Sources/Settings/SGModSettings.x b/tweak/Sources/App/ModSettings.x
similarity index 96%
rename from tweak/Sources/Settings/SGModSettings.x
rename to tweak/Sources/App/ModSettings.x
index 9e08eea7..60dfedd0 100644
--- a/tweak/Sources/Settings/SGModSettings.x
+++ b/tweak/Sources/App/ModSettings.x
@@ -12,16 +12,16 @@
// x 48, 12pt chevron on the right. A pushed page (trees/settings notifications opened.txt) is a
// UITableView bg #121212: header with an 11pt grey description at (16, 24), 53pt cells with the
#import "Core/SGCore.h"
-#import "SGPage.h"
-#import "SGPageStyle.h"
-#import "SGModPage.h"
-#import "Features/Appearance/Appearance.h"
-#import "Features/Navbar/Navbar.h"
-#import "Features/Home/Home.h"
-#import "Features/NowPlaying/NowPlaying.h"
-#import "Features/AdBlock/AdBlock.h"
-#import "Features/Flags/Flags.h"
-#import "Features/About/About.h"
+#import "Settings/SGPage.h"
+#import "Settings/SGPageStyle.h"
+#import "Settings/SGModPage.h"
+#import "Native/Appearance/Appearance.h"
+#import "Native/Navbar/Navbar.h"
+#import "Native/Home/Home.h"
+#import "Native/Player/NowPlaying.h"
+#import "Shared/AdBlock/AdBlock.h"
+#import "Shared/Flags/Flags.h"
+#import "Shared/About/About.h"
static const CGFloat kRowHeight = 56;
static char kRowKey, kInsetKey;
diff --git a/tweak/Sources/Features/Onboarding/Onboarding.h b/tweak/Sources/App/Onboarding/Onboarding.h
similarity index 100%
rename from tweak/Sources/Features/Onboarding/Onboarding.h
rename to tweak/Sources/App/Onboarding/Onboarding.h
diff --git a/tweak/Sources/Features/Onboarding/Onboarding.x b/tweak/Sources/App/Onboarding/Onboarding.x
similarity index 100%
rename from tweak/Sources/Features/Onboarding/Onboarding.x
rename to tweak/Sources/App/Onboarding/Onboarding.x
diff --git a/tweak/Sources/Features/Onboarding/Tour.m b/tweak/Sources/App/Onboarding/Tour.m
similarity index 98%
rename from tweak/Sources/Features/Onboarding/Tour.m
rename to tweak/Sources/App/Onboarding/Tour.m
index b5eb3781..91c319ce 100644
--- a/tweak/Sources/Features/Onboarding/Tour.m
+++ b/tweak/Sources/App/Onboarding/Tour.m
@@ -1,15 +1,15 @@
#import "Core/SGCore.h"
#import "Settings/SGPageStyle.h"
#import "Onboarding.h"
-#import "Features/About/About.h"
-#import "Features/AdBlock/AdBlock.h"
-#import "Features/Appearance/Appearance.h"
-#import "Features/Flags/Flags.h"
-#import "Features/Home/Home.h"
-#import "Features/Declutter/Declutter.h"
-#import "Features/Navbar/Navbar.h"
-#import "Features/Privacy/Privacy.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Shared/About/About.h"
+#import "Shared/AdBlock/AdBlock.h"
+#import "Native/Appearance/Appearance.h"
+#import "Shared/Flags/Flags.h"
+#import "Native/Home/Home.h"
+#import "Native/Player/Declutter.h"
+#import "Native/Navbar/Navbar.h"
+#import "Shared/Privacy/Privacy.h"
+#import "Redesigned/Kit/SGRedesign.h"
static const CGFloat kMargin = 24;
static const CGFloat kCardRadius = 22;
diff --git a/tweak/Sources/Core/SGBackdrop.m b/tweak/Sources/Core/SGBackdrop.m
index d5a723bd..263eb54c 100644
--- a/tweak/Sources/Core/SGBackdrop.m
+++ b/tweak/Sources/Core/SGBackdrop.m
@@ -1,4 +1,4 @@
-#import "Core/SGBackdrop.h"
+#import "SGBackdrop.h"
// Small enough that no shape of the cover survives the scaling back up, large enough to keep the
// colours where they were in it.
diff --git a/tweak/Sources/Core/SGCore.h b/tweak/Sources/Core/SGCore.h
index b3e7ffe7..16e1f652 100644
--- a/tweak/Sources/Core/SGCore.h
+++ b/tweak/Sources/Core/SGCore.h
@@ -1,8 +1,8 @@
// What every source file of the mod builds on. Feature-specific API lives in the feature's own
// header under Features/, next to the keys it reads.
-#import "Core/SGRuntime.h"
-#import "Core/SGLog.h"
-#import "Core/SGPrefs.h"
-#import "Core/SGViewTree.h"
-#import "Core/SGGlass.h"
-#import "Core/SGBackdrop.h"
+#import "SGRuntime.h"
+#import "SGLog.h"
+#import "SGPrefs.h"
+#import "SGViewTree.h"
+#import "SGGlass.h"
+#import "SGBackdrop.h"
diff --git a/tweak/Sources/Features/Album/Album.h b/tweak/Sources/Native/Album/Album.h
similarity index 100%
rename from tweak/Sources/Features/Album/Album.h
rename to tweak/Sources/Native/Album/Album.h
diff --git a/tweak/Sources/Features/Album/Album.x b/tweak/Sources/Native/Album/Album.x
similarity index 100%
rename from tweak/Sources/Features/Album/Album.x
rename to tweak/Sources/Native/Album/Album.x
diff --git a/tweak/Sources/Features/Album/AlbumSettings.m b/tweak/Sources/Native/Album/AlbumSettings.m
similarity index 100%
rename from tweak/Sources/Features/Album/AlbumSettings.m
rename to tweak/Sources/Native/Album/AlbumSettings.m
diff --git a/tweak/Sources/Features/Appearance/Accent.x b/tweak/Sources/Native/Appearance/Accent.x
similarity index 100%
rename from tweak/Sources/Features/Appearance/Accent.x
rename to tweak/Sources/Native/Appearance/Accent.x
diff --git a/tweak/Sources/Features/Appearance/Amoled.x b/tweak/Sources/Native/Appearance/Amoled.x
similarity index 100%
rename from tweak/Sources/Features/Appearance/Amoled.x
rename to tweak/Sources/Native/Appearance/Amoled.x
diff --git a/tweak/Sources/Features/Appearance/Appearance.h b/tweak/Sources/Native/Appearance/Appearance.h
similarity index 100%
rename from tweak/Sources/Features/Appearance/Appearance.h
rename to tweak/Sources/Native/Appearance/Appearance.h
diff --git a/tweak/Sources/Features/Appearance/AppearanceSettings.m b/tweak/Sources/Native/Appearance/AppearanceSettings.m
similarity index 95%
rename from tweak/Sources/Features/Appearance/AppearanceSettings.m
rename to tweak/Sources/Native/Appearance/AppearanceSettings.m
index ad8874d8..4762abdd 100644
--- a/tweak/Sources/Features/Appearance/AppearanceSettings.m
+++ b/tweak/Sources/Native/Appearance/AppearanceSettings.m
@@ -2,10 +2,10 @@
#import "Settings/SGModPage.h"
#import "Settings/SGPageStyle.h"
#import "Appearance.h"
-#import "Features/Navbar/Navbar.h"
-#import "Features/Flags/Flags.h"
-#import "Features/NowPlaying/NowPlaying.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Native/Navbar/Navbar.h"
+#import "Shared/Flags/Flags.h"
+#import "Native/Player/NowPlaying.h"
+#import "Redesigned/Kit/SGRedesign.h"
NSString *const SGRedesignedUIInfo = @"Replaces Spotify's own screens with the mod's redesign, built in Liquid Glass: for now the full screen player with the lyrics under it, and every screen redesigned later joins it here. It also turns on Spotify's own glass bars, slider and sheets, and the mod's glass tab bar, search field and now playing bar.\n\nWhile it is on, the switches that change Spotify's own version of a redesigned screen are put away on that screen's page, since the screen is no longer Spotify's. Off, Spotify looks the way it does with the switches you set.\n\nChanges apply after you restart Spotify.";
diff --git a/tweak/Sources/Features/Appearance/EdgeEffect.x b/tweak/Sources/Native/Appearance/EdgeEffect.x
similarity index 100%
rename from tweak/Sources/Features/Appearance/EdgeEffect.x
rename to tweak/Sources/Native/Appearance/EdgeEffect.x
diff --git a/tweak/Sources/Features/Appearance/Repaint.x b/tweak/Sources/Native/Appearance/Repaint.x
similarity index 100%
rename from tweak/Sources/Features/Appearance/Repaint.x
rename to tweak/Sources/Native/Appearance/Repaint.x
diff --git a/tweak/Sources/Features/Artist/Artist.h b/tweak/Sources/Native/Artist/Artist.h
similarity index 100%
rename from tweak/Sources/Features/Artist/Artist.h
rename to tweak/Sources/Native/Artist/Artist.h
diff --git a/tweak/Sources/Features/Artist/Artist.x b/tweak/Sources/Native/Artist/Artist.x
similarity index 100%
rename from tweak/Sources/Features/Artist/Artist.x
rename to tweak/Sources/Native/Artist/Artist.x
diff --git a/tweak/Sources/Features/Artist/ArtistSettings.m b/tweak/Sources/Native/Artist/ArtistSettings.m
similarity index 100%
rename from tweak/Sources/Features/Artist/ArtistSettings.m
rename to tweak/Sources/Native/Artist/ArtistSettings.m
diff --git a/tweak/Sources/Features/Home/Home.h b/tweak/Sources/Native/Home/Home.h
similarity index 100%
rename from tweak/Sources/Features/Home/Home.h
rename to tweak/Sources/Native/Home/Home.h
diff --git a/tweak/Sources/Features/Home/HomeGradient.x b/tweak/Sources/Native/Home/HomeGradient.x
similarity index 100%
rename from tweak/Sources/Features/Home/HomeGradient.x
rename to tweak/Sources/Native/Home/HomeGradient.x
diff --git a/tweak/Sources/Features/Home/HomeGradientChoices.m b/tweak/Sources/Native/Home/HomeGradientChoices.m
similarity index 100%
rename from tweak/Sources/Features/Home/HomeGradientChoices.m
rename to tweak/Sources/Native/Home/HomeGradientChoices.m
diff --git a/tweak/Sources/Features/Home/HomeSettings.m b/tweak/Sources/Native/Home/HomeSettings.m
similarity index 96%
rename from tweak/Sources/Features/Home/HomeSettings.m
rename to tweak/Sources/Native/Home/HomeSettings.m
index 42bf81f3..35e00f1d 100644
--- a/tweak/Sources/Features/Home/HomeSettings.m
+++ b/tweak/Sources/Native/Home/HomeSettings.m
@@ -1,10 +1,10 @@
#import "Core/SGCore.h"
#import "Settings/SGModPage.h"
#import "Home.h"
-#import "Features/Declutter/Declutter.h"
-#import "Features/Playlist/Playlist.h"
-#import "Features/Artist/Artist.h"
-#import "Features/Album/Album.h"
+#import "Native/Player/Declutter.h"
+#import "Native/Playlist/Playlist.h"
+#import "Native/Artist/Artist.h"
+#import "Native/Album/Album.h"
static SGModRow *choiceRow(NSString *title, NSString *subtitle, SGHomeChoice choice) {
return SGChoiceRow(title, subtitle, SGHomeChoiceKey(choice), SGHomeChoiceNames(choice),
diff --git a/tweak/Sources/Features/Karaoke/KaraokePage.x b/tweak/Sources/Native/Lyrics/KaraokePage.x
similarity index 97%
rename from tweak/Sources/Features/Karaoke/KaraokePage.x
rename to tweak/Sources/Native/Lyrics/KaraokePage.x
index e362a855..455961c8 100644
--- a/tweak/Sources/Features/Karaoke/KaraokePage.x
+++ b/tweak/Sources/Native/Lyrics/KaraokePage.x
@@ -3,7 +3,7 @@
// header, close button and controls stay working. It is laid over rather than swapped in: Spotify's
// list keeps running underneath and comes back the moment a track has no synced lyrics.
#import "Core/SGCore.h"
-#import "Karaoke.h"
+#import "Shared/Lyrics/Lyrics.h"
static char kKaraokeKey;
diff --git a/tweak/Sources/Features/Karaoke/KaraokeView.m b/tweak/Sources/Native/Lyrics/KaraokeView.m
similarity index 99%
rename from tweak/Sources/Features/Karaoke/KaraokeView.m
rename to tweak/Sources/Native/Lyrics/KaraokeView.m
index 4ccfd6fd..5670aff4 100644
--- a/tweak/Sources/Features/Karaoke/KaraokeView.m
+++ b/tweak/Sources/Native/Lyrics/KaraokeView.m
@@ -1,7 +1,7 @@
#import "Core/SGCore.h"
-#import "Karaoke.h"
-#import "Features/LyricsSources/LyricsSources.h"
-#import "Features/NowPlaying/NowPlaying.h"
+#import "Shared/Lyrics/Lyrics.h"
+#import "Shared/LyricsSources/LyricsSources.h"
+#import "Native/Player/NowPlaying.h"
static const CGFloat kFontSize = 30, kMargin = 24, kLineGap = 24, kRowTighten = 2;
// The card under the player is a seventh of the page's height, so it gets Spotify's own card type
diff --git a/tweak/Sources/Features/Navbar/Navbar.h b/tweak/Sources/Native/Navbar/Navbar.h
similarity index 100%
rename from tweak/Sources/Features/Navbar/Navbar.h
rename to tweak/Sources/Native/Navbar/Navbar.h
diff --git a/tweak/Sources/Features/Navbar/Navbar.x b/tweak/Sources/Native/Navbar/Navbar.x
similarity index 99%
rename from tweak/Sources/Features/Navbar/Navbar.x
rename to tweak/Sources/Native/Navbar/Navbar.x
index 23cfc945..96f97f2a 100644
--- a/tweak/Sources/Features/Navbar/Navbar.x
+++ b/tweak/Sources/Native/Navbar/Navbar.x
@@ -16,7 +16,7 @@
#import "Core/SGCore.h"
#import "Navbar.h"
#import "Headers/SPTEncoreIconView.h"
-#import "Redesign/Kit/SGRBridges.h"
+#import "Redesigned/Kit/SGRBridges.h"
#import <objc/message.h>
static const CGFloat kIconSize = 24;
diff --git a/tweak/Sources/Features/Navbar/NavbarLayout.m b/tweak/Sources/Native/Navbar/NavbarLayout.m
similarity index 100%
rename from tweak/Sources/Features/Navbar/NavbarLayout.m
rename to tweak/Sources/Native/Navbar/NavbarLayout.m
diff --git a/tweak/Sources/Features/Navbar/NavbarSettings.m b/tweak/Sources/Native/Navbar/NavbarSettings.m
similarity index 99%
rename from tweak/Sources/Features/Navbar/NavbarSettings.m
rename to tweak/Sources/Native/Navbar/NavbarSettings.m
index 55568c87..84f5355e 100644
--- a/tweak/Sources/Features/Navbar/NavbarSettings.m
+++ b/tweak/Sources/Native/Navbar/NavbarSettings.m
@@ -2,7 +2,7 @@
#import "Settings/SGPage.h"
#import "Settings/SGPageStyle.h"
#import "Navbar.h"
-#import "Features/Appearance/Appearance.h"
+#import "Native/Appearance/Appearance.h"
// What "Add a tab" offers: URIs Spotify's own router resolves to a page of its own, each with the
// name of the SPTEncoreIcon class method that draws its glyph.
diff --git a/tweak/Sources/Features/Declutter/Declutter.h b/tweak/Sources/Native/Player/Declutter.h
similarity index 100%
rename from tweak/Sources/Features/Declutter/Declutter.h
rename to tweak/Sources/Native/Player/Declutter.h
diff --git a/tweak/Sources/Features/Karaoke/KaraokeCard.x b/tweak/Sources/Native/Player/KaraokeCard.x
similarity index 98%
rename from tweak/Sources/Features/Karaoke/KaraokeCard.x
rename to tweak/Sources/Native/Player/KaraokeCard.x
index 201e6fe9..ba77a873 100644
--- a/tweak/Sources/Features/Karaoke/KaraokeCard.x
+++ b/tweak/Sources/Native/Player/KaraokeCard.x
@@ -11,7 +11,7 @@
// underneath and comes back the moment a track has no synced lyrics. It takes no touches, so the
// tap that opens the full screen page is still Spotify's to answer.
#import "Core/SGCore.h"
-#import "Karaoke.h"
+#import "Shared/Lyrics/Lyrics.h"
// Below this the card is collapsed, by Declutter or while it is still being laid out.
static const CGFloat kLivingHeight = 40;
diff --git a/tweak/Sources/Features/NowPlaying/Lyrics.x b/tweak/Sources/Native/Player/LyricsCard.x
similarity index 99%
rename from tweak/Sources/Features/NowPlaying/Lyrics.x
rename to tweak/Sources/Native/Player/LyricsCard.x
index 605e3c00..109f8810 100644
--- a/tweak/Sources/Features/NowPlaying/Lyrics.x
+++ b/tweak/Sources/Native/Player/LyricsCard.x
@@ -16,7 +16,7 @@
// front of whatever that view still fills itself with, rather than behind the whole page.
#import "Core/SGCore.h"
#import "NowPlaying.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Redesigned/Kit/SGRedesign.h"
static const CGFloat kCardRadius = 16;
static char kCardGlassKey, kPageGlassKey;
diff --git a/tweak/Sources/Features/NowPlaying/NowPlaying.h b/tweak/Sources/Native/Player/NowPlaying.h
similarity index 100%
rename from tweak/Sources/Features/NowPlaying/NowPlaying.h
rename to tweak/Sources/Native/Player/NowPlaying.h
diff --git a/tweak/Sources/Features/NowPlaying/Player.x b/tweak/Sources/Native/Player/Player.x
similarity index 99%
rename from tweak/Sources/Features/NowPlaying/Player.x
rename to tweak/Sources/Native/Player/Player.x
index 84c044a8..e065053e 100644
--- a/tweak/Sources/Features/NowPlaying/Player.x
+++ b/tweak/Sources/Native/Player/Player.x
@@ -22,8 +22,8 @@
// contrast, and the timestamps take monospaced digits so they stop twitching every second.
#import "Core/SGCore.h"
#import "NowPlaying.h"
-#import "Features/Appearance/Appearance.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Native/Appearance/Appearance.h"
+#import "Redesigned/Kit/SGRedesign.h"
static const CGFloat kButtonMin = 36, kButtonMax = 48;
static const CGFloat kArtRadius = 12;
diff --git a/tweak/Sources/Features/Declutter/Declutter.x b/tweak/Sources/Native/Player/PlayerDeclutter.x
similarity index 99%
rename from tweak/Sources/Features/Declutter/Declutter.x
rename to tweak/Sources/Native/Player/PlayerDeclutter.x
index b6c51af8..0411204c 100644
--- a/tweak/Sources/Features/Declutter/Declutter.x
+++ b/tweak/Sources/Native/Player/PlayerDeclutter.x
@@ -10,7 +10,7 @@
// and the queue; track info ends with the add-to button.
#import "Core/SGCore.h"
#import "Declutter.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Redesigned/Kit/SGRedesign.h"
#pragma mark - cards and sections
diff --git a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m b/tweak/Sources/Native/Player/PlayerSettings.m
similarity index 97%
rename from tweak/Sources/Features/NowPlaying/NowPlayingSettings.m
rename to tweak/Sources/Native/Player/PlayerSettings.m
index 7fd6d79f..50b73d9f 100644
--- a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m
+++ b/tweak/Sources/Native/Player/PlayerSettings.m
@@ -1,13 +1,13 @@
#import "Core/SGCore.h"
#import "Settings/SGModPage.h"
#import "NowPlaying.h"
-#import "Features/Declutter/Declutter.h"
-#import "Features/Gestures/Gestures.h"
-#import "Features/ArtistBlock/ArtistBlock.h"
-#import "Features/Karaoke/Karaoke.h"
-#import "Features/LockScreenLyrics/LockScreenLyrics.h"
-#import "Features/LyricsSources/LyricsSources.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Declutter.h"
+#import "Shared/Gestures/Gestures.h"
+#import "Shared/ArtistBlock/ArtistBlock.h"
+#import "Shared/Lyrics/Lyrics.h"
+#import "Shared/LockScreenLyrics/LockScreenLyrics.h"
+#import "Shared/LyricsSources/LyricsSources.h"
+#import "Redesigned/Kit/SGRedesign.h"
static UIViewController *nowPlayingBarPage(void) {
return [[SGModPage alloc] initWithTitle:@"Now playing bar" intro:SGRestartNote sections:@[
diff --git a/tweak/Sources/Features/Playlist/Playlist.h b/tweak/Sources/Native/Playlist/Playlist.h
similarity index 100%
rename from tweak/Sources/Features/Playlist/Playlist.h
rename to tweak/Sources/Native/Playlist/Playlist.h
diff --git a/tweak/Sources/Features/Playlist/Playlist.x b/tweak/Sources/Native/Playlist/Playlist.x
similarity index 100%
rename from tweak/Sources/Features/Playlist/Playlist.x
rename to tweak/Sources/Native/Playlist/Playlist.x
diff --git a/tweak/Sources/Features/Playlist/PlaylistSettings.m b/tweak/Sources/Native/Playlist/PlaylistSettings.m
similarity index 100%
rename from tweak/Sources/Features/Playlist/PlaylistSettings.m
rename to tweak/Sources/Native/Playlist/PlaylistSettings.m
diff --git a/tweak/Sources/Redesign/Kit/SGRBridges.h b/tweak/Sources/Redesigned/Kit/SGRBridges.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRBridges.h
rename to tweak/Sources/Redesigned/Kit/SGRBridges.h
diff --git a/tweak/Sources/Redesign/Kit/SGRBridges.x b/tweak/Sources/Redesigned/Kit/SGRBridges.x
similarity index 99%
rename from tweak/Sources/Redesign/Kit/SGRBridges.x
rename to tweak/Sources/Redesigned/Kit/SGRBridges.x
index ddd1c505..ade01d51 100644
--- a/tweak/Sources/Redesign/Kit/SGRBridges.x
+++ b/tweak/Sources/Redesigned/Kit/SGRBridges.x
@@ -2,7 +2,7 @@
// SGRBridges.h names the hooks and why they are the ones.
#import "Core/SGCore.h"
#import "Headers/SPTLinkDispatcherImplementation.h"
-#import "Features/NowPlaying/NowPlaying.h"
+#import "Native/Player/NowPlaying.h"
#import "SGRBridges.h"
#import "SGRedesign.h"
#import "SGRRestyle.h"
diff --git a/tweak/Sources/Redesign/Kit/SGRField.h b/tweak/Sources/Redesigned/Kit/SGRField.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRField.h
rename to tweak/Sources/Redesigned/Kit/SGRField.h
diff --git a/tweak/Sources/Redesign/Kit/SGRField.m b/tweak/Sources/Redesigned/Kit/SGRField.m
similarity index 99%
rename from tweak/Sources/Redesign/Kit/SGRField.m
rename to tweak/Sources/Redesigned/Kit/SGRField.m
index 348a3228..5c884511 100644
--- a/tweak/Sources/Redesign/Kit/SGRField.m
+++ b/tweak/Sources/Redesigned/Kit/SGRField.m
@@ -1,5 +1,5 @@
#import "Core/SGCore.h"
-#import "Features/Appearance/Appearance.h"
+#import "Native/Appearance/Appearance.h"
#import "SGRField.h"
#import "SGRPalette.h"
#import "SGRTokens.h"
diff --git a/tweak/Sources/Redesign/Kit/SGRGlass.h b/tweak/Sources/Redesigned/Kit/SGRGlass.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRGlass.h
rename to tweak/Sources/Redesigned/Kit/SGRGlass.h
diff --git a/tweak/Sources/Redesign/Kit/SGRGlass.m b/tweak/Sources/Redesigned/Kit/SGRGlass.m
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRGlass.m
rename to tweak/Sources/Redesigned/Kit/SGRGlass.m
diff --git a/tweak/Sources/Redesign/Kit/SGRGlyph.h b/tweak/Sources/Redesigned/Kit/SGRGlyph.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRGlyph.h
rename to tweak/Sources/Redesigned/Kit/SGRGlyph.h
diff --git a/tweak/Sources/Redesign/Kit/SGRGlyph.m b/tweak/Sources/Redesigned/Kit/SGRGlyph.m
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRGlyph.m
rename to tweak/Sources/Redesigned/Kit/SGRGlyph.m
diff --git a/tweak/Sources/Redesign/Kit/SGRKit.h b/tweak/Sources/Redesigned/Kit/SGRKit.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRKit.h
rename to tweak/Sources/Redesigned/Kit/SGRKit.h
diff --git a/tweak/Sources/Redesign/Kit/SGRPalette.h b/tweak/Sources/Redesigned/Kit/SGRPalette.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRPalette.h
rename to tweak/Sources/Redesigned/Kit/SGRPalette.h
diff --git a/tweak/Sources/Redesign/Kit/SGRPalette.m b/tweak/Sources/Redesigned/Kit/SGRPalette.m
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRPalette.m
rename to tweak/Sources/Redesigned/Kit/SGRPalette.m
diff --git a/tweak/Sources/Redesign/Kit/SGRRestyle.h b/tweak/Sources/Redesigned/Kit/SGRRestyle.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRRestyle.h
rename to tweak/Sources/Redesigned/Kit/SGRRestyle.h
diff --git a/tweak/Sources/Redesign/Kit/SGRRestyle.m b/tweak/Sources/Redesigned/Kit/SGRRestyle.m
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRRestyle.m
rename to tweak/Sources/Redesigned/Kit/SGRRestyle.m
diff --git a/tweak/Sources/Redesign/Kit/SGRTokens.h b/tweak/Sources/Redesigned/Kit/SGRTokens.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRTokens.h
rename to tweak/Sources/Redesigned/Kit/SGRTokens.h
diff --git a/tweak/Sources/Redesign/Kit/SGRTokens.m b/tweak/Sources/Redesigned/Kit/SGRTokens.m
similarity index 99%
rename from tweak/Sources/Redesign/Kit/SGRTokens.m
rename to tweak/Sources/Redesigned/Kit/SGRTokens.m
index 26436937..dd67acbb 100644
--- a/tweak/Sources/Redesign/Kit/SGRTokens.m
+++ b/tweak/Sources/Redesigned/Kit/SGRTokens.m
@@ -1,6 +1,6 @@
#import <CoreText/SFNTLayoutTypes.h>
#import "Core/SGCore.h"
-#import "Features/Appearance/Appearance.h"
+#import "Native/Appearance/Appearance.h"
#import "SGRTokens.h"
const CGFloat SGRSideMargin = 16;
diff --git a/tweak/Sources/Redesign/Kit/SGRedesign.h b/tweak/Sources/Redesigned/Kit/SGRedesign.h
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRedesign.h
rename to tweak/Sources/Redesigned/Kit/SGRedesign.h
diff --git a/tweak/Sources/Redesign/Kit/SGRedesign.m b/tweak/Sources/Redesigned/Kit/SGRedesign.m
similarity index 100%
rename from tweak/Sources/Redesign/Kit/SGRedesign.m
rename to tweak/Sources/Redesigned/Kit/SGRedesign.m
diff --git a/tweak/Sources/Features/Appearance/SearchField.x b/tweak/Sources/Redesigned/Navbar/SearchField.x
similarity index 99%
rename from tweak/Sources/Features/Appearance/SearchField.x
rename to tweak/Sources/Redesigned/Navbar/SearchField.x
index 29a4a5b9..642df45d 100644
--- a/tweak/Sources/Features/Appearance/SearchField.x
+++ b/tweak/Sources/Redesigned/Navbar/SearchField.x
@@ -12,7 +12,7 @@
// layout pass that styled it: both are then invisible on the glass until the next pass, a second or
// so later. So the two setters are refused for as long as the field is a capsule.
#import "Core/SGCore.h"
-#import "Appearance.h"
+#import "Native/Appearance/Appearance.h"
#import "Diagnostics/Diagnostics.h"
// Spotify's glyph view, resolved at runtime; declared on UIView so the call and the hook below
diff --git a/tweak/Sources/Features/Navbar/TabBar.x b/tweak/Sources/Redesigned/Navbar/TabBar.x
similarity index 99%
rename from tweak/Sources/Features/Navbar/TabBar.x
rename to tweak/Sources/Redesigned/Navbar/TabBar.x
index 2303150d..92b8ef20 100644
--- a/tweak/Sources/Features/Navbar/TabBar.x
+++ b/tweak/Sources/Redesigned/Navbar/TabBar.x
@@ -10,8 +10,8 @@
// Tree (trees/home.txt): NavigationUI_TabBarImpl.TabBarView > TabBarCompactView > UIStackView of
// ElementContentView<TabBarItemElement>, each with an SPTEncoreIconView and an SPTEncoreLabel.
#import "Core/SGCore.h"
-#import "Navbar.h"
-#import "Features/Appearance/Appearance.h"
+#import "Native/Navbar/Navbar.h"
+#import "Native/Appearance/Appearance.h"
#import "Settings/SGPage.h"
#import "Headers/SPTEncoreIconView.h"
#import <objc/message.h>
diff --git a/tweak/Sources/Features/NowPlaying/NowPlayingBar.x b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.x
similarity index 99%
rename from tweak/Sources/Features/NowPlaying/NowPlayingBar.x
rename to tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.x
index 39cb6df1..28a8ea22 100644
--- a/tweak/Sources/Features/NowPlaying/NowPlayingBar.x
+++ b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.x
@@ -11,7 +11,7 @@
// at {8,0} 386x56 > UIView 386x56 (the painted card) > artwork 40x40 r=4, title stack,
// progress line 370x2 at the bottom. The glass pane goes on the container's view.
#import "Core/SGCore.h"
-#import "NowPlaying.h"
+#import "Native/Player/NowPlaying.h"
static const CGFloat kCardRadius = 24;
static const NSTimeInterval kFadeOut = 0.12, kFadeIn = 0.2;
diff --git a/tweak/Sources/Redesign/Player/Player.h b/tweak/Sources/Redesigned/Player/Player.h
similarity index 100%
rename from tweak/Sources/Redesign/Player/Player.h
rename to tweak/Sources/Redesigned/Player/Player.h
diff --git a/tweak/Sources/Redesign/Player/PlayerArtwork.x b/tweak/Sources/Redesigned/Player/PlayerArtwork.x
similarity index 99%
rename from tweak/Sources/Redesign/Player/PlayerArtwork.x
rename to tweak/Sources/Redesigned/Player/PlayerArtwork.x
index 9e0567dc..0eb303b9 100644
--- a/tweak/Sources/Redesign/Player/PlayerArtwork.x
+++ b/tweak/Sources/Redesigned/Player/PlayerArtwork.x
@@ -11,7 +11,7 @@
// (NowPlaying_ECMKit.MaskView, 01.txt:86) and the cover under it has to match where it lands. Once
// the transition is over a paused cover springs down.
#import "Core/SGCore.h"
-#import "Redesign/Kit/SGRKit.h"
+#import "Redesigned/Kit/SGRKit.h"
#import "Player.h"
static const CGFloat kPausedScale = 0.84, kPausedScaleReduceMotion = 0.92;
diff --git a/tweak/Sources/Redesign/Player/PlayerCards.x b/tweak/Sources/Redesigned/Player/PlayerCards.x
similarity index 99%
rename from tweak/Sources/Redesign/Player/PlayerCards.x
rename to tweak/Sources/Redesigned/Player/PlayerCards.x
index e4de1caf..0205a155 100644
--- a/tweak/Sources/Redesign/Player/PlayerCards.x
+++ b/tweak/Sources/Redesigned/Player/PlayerCards.x
@@ -14,8 +14,8 @@
// cells of lists inside a card (WatchFeed's) name WatchFeed_ComponentAPI instead, so they are left to
// their card. The card's share button is id=lyrics-share-button (lyrics/01.txt:1009).
#import "Core/SGCore.h"
-#import "Redesign/Kit/SGRKit.h"
-#import "Features/Karaoke/Karaoke.h"
+#import "Redesigned/Kit/SGRKit.h"
+#import "Shared/Lyrics/Lyrics.h"
#import "Player.h"
// Below this a cell is collapsed, or still being laid out.
diff --git a/tweak/Sources/Redesign/Player/PlayerControls.x b/tweak/Sources/Redesigned/Player/PlayerControls.x
similarity index 99%
rename from tweak/Sources/Redesign/Player/PlayerControls.x
rename to tweak/Sources/Redesigned/Player/PlayerControls.x
index 30ea9cfc..5a4ce24b 100644
--- a/tweak/Sources/Redesign/Player/PlayerControls.x
+++ b/tweak/Sources/Redesigned/Player/PlayerControls.x
@@ -17,7 +17,7 @@
// is id=...-internal (:227). The sticky header has a play button of its own (:492), which a search
// inside the unit's view never reaches.
#import "Core/SGCore.h"
-#import "Redesign/Kit/SGRKit.h"
+#import "Redesigned/Kit/SGRKit.h"
#import "Player.h"
static const CGFloat kSkipGlyphSize = 32, kPlayGlyphSize = 44;
diff --git a/tweak/Sources/Redesign/Player/PlayerField.x b/tweak/Sources/Redesigned/Player/PlayerField.x
similarity index 99%
rename from tweak/Sources/Redesign/Player/PlayerField.x
rename to tweak/Sources/Redesigned/Player/PlayerField.x
index 4e306ca6..9caf836e 100644
--- a/tweak/Sources/Redesign/Player/PlayerField.x
+++ b/tweak/Sources/Redesigned/Player/PlayerField.x
@@ -16,7 +16,7 @@
// backgroundViewModel:didChangeColor:playerState:] (objc-methods.txt:57949).
#import "Core/SGCore.h"
#import "Settings/SGModPage.h"
-#import "Redesign/Kit/SGRKit.h"
+#import "Redesigned/Kit/SGRKit.h"
#import "Player.h"
// Past the plane's edges: above for the pull that dismisses the player, below for the bounce at the end
diff --git a/tweak/Sources/Redesign/Player/PlayerFooter.x b/tweak/Sources/Redesigned/Player/PlayerFooter.x
similarity index 99%
rename from tweak/Sources/Redesign/Player/PlayerFooter.x
rename to tweak/Sources/Redesigned/Player/PlayerFooter.x
index 954f73ff..02b0a1ef 100644
--- a/tweak/Sources/Redesign/Player/PlayerFooter.x
+++ b/tweak/Sources/Redesigned/Player/PlayerFooter.x
@@ -16,7 +16,7 @@
// id=QueueButtonNowPlaying 47x32. The card's button is id=lyrics-expand-button, an EncoreButton, which
// is a UIButton (trees/clean/lyrics/01.txt:1013, objc-meta-Spotify.txt:216095).
#import "Core/SGCore.h"
-#import "Redesign/Kit/SGRKit.h"
+#import "Redesigned/Kit/SGRKit.h"
#import "Player.h"
static const CGFloat kLyricsGlyphSize = 20;
diff --git a/tweak/Sources/Redesign/Player/PlayerHeader.x b/tweak/Sources/Redesigned/Player/PlayerHeader.x
similarity index 98%
rename from tweak/Sources/Redesign/Player/PlayerHeader.x
rename to tweak/Sources/Redesigned/Player/PlayerHeader.x
index b5241982..7afe69fa 100644
--- a/tweak/Sources/Redesign/Player/PlayerHeader.x
+++ b/tweak/Sources/Redesigned/Player/PlayerHeader.x
@@ -17,7 +17,7 @@
// id=now-playing-minimize-button 48x48 (:103) and id=Context menu 48x48 (:122), the playlist name
// between them.
#import "Core/SGCore.h"
-#import "Redesign/Kit/SGRKit.h"
+#import "Redesigned/Kit/SGRKit.h"
#import "Player.h"
static char kGlassKey, kCloseKey, kMoreKey;
diff --git a/tweak/Sources/Settings/SGModPage.m b/tweak/Sources/Settings/SGModPage.m
index 13d9db7d..389bd9fa 100644
--- a/tweak/Sources/Settings/SGModPage.m
+++ b/tweak/Sources/Settings/SGModPage.m
@@ -2,10 +2,10 @@
#import "SGPageStyle.h"
#import "SGGlowSwitch.h"
#import "Core/SGCore.h"
-#import "Features/Flags/Flags.h"
-#import "Features/About/About.h"
-#import "Features/AdBlock/AdBlock.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Shared/Flags/Flags.h"
+#import "Shared/About/About.h"
+#import "Shared/AdBlock/AdBlock.h"
+#import "Redesigned/Kit/SGRedesign.h"
NSString *const SGRestartNote = @"Changes apply after you restart Spotify.";
diff --git a/tweak/Sources/Settings/SGPageStyle.m b/tweak/Sources/Settings/SGPageStyle.m
index 2b54da97..00399d6c 100644
--- a/tweak/Sources/Settings/SGPageStyle.m
+++ b/tweak/Sources/Settings/SGPageStyle.m
@@ -1,6 +1,6 @@
#import "SGPageStyle.h"
#import "Core/SGCore.h"
-#import "Features/Appearance/Appearance.h"
+#import "Native/Appearance/Appearance.h"
static UIFont *sg_titleFont, *sg_subtitleFont;
diff --git a/tweak/Sources/Features/About/About.h b/tweak/Sources/Shared/About/About.h
similarity index 100%
rename from tweak/Sources/Features/About/About.h
rename to tweak/Sources/Shared/About/About.h
diff --git a/tweak/Sources/Features/About/AboutSettings.m b/tweak/Sources/Shared/About/AboutSettings.m
similarity index 98%
rename from tweak/Sources/Features/About/AboutSettings.m
rename to tweak/Sources/Shared/About/AboutSettings.m
index 1ce3ddcd..0920d0ef 100644
--- a/tweak/Sources/Features/About/AboutSettings.m
+++ b/tweak/Sources/Shared/About/AboutSettings.m
@@ -1,7 +1,7 @@
#import "Core/SGCore.h"
#import "Settings/SGPageStyle.h"
#import "About.h"
-#import "Features/Onboarding/Onboarding.h"
+#import "App/Onboarding/Onboarding.h"
// Every key of the mod's is under one prefix, so a reset is a sweep of the defaults with the stock
// marker of SGPrefs.h left behind; the hooks read them at launch, so it ends in a restart.
diff --git a/tweak/Sources/Features/About/Backup.m b/tweak/Sources/Shared/About/Backup.m
similarity index 100%
rename from tweak/Sources/Features/About/Backup.m
rename to tweak/Sources/Shared/About/Backup.m
diff --git a/tweak/Sources/Features/About/Signing.m b/tweak/Sources/Shared/About/Signing.m
similarity index 99%
rename from tweak/Sources/Features/About/Signing.m
rename to tweak/Sources/Shared/About/Signing.m
index 9fdf6621..73cd600a 100644
--- a/tweak/Sources/Features/About/Signing.m
+++ b/tweak/Sources/Shared/About/Signing.m
@@ -9,7 +9,7 @@
#import "Core/SGCore.h"
#import "Settings/SGPageStyle.h"
#import "About.h"
-#import "Features/Onboarding/Onboarding.h"
+#import "App/Onboarding/Onboarding.h"
#import <dlfcn.h>
NSString *const SGSigningHelpURL = @"https://github.com/skopevoj/spoti.pw#signing-it-yourself";
diff --git a/tweak/Sources/Features/About/Update.m b/tweak/Sources/Shared/About/Update.m
similarity index 100%
rename from tweak/Sources/Features/About/Update.m
rename to tweak/Sources/Shared/About/Update.m
diff --git a/tweak/Sources/Features/AdBlock/AdBlock.h b/tweak/Sources/Shared/AdBlock/AdBlock.h
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdBlock.h
rename to tweak/Sources/Shared/AdBlock/AdBlock.h
diff --git a/tweak/Sources/Features/AdBlock/AdBlock.m b/tweak/Sources/Shared/AdBlock/AdBlock.m
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdBlock.m
rename to tweak/Sources/Shared/AdBlock/AdBlock.m
diff --git a/tweak/Sources/Features/AdBlock/AdBlockSettings.m b/tweak/Sources/Shared/AdBlock/AdBlockSettings.m
similarity index 99%
rename from tweak/Sources/Features/AdBlock/AdBlockSettings.m
rename to tweak/Sources/Shared/AdBlock/AdBlockSettings.m
index 96a6113d..7a4911fb 100644
--- a/tweak/Sources/Features/AdBlock/AdBlockSettings.m
+++ b/tweak/Sources/Shared/AdBlock/AdBlockSettings.m
@@ -1,6 +1,6 @@
#import "Settings/SGModPage.h"
#import "AdBlock.h"
-#import "Features/Privacy/Privacy.h"
+#import "Shared/Privacy/Privacy.h"
NSString *const SGFakePremiumWarning = @"This is the part of EeveeSpotify Spotify's takedown went after, and it has not been tested here. It can end in a forced logout or worse for the account. A Premium account gains nothing from it.";
diff --git a/tweak/Sources/Features/AdBlock/AdHubs.x b/tweak/Sources/Shared/AdBlock/AdHubs.x
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdHubs.x
rename to tweak/Sources/Shared/AdBlock/AdHubs.x
diff --git a/tweak/Sources/Features/AdBlock/AdNetwork.x b/tweak/Sources/Shared/AdBlock/AdNetwork.x
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdNetwork.x
rename to tweak/Sources/Shared/AdBlock/AdNetwork.x
diff --git a/tweak/Sources/Features/AdBlock/AdPopups.x b/tweak/Sources/Shared/AdBlock/AdPopups.x
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdPopups.x
rename to tweak/Sources/Shared/AdBlock/AdPopups.x
diff --git a/tweak/Sources/Features/AdBlock/AdServices.x b/tweak/Sources/Shared/AdBlock/AdServices.x
similarity index 100%
rename from tweak/Sources/Features/AdBlock/AdServices.x
rename to tweak/Sources/Shared/AdBlock/AdServices.x
diff --git a/tweak/Sources/Features/AdBlock/Crossfade.x b/tweak/Sources/Shared/AdBlock/Crossfade.x
similarity index 100%
rename from tweak/Sources/Features/AdBlock/Crossfade.x
rename to tweak/Sources/Shared/AdBlock/Crossfade.x
diff --git a/tweak/Sources/Features/AdBlock/Feeds.m b/tweak/Sources/Shared/AdBlock/Feeds.m
similarity index 100%
rename from tweak/Sources/Features/AdBlock/Feeds.m
rename to tweak/Sources/Shared/AdBlock/Feeds.m
diff --git a/tweak/Sources/Features/AdBlock/Premium.m b/tweak/Sources/Shared/AdBlock/Premium.m
similarity index 100%
rename from tweak/Sources/Features/AdBlock/Premium.m
rename to tweak/Sources/Shared/AdBlock/Premium.m
diff --git a/tweak/Sources/Features/AdBlock/Protobuf.h b/tweak/Sources/Shared/AdBlock/Protobuf.h
similarity index 100%
rename from tweak/Sources/Features/AdBlock/Protobuf.h
rename to tweak/Sources/Shared/AdBlock/Protobuf.h
diff --git a/tweak/Sources/Features/AdBlock/Protobuf.m b/tweak/Sources/Shared/AdBlock/Protobuf.m
similarity index 100%
rename from tweak/Sources/Features/AdBlock/Protobuf.m
rename to tweak/Sources/Shared/AdBlock/Protobuf.m
diff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlock.h b/tweak/Sources/Shared/ArtistBlock/ArtistBlock.h
similarity index 100%
rename from tweak/Sources/Features/ArtistBlock/ArtistBlock.h
rename to tweak/Sources/Shared/ArtistBlock/ArtistBlock.h
diff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlock.m b/tweak/Sources/Shared/ArtistBlock/ArtistBlock.m
similarity index 100%
rename from tweak/Sources/Features/ArtistBlock/ArtistBlock.m
rename to tweak/Sources/Shared/ArtistBlock/ArtistBlock.m
diff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlockSettings.m b/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.m
similarity index 100%
rename from tweak/Sources/Features/ArtistBlock/ArtistBlockSettings.m
rename to tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.m
diff --git a/tweak/Sources/Features/ArtistBlock/ArtistSkip.x b/tweak/Sources/Shared/ArtistBlock/ArtistSkip.x
similarity index 100%
rename from tweak/Sources/Features/ArtistBlock/ArtistSkip.x
rename to tweak/Sources/Shared/ArtistBlock/ArtistSkip.x
diff --git a/tweak/Sources/Features/Flags/FlagPages.m b/tweak/Sources/Shared/Flags/FlagPages.m
similarity index 100%
rename from tweak/Sources/Features/Flags/FlagPages.m
rename to tweak/Sources/Shared/Flags/FlagPages.m
diff --git a/tweak/Sources/Features/Flags/Flags.h b/tweak/Sources/Shared/Flags/Flags.h
similarity index 100%
rename from tweak/Sources/Features/Flags/Flags.h
rename to tweak/Sources/Shared/Flags/Flags.h
diff --git a/tweak/Sources/Features/Flags/Flags.x b/tweak/Sources/Shared/Flags/Flags.x
similarity index 96%
rename from tweak/Sources/Features/Flags/Flags.x
rename to tweak/Sources/Shared/Flags/Flags.x
index 53a40036..197c0c5c 100644
--- a/tweak/Sources/Features/Flags/Flags.x
+++ b/tweak/Sources/Shared/Flags/Flags.x
@@ -5,9 +5,9 @@
// it ships switched off and Redesigned UI turns on.
#import "Core/SGCore.h"
#import "Flags.h"
-#import "Features/AdBlock/AdBlock.h"
-#import "Features/LyricsSources/LyricsSources.h"
-#import "Redesign/Kit/SGRedesign.h"
+#import "Shared/AdBlock/AdBlock.h"
+#import "Shared/LyricsSources/LyricsSources.h"
+#import "Redesigned/Kit/SGRedesign.h"
BOOL SGGlassOwnsFlag(NSString *key) {
static NSSet<NSString *> *owned;
diff --git a/tweak/Sources/Features/Flags/FlagsPage.m b/tweak/Sources/Shared/Flags/FlagsPage.m
similarity index 100%
rename from tweak/Sources/Features/Flags/FlagsPage.m
rename to tweak/Sources/Shared/Flags/FlagsPage.m
diff --git a/tweak/Sources/Features/Gestures/GestureZones.m b/tweak/Sources/Shared/Gestures/GestureZones.m
similarity index 100%
rename from tweak/Sources/Features/Gestures/GestureZones.m
rename to tweak/Sources/Shared/Gestures/GestureZones.m
diff --git a/tweak/Sources/Features/Gestures/Gestures.h b/tweak/Sources/Shared/Gestures/Gestures.h
similarity index 100%
rename from tweak/Sources/Features/Gestures/Gestures.h
rename to tweak/Sources/Shared/Gestures/Gestures.h
diff --git a/tweak/Sources/Features/Gestures/Gestures.x b/tweak/Sources/Shared/Gestures/Gestures.x
similarity index 100%
rename from tweak/Sources/Features/Gestures/Gestures.x
rename to tweak/Sources/Shared/Gestures/Gestures.x
diff --git a/tweak/Sources/Features/Gestures/GesturesSettings.m b/tweak/Sources/Shared/Gestures/GesturesSettings.m
similarity index 100%
rename from tweak/Sources/Features/Gestures/GesturesSettings.m
rename to tweak/Sources/Shared/Gestures/GesturesSettings.m
diff --git a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.h b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h
similarity index 100%
rename from tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.h
rename to tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h
diff --git a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.x b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.x
similarity index 99%
rename from tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.x
rename to tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.x
index 12e04071..0bde386d 100644
--- a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.x
+++ b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.x
@@ -3,7 +3,7 @@
#import <MediaPlayer/MediaPlayer.h>
#import "Core/SGCore.h"
#import "LockScreenLyrics.h"
-#import "Features/Karaoke/Karaoke.h"
+#import "Shared/Lyrics/Lyrics.h"
#import "Headers/SPTPlayer.h"
static const NSTimeInterval kTick = 0.25;
diff --git a/tweak/Sources/Features/Karaoke/KaraokeSource.x b/tweak/Sources/Shared/Lyrics/KaraokeSource.x
similarity index 98%
rename from tweak/Sources/Features/Karaoke/KaraokeSource.x
rename to tweak/Sources/Shared/Lyrics/KaraokeSource.x
index fb33f395..8b240800 100644
--- a/tweak/Sources/Features/Karaoke/KaraokeSource.x
+++ b/tweak/Sources/Shared/Lyrics/KaraokeSource.x
@@ -5,9 +5,9 @@
// With a source of the mod's on, the color-lyrics body is Features/LyricsSources' to answer and it
// hands the lines over.
#import "Core/SGCore.h"
-#import "Karaoke.h"
-#import "Features/LockScreenLyrics/LockScreenLyrics.h"
-#import "Features/LyricsSources/LyricsSources.h"
+#import "Lyrics.h"
+#import "Shared/LockScreenLyrics/LockScreenLyrics.h"
+#import "Shared/LyricsSources/LyricsSources.h"
#import "Headers/SPTPlayer.h"
static const NSUInteger kKeptTracks = 40;
diff --git a/tweak/Sources/Features/Karaoke/KaraokeTiming.m b/tweak/Sources/Shared/Lyrics/KaraokeTiming.m
similarity index 99%
rename from tweak/Sources/Features/Karaoke/KaraokeTiming.m
rename to tweak/Sources/Shared/Lyrics/KaraokeTiming.m
index 4b496c83..d7d23711 100644
--- a/tweak/Sources/Features/Karaoke/KaraokeTiming.m
+++ b/tweak/Sources/Shared/Lyrics/KaraokeTiming.m
@@ -1,5 +1,5 @@
-#import "Karaoke.h"
-#import "Features/AdBlock/Protobuf.h"
+#import "Lyrics.h"
+#import "Shared/AdBlock/Protobuf.h"
@implementation SGKaraokeWord
@end
diff --git a/tweak/Sources/Features/Karaoke/Karaoke.h b/tweak/Sources/Shared/Lyrics/Lyrics.h
similarity index 100%
rename from tweak/Sources/Features/Karaoke/Karaoke.h
rename to tweak/Sources/Shared/Lyrics/Lyrics.h
diff --git a/tweak/Sources/Features/LyricsSources/BiniLyrics.m b/tweak/Sources/Shared/LyricsSources/BiniLyrics.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/BiniLyrics.m
rename to tweak/Sources/Shared/LyricsSources/BiniLyrics.m
diff --git a/tweak/Sources/Features/LyricsSources/LrcLib.m b/tweak/Sources/Shared/LyricsSources/LrcLib.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/LrcLib.m
rename to tweak/Sources/Shared/LyricsSources/LrcLib.m
diff --git a/tweak/Sources/Features/LyricsSources/LyricsHook.x b/tweak/Sources/Shared/LyricsSources/LyricsHook.x
similarity index 99%
rename from tweak/Sources/Features/LyricsSources/LyricsHook.x
rename to tweak/Sources/Shared/LyricsSources/LyricsHook.x
index 0ca7fd75..fa6e3786 100644
--- a/tweak/Sources/Features/LyricsSources/LyricsHook.x
+++ b/tweak/Sources/Shared/LyricsSources/LyricsHook.x
@@ -31,7 +31,7 @@
// for the lyrics as it would for any track, and the reply is answered as above.
#import "Core/SGCore.h"
#import "LyricsSources.h"
-#import "Features/AdBlock/Protobuf.h"
+#import "Shared/AdBlock/Protobuf.h"
#import "Headers/SPTPlayer.h"
// Blinding Lights, The Weeknd: lyrics in every market Spotify serves them in.
diff --git a/tweak/Sources/Features/LyricsSources/LyricsSources.h b/tweak/Sources/Shared/LyricsSources/LyricsSources.h
similarity index 99%
rename from tweak/Sources/Features/LyricsSources/LyricsSources.h
rename to tweak/Sources/Shared/LyricsSources/LyricsSources.h
index 3aa44b2e..bd935822 100644
--- a/tweak/Sources/Features/LyricsSources/LyricsSources.h
+++ b/tweak/Sources/Shared/LyricsSources/LyricsSources.h
@@ -6,7 +6,7 @@
// SGTTML.m reads the TTML that Apple Music's own lyrics are written in, which is what BiniLyrics and
// Unison serve; it is the only shape carrying a second voice and the (oh, aye) sung under a line.
#import <UIKit/UIKit.h>
-#import "Features/Karaoke/Karaoke.h"
+#import "Shared/Lyrics/Lyrics.h"
// The sources in the order they are asked, as their keys. Unset means the order below, so a source
// added in a later version joins the end of everyone's list instead of shuffling it.
diff --git a/tweak/Sources/Features/LyricsSources/LyricsSources.m b/tweak/Sources/Shared/LyricsSources/LyricsSources.m
similarity index 99%
rename from tweak/Sources/Features/LyricsSources/LyricsSources.m
rename to tweak/Sources/Shared/LyricsSources/LyricsSources.m
index 028de9c3..abd20ffc 100644
--- a/tweak/Sources/Features/LyricsSources/LyricsSources.m
+++ b/tweak/Sources/Shared/LyricsSources/LyricsSources.m
@@ -9,7 +9,7 @@
// when those above it had nothing timed, and then only for what they lacked.
#import "Core/SGCore.h"
#import "LyricsSources.h"
-#import "Features/Karaoke/Karaoke.h"
+#import "Shared/Lyrics/Lyrics.h"
#import "Headers/SPTPlayer.h"
static const NSTimeInterval kTimeout = 6;
diff --git a/tweak/Sources/Features/LyricsSources/LyricsSourcesPage.m b/tweak/Sources/Shared/LyricsSources/LyricsSourcesPage.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/LyricsSourcesPage.m
rename to tweak/Sources/Shared/LyricsSources/LyricsSourcesPage.m
diff --git a/tweak/Sources/Features/LyricsSources/Musixmatch.m b/tweak/Sources/Shared/LyricsSources/Musixmatch.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/Musixmatch.m
rename to tweak/Sources/Shared/LyricsSources/Musixmatch.m
diff --git a/tweak/Sources/Features/LyricsSources/NetEase.m b/tweak/Sources/Shared/LyricsSources/NetEase.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/NetEase.m
rename to tweak/Sources/Shared/LyricsSources/NetEase.m
diff --git a/tweak/Sources/Features/LyricsSources/SGTTML.m b/tweak/Sources/Shared/LyricsSources/SGTTML.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/SGTTML.m
rename to tweak/Sources/Shared/LyricsSources/SGTTML.m
diff --git a/tweak/Sources/Features/LyricsSources/Unison.m b/tweak/Sources/Shared/LyricsSources/Unison.m
similarity index 100%
rename from tweak/Sources/Features/LyricsSources/Unison.m
rename to tweak/Sources/Shared/LyricsSources/Unison.m
diff --git a/tweak/Sources/Features/Navigation/PageTransition.x b/tweak/Sources/Shared/Navigation/PageTransition.x
similarity index 100%
rename from tweak/Sources/Features/Navigation/PageTransition.x
rename to tweak/Sources/Shared/Navigation/PageTransition.x
diff --git a/tweak/Sources/Features/Privacy/Privacy.h b/tweak/Sources/Shared/Privacy/Privacy.h
similarity index 100%
rename from tweak/Sources/Features/Privacy/Privacy.h
rename to tweak/Sources/Shared/Privacy/Privacy.h
diff --git a/tweak/Sources/Features/Privacy/Privacy.x b/tweak/Sources/Shared/Privacy/Privacy.x
similarity index 100%
rename from tweak/Sources/Features/Privacy/Privacy.x
rename to tweak/Sources/Shared/Privacy/Privacy.x
diff --git a/tweak/Sources/Features/Privacy/PrivacySettings.m b/tweak/Sources/Shared/Privacy/PrivacySettings.m
similarity index 100%
rename from tweak/Sources/Features/Privacy/PrivacySettings.m
rename to tweak/Sources/Shared/Privacy/PrivacySettings.m