Skip to content

Native Android client for Spotify, built with Jetpack Compose

Bottom bar: the fade stays the default; solid black is the option

kota-zo85c297f4845a
diff --git a/base/app/src/main/java/com/music/spotui/data/preferences/SettingsPref.kt b/base/app/src/main/java/com/music/spotui/data/preferences/SettingsPref.kt
index 96840260..bf709458 100644
--- a/base/app/src/main/java/com/music/spotui/data/preferences/SettingsPref.kt
+++ b/base/app/src/main/java/com/music/spotui/data/preferences/SettingsPref.kt
@@ -18,10 +18,10 @@ fun setLyricsExtraSources(c: Context, v: Boolean) = prefs(c).edit().putBoolean(K
private fun prefs(c: Context) = c.getSharedPreferences(PREF, Context.MODE_PRIVATE)
-/** The bottom bar: solid black (the default), or fading into the list. Read by the bar as state. */
+/** The bottom bar: fading into the list (the default), or solid black. Read by the bar as state. */
object SolidNavBar {
private const val KEY = "solid_nav_bar"
- var on by androidx.compose.runtime.mutableStateOf(prefs(com.music.spotui.di.Graph.app).getBoolean(KEY, true))
+ var on by androidx.compose.runtime.mutableStateOf(prefs(com.music.spotui.di.Graph.app).getBoolean(KEY, false))
private set
fun set(c: Context, value: Boolean) {
diff --git a/base/app/src/main/java/com/music/spotui/ui/navigation/MainBottomNavigation.kt b/base/app/src/main/java/com/music/spotui/ui/navigation/MainBottomNavigation.kt
index 2c98e691..499debea 100644
--- a/base/app/src/main/java/com/music/spotui/ui/navigation/MainBottomNavigation.kt
+++ b/base/app/src/main/java/com/music/spotui/ui/navigation/MainBottomNavigation.kt
@@ -76,7 +76,7 @@ fun MainBottomNavigation(navController: NavHostController, bottomBarState: Mutab
contentAlignment = Alignment.BottomCenter,
modifier = Modifier
.fillMaxWidth()
- // Settings, Display: solid black (the default, from #15), or the fade over the list.
+ // Settings, Display: the fade over the list (the default), or solid black (from #15).
.then(
if (com.music.spotui.data.preferences.SolidNavBar.on) Modifier.background(Color.Black)
else Modifier.background(Brush.verticalGradient(colors = listOf(Color.Transparent, Color.Black), startY = 0f))