Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.
Kotlin alternativeandroidandroid-applicationclientglassmorphisminnertubelibrespotliquid-glassspotifyspotify-connectspotifyapiyoutube-musicyoutube-playerytdlnis
Keep the glass out of the layer it samples
Lelonioaea45102fe51
diff --git a/.claude/settings.local.json b/.claude/settings.local.jsonindex b2ba98b..b02912c 100644--- a/.claude/settings.local.json+++ b/.claude/settings.local.json@@ -113,7 +113,8 @@"Bash(git commit -q -m 'Cap concurrent track lookups and retry the dropped ones *)","Bash(git commit -q -m 'Read playlists through the Web API, and keep them *)","Bash(git commit -q -m 'A draggable scrollbar, and sorting by when tracks were added *)",- "Bash(git commit -q -m 'Track menus, a page-coloured glass, and a remembered sort *)"+ "Bash(git commit -q -m 'Track menus, a page-coloured glass, and a remembered sort *)",+ "Bash(git commit -q -m 'Keep the glass out of the layer it samples *)"]}}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.bin b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.binindex 7956ea8..ceed55d 100644--- a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.bin+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.bin@@ -2,27 +2,27 @@ C/C++ Structured Logljh/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/additional_project_files.txtCA-?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint ي���3 ����3i+?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint �����3 ����3ig-e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.json ي���3� ����3n+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.json �����3� ����3nl-j/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.json ي���3� �����3[+j/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.json �����3� �����3[Y-W/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja ي���3�� ����3_+W/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja �����3�� ����3_]-[/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja.txt ي���3d+[/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja.txt �����3db-`/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txt ي���3 @ ����3e+`/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txt �����3 @ ����3ec-a/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json ي���3�� ����3i+a/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json �����3�� ����3ig-e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.bin ي���3 �" ����3o+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.bin �����3 �" ����3om-k/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txt ي���3+k/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txt �����3� ����3b`-^/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.json ي���3 ( ����3g+^/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.json �����3 ( ����3ge-c/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txt ي���3 b ����3D+c/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txt �����3 b ����3DB-@/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt ي���3 � �Ȅ��3\ No newline at end of file+@/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt �����3 � �Ȅ��3\ No newline at end of filediff --git a/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.ktindex 74316a9..cd1adf7 100644--- a/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.kt+++ b/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.kt@@ -133,28 +133,36 @@ fun PlaylistScreen(// Not the app's backdrop: that is the blurred cover of whatever is playing,// so the buttons here — back, play, shuffle, search — picked up the colour// of an unrelated track while the page around them was tinted from this- // cover. Recording this screen instead makes them glass over *this* page.+ // cover.val pageBackdrop = rememberLayerBackdrop()- Box(- Modifier- .fillMaxSize()- .layerBackdrop(pageBackdrop)- // Opaque, so the app-wide blurred artwork of the playing track does- // not show through and re-tint the page.- .background(- Brush.verticalGradient(- // Held flat over the top half rather than falling away- // immediately: the header has to end on the same colour the- // page starts with, and the list scrolls, so the meeting- // point moves. A slow gradient makes that seam impossible- // to catch.- 0f to pageColor,- 0.45f to pageColor,- 1f to PageFloor,- ),- ),- ) {+ Box(Modifier.fillMaxSize()) {+ // The page colour, and only the page colour.+ //+ // The layer has to hold nothing that samples it. Recording the whole+ // screen — content included — put the glass buttons inside the layer+ // those same buttons draw from, and the render tree recursed until it+ // overflowed the stack. Every one of them lives above this box.+ Box(+ Modifier+ .fillMaxSize()+ // Opaque, so the app-wide blurred artwork of the playing track+ // does not show through and re-tint the page.+ .background(+ Brush.verticalGradient(+ // Held flat over the top half rather than falling away+ // immediately: the header has to end on the same colour+ // the page starts with, and the list scrolls, so the+ // meeting point moves. A slow gradient makes that seam+ // impossible to catch.+ 0f to pageColor,+ 0.45f to pageColor,+ 1f to PageFloor,+ ),+ )+ .layerBackdrop(pageBackdrop),+ )+// No top content padding: the hero runs under the status bar, which is// the whole point of the layout — the picture is the top of the screen,// not something sitting below a gap.