-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved favorites movie ui improvements #59
Conversation
...c/main/java/com/developersbreach/composeactors/domain/use_case/RemoveFavoriteMovieUseCase.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/developersbreach/composeactors/ui/screens/favorites/FavoriteViewModel.kt
Outdated
Show resolved
Hide resolved
.../main/java/com/developersbreach/composeactors/ui/screens/movieDetail/MovieDetailViewModel.kt
Outdated
Show resolved
Hide resolved
Icon( | ||
painter = painterResource(id = R.drawable.ic_favorite_red), | ||
contentDescription = null, | ||
tint = Color.Red |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tint = Color.Red | |
tint = MaterialTheme.colors.primary |
We should not introduce any new colors in any screens.
Since this is an icon, please use
light_primary
from the Color design system which is equivalent to MaterialTheme.colors.primary
and since we are supporting light/dark theme, the system will automatically use dark_primary
in dark theme.
And now since we do this, we have problem in few scenarios where the image banner of the movie background might lookalike favorite icon, which makes icon visibility partially not visible. The solution to this is, we will have some scrim background for whole width so that the icon will be always visible.
So over all we will have text to left, icon to right and this row will be placed at the bottom of the banner.
Background - MaterialTheme.colors.surface
Icon tint - MaterialTheme.colors.primary
text color - MaterialTheme.colors.primary
Description
Task related to roadmap v0.3.0