Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ private fun Content(
uiMediaList[page].id,
uiMediaList[page].mediaType
)
}
},
hasOverlay = true
)

if (pagerState.currentPage == page)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun HomeCarouselSection(
},
imageUrl = mediaItem.posterUrl,
onSaveClick = { onSaveClick(mediaItem.id) },
hasSaveIcon = isHero
hasSaveIcon = isHero && (mediaItem.mediaType == MediaType.Movie)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
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
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
Expand All @@ -31,6 +34,7 @@ fun HomeCard(
hasSaveIcon: Boolean = true,
onDeleteClick: () -> Unit = {},
imageDescription: String? = null,
hasOverlay: Boolean = false
) {
Box(
modifier = Modifier
Expand Down Expand Up @@ -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)
)
}
}
}

Expand Down
Loading