[优化] 封面背景

This commit is contained in:
HapeLee
2026-04-26 15:13:51 +08:00
parent e59a6b8ec0
commit b6904a1f9f
@@ -81,7 +81,11 @@ fun CoilBookCover(
}
NormalCard(
cornerRadius = 4.dp
cornerRadius = 4.dp,
containerColor = if (!hasCustomDefault && !isOnlineCoverLoaded) {
LegadoTheme.colorScheme.surfaceContainerLow
} else
LegadoTheme.colorScheme.surfaceContainerLow.copy(alpha = 0f)
){
BoxWithConstraints(
modifier = modifier
@@ -91,11 +95,6 @@ fun CoilBookCover(
Modifier.shadow(4.dp, RoundedCornerShape(4.dp))
} else Modifier
)
.then(
if (!hasCustomDefault && !isOnlineCoverLoaded) {
Modifier.background(LegadoTheme.colorScheme.surfaceContainer)
} else Modifier
)
) {
val density = LocalDensity.current
val iconSizeDp = with(density) {