StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
refactor(settings): replace bulky sign-out card with trailing DriveAccountRow
Celtiore8d5cfaa78e9f
diff --git a/app/src/main/java/com/streamvault/app/ui/screens/settings/SettingsBackupAboutSections.kt b/app/src/main/java/com/streamvault/app/ui/screens/settings/SettingsBackupAboutSections.ktindex e6bbbbc8..dfc81612 100644--- a/app/src/main/java/com/streamvault/app/ui/screens/settings/SettingsBackupAboutSections.kt+++ b/app/src/main/java/com/streamvault/app/ui/screens/settings/SettingsBackupAboutSections.kt@@ -22,6 +22,7 @@ import androidx.tv.material3.Textimport com.streamvault.app.BuildConfigimport com.streamvault.app.Rimport com.streamvault.app.ui.interaction.TvClickableSurface+import com.streamvault.app.ui.theme.OnSurfaceimport com.streamvault.app.ui.theme.OnSurfaceDimimport com.streamvault.app.ui.theme.Primaryimport com.streamvault.app.ui.theme.Secondary@@ -101,6 +102,10 @@ internal fun LazyListScope.settingsDriveBackupSection(val accountLabel = auth.account.email?: auth.account.displayName?: stringResource(R.string.settings_drive_signin)+ DriveAccountRow(+ accountLabel = accountLabel,+ onSignOut = onSignOut+ )Row(horizontalArrangement = Arrangement.spacedBy(16.dp),modifier = Modifier.fillMaxWidth()@@ -122,20 +127,47 @@ internal fun LazyListScope.settingsDriveBackupSection(modifier = Modifier.weight(1f))}- BackupActionCard(- icon = "✕",- title = stringResource(R.string.settings_drive_signout),- subtitle = accountLabel,- accent = OnSurfaceDim,- onClick = onSignOut,- modifier = Modifier.fillMaxWidth()- )}}}}}+private fun DriveAccountRow(+ accountLabel: String,+ onSignOut: () -> Unit+) {+ Row(+ modifier = Modifier.fillMaxWidth(),+ verticalAlignment = Alignment.CenterVertically+ ) {+ Text(+ text = accountLabel,+ style = MaterialTheme.typography.bodyLarge,+ color = OnSurface,+ fontWeight = FontWeight.Medium,+ modifier = Modifier.weight(1f)+ )+ TvClickableSurface(+ onClick = onSignOut,+ shape = ClickableSurfaceDefaults.shape(RoundedCornerShape(10.dp)),+ colors = ClickableSurfaceDefaults.colors(+ containerColor = Color.White.copy(alpha = 0.06f),+ focusedContainerColor = Color.White.copy(alpha = 0.18f)+ ),+ scale = ClickableSurfaceDefaults.scale(focusedScale = 1f)+ ) {+ Text(+ text = stringResource(R.string.settings_drive_signout),+ modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp),+ style = MaterialTheme.typography.labelLarge,+ color = OnSurface+ )+ }+ }+}+@androidx.compose.runtime.Composableprivate fun BackupActionCard(icon: String,