Skip to content

Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.

Put the tab bar's effects back

Lelonio373c5bb68d3d
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 72a7f00..fec3cf4 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -152,7 +152,8 @@
"Bash(unzip -o -q classes.jar -d cls)",
"Bash(javap -classpath cls com.kyant.backdrop.backdrops.CanvasBackdropKt com.kyant.backdrop.backdrops.LayerBackdropKt com.kyant.backdrop.backdrops.BackdropKt)",
"Bash(sed -i '' 's/ if \\(sheetsOpen\\) Modifier.layerBackdrop\\(overlayBackdrop\\)/ if \\(sheetsOpen || sheetsRecording\\) Modifier.layerBackdrop\\(overlayBackdrop\\)/' app/src/main/java/dev/emanuele/spot/ui/SpotApp.kt)",
- "Bash(./gradlew :app:assembleRelease :app:assembleDebug -q)"
+ "Bash(./gradlew :app:assembleRelease :app:assembleDebug -q)",
+ "Bash(git apply *)"
]
}
}
diff --git a/app/.cxx/Debug/286k5v33/arm64-v8a/configure_fingerprint.bin b/app/.cxx/Debug/286k5v33/arm64-v8a/configure_fingerprint.bin
index 2eda7a2..5e31699 100644
--- a/app/.cxx/Debug/286k5v33/arm64-v8a/configure_fingerprint.bin
+++ b/app/.cxx/Debug/286k5v33/arm64-v8a/configure_fingerprint.bin
@@ -2,27 +2,27 @@ C/C++ Structured Logc
a
_/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/additional_project_files.txtC
A
-?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ɜ���3  ��߈�3`
+?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  �����3  ��߈�3`
^
-\/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/android_gradle_build.json  ɜ���3� ��߈�3e
+\/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/android_gradle_build.json  �����3� ��߈�3e
c
-a/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/android_gradle_build_mini.json  ɜ���3� ��߈�3R
+a/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/android_gradle_build_mini.json  �����3� ��߈�3R
P
-N/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build.ninja  ʜ���3� ��߈�3V
+N/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build.ninja  �����3� ��߈�3V
T
-R/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build.ninja.txt  ʜ���3[
+R/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build.ninja.txt  �����3[
Y
-W/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build_file_index.txt  ʜ���3 @ ��߈�3\
+W/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/build_file_index.txt  �����3 @ ��߈�3\
Z
-X/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/compile_commands.json  ʜ���3֚ ��߈�3`
+X/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/compile_commands.json  �����3֚ ��߈�3`
^
-\/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/compile_commands.json.bin  ʜ���3 �" ��߈�3f
+\/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/compile_commands.json.bin  �����3 �" ��߈�3f
d
-b/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/metadata_generation_command.txt  ʜ���3
+b/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/metadata_generation_command.txt  �����3
� ��߈�3Y
W
-U/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/prefab_config.json  ʜ���3  ( ��߈�3^
+U/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/prefab_config.json  �����3  ( ��߈�3^
\
-Z/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/symbol_folder_index.txt  ˜���3  Y ��߈�3D
+Z/Users/emanuele/Progetto Spotify/app/.cxx/Debug/286k5v33/arm64-v8a/symbol_folder_index.txt  �����3  Y ��߈�3D
B
-@/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 file
diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt
index 95bff7d..ab5c269 100644
--- a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt
+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt
@@ -223,25 +223,14 @@ fun LiquidBottomTabs(
.drawBackdrop(
backdrop = backdrop,
shape = { Capsule() },
- // LOCAL CHANGE: only while pressed.
- //
- // This copy of the row is drawn at alpha 0 and exists to
- // feed the indicator; its glass is visible only through
- // the indicator, which is itself only lit while a finger
- // is down. Upstream blurs and refracts it on every frame
- // regardless, which is a second full pass over the bar
- // for something nobody can see — about a millisecond of
- // GPU per frame, spent while scrolling a list.
effects = {
val progress = dampedDragAnimation.pressProgress
- if (progress > 0f) {
- vibrancy()
- blur(8f.dp.toPx())
- lens(
- lensDepth.toPx() * progress,
- lensDepth.toPx() * progress
- )
- }
+ vibrancy()
+ blur(8f.dp.toPx())
+ lens(
+ lensDepth.toPx() * progress,
+ lensDepth.toPx() * progress
+ )
},
highlight = {
val progress = dampedDragAnimation.pressProgress
@@ -272,18 +261,13 @@ fun LiquidBottomTabs(
.drawBackdrop(
backdrop = rememberCombinedBackdrop(backdrop, tabsBackdrop),
shape = { Capsule() },
- // LOCAL CHANGE: same reason as the row above. At rest the
- // refraction amount is zero, so the shader was running over
- // the indicator to displace nothing.
effects = {
val progress = dampedDragAnimation.pressProgress
- if (progress > 0f) {
- lens(
- 10f.dp.toPx() * progress,
- 14f.dp.toPx() * progress,
- chromaticAberration = true
- )
- }
+ lens(
+ 10f.dp.toPx() * progress,
+ 14f.dp.toPx() * progress,
+ chromaticAberration = true
+ )
},
highlight = {
val progress = dampedDragAnimation.pressProgress