mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-09 00:17:59 +00:00
feat: Enhance Continue Watching settings UI; update style option display with alpha transition for selection
This commit is contained in:
parent
dce27b3620
commit
26f9dd8ecb
1 changed files with 19 additions and 12 deletions
|
|
@ -18,6 +18,7 @@ import androidx.compose.material3.Text
|
|||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.alpha
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.nuvio.app.features.home.components.ContinueWatchingStylePreview
|
||||
|
|
@ -113,21 +114,27 @@ private fun ContinueWatchingStyleOption(
|
|||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(bottom = 4.dp),
|
||||
horizontalArrangement = Arrangement.End,
|
||||
) {
|
||||
if (selected) {
|
||||
Icon(
|
||||
imageVector = Icons.Rounded.CheckCircle,
|
||||
contentDescription = null,
|
||||
tint = MaterialTheme.colorScheme.primary,
|
||||
)
|
||||
}
|
||||
Icon(
|
||||
imageVector = Icons.Rounded.CheckCircle,
|
||||
contentDescription = null,
|
||||
tint = MaterialTheme.colorScheme.primary,
|
||||
modifier = Modifier.alpha(if (selected) 1f else 0f),
|
||||
)
|
||||
}
|
||||
Box(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
ContinueWatchingStylePreview(
|
||||
style = style,
|
||||
isSelected = selected,
|
||||
)
|
||||
}
|
||||
ContinueWatchingStylePreview(
|
||||
style = style,
|
||||
isSelected = selected,
|
||||
)
|
||||
Text(
|
||||
text = style.name.lowercase().replaceFirstChar(Char::uppercase),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
|
|
|
|||
Loading…
Reference in a new issue