Skip to content
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

Merged
merged 3 commits into from
Apr 15, 2023

Conversation

Parag171998
Copy link
Collaborator

@Parag171998 Parag171998 commented Apr 12, 2023

Description

Task related to roadmap v0.3.0

@Parag171998 Parag171998 added the wip Work in progress label Apr 12, 2023
Icon(
painter = painterResource(id = R.drawable.ic_favorite_red),
contentDescription = null,
tint = Color.Red
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

app/src/main/res/drawable/ic_favorite_red.xml Outdated Show resolved Hide resolved
@RajashekarRaju RajashekarRaju added the enhancement New feature or request label Apr 12, 2023
@RajashekarRaju RajashekarRaju changed the title Favorite Movie List Ui changed Improved favorites movie ui improvements Apr 15, 2023
@Parag171998 Parag171998 merged commit 794b18b into v0.3.0 Apr 15, 2023
@RajashekarRaju RajashekarRaju deleted the feat/favorite-movie-list-ui-change branch April 22, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants