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

fix: Summary card doesn't honor dark mode #1321 #1323

Merged
merged 2 commits into from
Mar 26, 2022
Merged

fix: Summary card doesn't honor dark mode #1321 #1323

merged 2 commits into from
Mar 26, 2022

Conversation

bhattabhi013
Copy link
Contributor

What

fix #1321 : Summary card and question card doesn't honor dark mode.

Screenshot

  1. Summary card

image

  1. Question card

image

Fixes bug(s)

Part of

@bhattabhi013 bhattabhi013 requested a review from a team as a code owner March 24, 2022 17:53
color: const Color(0xfff5f6fa),
color: Theme.of(context).colorScheme.primary,
Copy link
Member

Choose a reason for hiding this comment

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

As said, we already talked about this here but I have to say the primary color looks way too prominent in my opinion. What about completely removing any color for it and using the standart SmoothCard color

Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't followed all the thread but remember that there is a secondary color. Maybe we should agree that secondary is for flashy buttons and primary for quieter larger areas?

From https://material.io/design/color/the-color-system.html#color-theme-creation

Secondary colors are best for:
Floating action buttons
Selection controls, like sliders and switches
Highlighting selected text
Progress bars
Links and headlines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @monsieurtanuki ,
Initially, I tried secondary color but @teolemon suggested to go with primary color. You can find the thread here.

Copy link
Member

Choose a reason for hiding this comment

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

This is Robotoff, and I'd be tempted to keep the "Robotoff blue" across platforms and versions. @M123-dev @monsieurtanuki @bhattabhi013

Copy link
Contributor Author

@bhattabhi013 bhattabhi013 Mar 25, 2022

Choose a reason for hiding this comment

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

As said, we already talked about this here but I have to say the primary color looks way too prominent in my opinion. What about completely removing any color for it and using the standart SmoothCard color

I tried doing it this way, here is the outcome:
image

I think we should either go with primary or secondary color as suggested by @monsieurtanuki .

Copy link
Contributor

Choose a reason for hiding this comment

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

I have no special interest in specific colors, I was just pointing out that the flutter standards provide 2 main colors. That should be enough for most apps, but if smoothie needs additional colors, why not?

@teolemon teolemon added the darkmode Ensuring we look good in the dark label Mar 25, 2022
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

Lets not block this fix on a minor UI questions. We can always change it later but it's good, that they are readable in darkmode !

@M123-dev M123-dev merged commit eaf83df into openfoodfacts:develop Mar 26, 2022
@teolemon teolemon mentioned this pull request Mar 31, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
darkmode Ensuring we look good in the dark
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Summary card and question card doesn't honor dark mode
4 participants