diff --git a/presentation/src/main/java/com/london/presentation/feature/details/actor/ActorDetailsScreen.kt b/presentation/src/main/java/com/london/presentation/feature/details/actor/ActorDetailsScreen.kt index a3c2020d6..df09e6add 100644 --- a/presentation/src/main/java/com/london/presentation/feature/details/actor/ActorDetailsScreen.kt +++ b/presentation/src/main/java/com/london/presentation/feature/details/actor/ActorDetailsScreen.kt @@ -133,10 +133,10 @@ private fun Content( ) { item { if (hasOtherContent(uiState)) { - uiState.actorImageDetails?.let { image -> + uiState.actorImageDetails?.let { images -> CustomBackDropImagePager( - images = image, - isVisibleDots = false + images = images, + isVisibleDots = (images.size) > 1 ) } } diff --git a/presentation/src/main/java/com/london/presentation/feature/home/popular/PopularSection.kt b/presentation/src/main/java/com/london/presentation/feature/home/popular/PopularSection.kt index 65c15cf19..471deb141 100644 --- a/presentation/src/main/java/com/london/presentation/feature/home/popular/PopularSection.kt +++ b/presentation/src/main/java/com/london/presentation/feature/home/popular/PopularSection.kt @@ -173,7 +173,8 @@ private fun Content( uiMediaList[page].id, uiMediaList[page].mediaType ) - } + }, + hasOverlay = true ) if (pagerState.currentPage == page) diff --git a/presentation/src/main/java/com/london/presentation/feature/home/section/CarouselSection.kt b/presentation/src/main/java/com/london/presentation/feature/home/section/CarouselSection.kt index 7c138c18a..8e119627d 100644 --- a/presentation/src/main/java/com/london/presentation/feature/home/section/CarouselSection.kt +++ b/presentation/src/main/java/com/london/presentation/feature/home/section/CarouselSection.kt @@ -77,7 +77,7 @@ fun HomeCarouselSection( }, imageUrl = mediaItem.posterUrl, onSaveClick = { onSaveClick(mediaItem.id) }, - hasSaveIcon = isHero + hasSaveIcon = isHero && (mediaItem.mediaType == MediaType.Movie) ) } } diff --git a/presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt b/presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt index b141d5d31..9254a7f2d 100644 --- a/presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt +++ b/presentation/src/main/java/com/london/presentation/feature/home/trending/actor/TrendingActorsScreen.kt @@ -1,6 +1,7 @@ package com.london.presentation.feature.home.trending.actor import androidx.compose.foundation.background +import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding @@ -69,7 +70,8 @@ private fun Content( modifier = Modifier .fillMaxSize() .padding(horizontal = 16.dp) - .background(color = NovixTheme.colors.surface) + .background(color = NovixTheme.colors.surface), + contentPadding = PaddingValues(bottom = 16.dp) ) { stickyHeader { TopBar( diff --git a/presentation/src/main/java/com/london/presentation/feature/list/savedlist/ListScreen.kt b/presentation/src/main/java/com/london/presentation/feature/list/savedlist/ListScreen.kt index e10323eaf..e659ead0b 100644 --- a/presentation/src/main/java/com/london/presentation/feature/list/savedlist/ListScreen.kt +++ b/presentation/src/main/java/com/london/presentation/feature/list/savedlist/ListScreen.kt @@ -310,17 +310,18 @@ private fun NoListFoundAsGuest( private fun BlurredImage(@DrawableRes imageId: Int) { Box( modifier = Modifier - .size(128.dp), + .size(138.dp), contentAlignment = Alignment.Center ) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { Icon( painter = R.drawable.ellipse_blur_filled.painter, contentDescription = null, - tint = NovixTheme.colors.primary, + tint = NovixTheme.colors.redAccent, modifier = Modifier .size(23.dp) .blur(40.dp, edgeTreatment = BlurredEdgeTreatment.Unbounded) + .background(NovixTheme.colors.redAccent) .align(Alignment.BottomCenter) ) } else { diff --git a/presentation/src/main/java/com/london/presentation/shared/HomeCard.kt b/presentation/src/main/java/com/london/presentation/shared/HomeCard.kt index 4cb01c211..cb8793e5c 100644 --- a/presentation/src/main/java/com/london/presentation/shared/HomeCard.kt +++ b/presentation/src/main/java/com/london/presentation/shared/HomeCard.kt @@ -1,8 +1,10 @@ package com.london.presentation.shared +import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.aspectRatio +import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape @@ -10,6 +12,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Brush import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.unit.dp import com.london.designsystem.component.CircularLoading @@ -31,6 +34,7 @@ fun HomeCard( hasSaveIcon: Boolean = true, onDeleteClick: () -> Unit = {}, imageDescription: String? = null, + hasOverlay: Boolean = false ) { Box( modifier = Modifier @@ -80,6 +84,23 @@ fun HomeCard( .align(Alignment.TopEnd) ) } + + if (hasOverlay) { + Box( + Modifier + .fillMaxWidth() + .fillMaxHeight(0.5f) + .background( + brush = Brush.verticalGradient( + colors = listOf( + NovixTheme.colors.linearGradient.copy(0f), + NovixTheme.colors.linearGradient, + ) + ) + ) + .align(Alignment.BottomCenter) + ) + } } }