[优化] 封面背景
This commit is contained in:
@@ -81,7 +81,11 @@ fun CoilBookCover(
|
|||||||
}
|
}
|
||||||
|
|
||||||
NormalCard(
|
NormalCard(
|
||||||
cornerRadius = 4.dp
|
cornerRadius = 4.dp,
|
||||||
|
containerColor = if (!hasCustomDefault && !isOnlineCoverLoaded) {
|
||||||
|
LegadoTheme.colorScheme.surfaceContainerLow
|
||||||
|
} else
|
||||||
|
LegadoTheme.colorScheme.surfaceContainerLow.copy(alpha = 0f)
|
||||||
){
|
){
|
||||||
BoxWithConstraints(
|
BoxWithConstraints(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
@@ -91,11 +95,6 @@ fun CoilBookCover(
|
|||||||
Modifier.shadow(4.dp, RoundedCornerShape(4.dp))
|
Modifier.shadow(4.dp, RoundedCornerShape(4.dp))
|
||||||
} else Modifier
|
} else Modifier
|
||||||
)
|
)
|
||||||
.then(
|
|
||||||
if (!hasCustomDefault && !isOnlineCoverLoaded) {
|
|
||||||
Modifier.background(LegadoTheme.colorScheme.surfaceContainer)
|
|
||||||
} else Modifier
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
val density = LocalDensity.current
|
val density = LocalDensity.current
|
||||||
val iconSizeDp = with(density) {
|
val iconSizeDp = with(density) {
|
||||||
|
|||||||
Reference in New Issue
Block a user