mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-26 22:42:17 +00:00
refactor: remove unused border from ContinueWatching settings
This commit is contained in:
parent
aee1453a66
commit
3473972345
2 changed files with 0 additions and 28 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.nuvio.app.features.home.components
|
||||
|
||||
import androidx.compose.foundation.BorderStroke
|
||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
|
|
@ -314,27 +313,11 @@ fun ContinueWatchingStylePreview(
|
|||
} else {
|
||||
MaterialTheme.colorScheme.surface
|
||||
}
|
||||
val previewBorder = if (style == ContinueWatchingSectionStyle.Wide) {
|
||||
BorderStroke(
|
||||
1.dp,
|
||||
if (isSelected) MaterialTheme.colorScheme.primary
|
||||
else MaterialTheme.colorScheme.outlineVariant.copy(alpha = 0.55f),
|
||||
)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
||||
Column(
|
||||
modifier = modifier
|
||||
.clip(RoundedCornerShape(12.dp))
|
||||
.background(backgroundColor)
|
||||
.then(
|
||||
if (previewBorder != null) {
|
||||
Modifier.border(previewBorder, RoundedCornerShape(12.dp))
|
||||
} else {
|
||||
Modifier
|
||||
},
|
||||
)
|
||||
.padding(horizontal = 12.dp, vertical = 16.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center,
|
||||
|
|
|
|||
|
|
@ -230,16 +230,6 @@ private fun ContinueWatchingStyleOption(
|
|||
isTablet: Boolean,
|
||||
onClick: () -> Unit,
|
||||
) {
|
||||
val optionBorder = if (style == ContinueWatchingSectionStyle.Wide) {
|
||||
androidx.compose.foundation.BorderStroke(
|
||||
1.dp,
|
||||
if (selected) MaterialTheme.colorScheme.primary
|
||||
else MaterialTheme.colorScheme.outlineVariant,
|
||||
)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
||||
Surface(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
|
|
@ -250,7 +240,6 @@ private fun ContinueWatchingStyleOption(
|
|||
MaterialTheme.colorScheme.surface
|
||||
},
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
border = optionBorder,
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
|
|
|
|||
Loading…
Reference in a new issue