-
-
Notifications
You must be signed in to change notification settings - Fork 287
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: Transportation Component Icon and title color is not compatible #1494
fix: Transportation Component Icon and title color is not compatible #1494
Conversation
…elop chore(develop): release 1.0.0
…with background color
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.
Hi @bhattabhi013!
Please have a look at my comments, and attach a screenshot in both dark and light mode.
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Show resolved
Hide resolved
…elop chore(develop): release 1.1.0
Hi @monsieurtanuki , |
Codecov Report
@@ Coverage Diff @@
## develop #1494 +/- ##
==========================================
- Coverage 9.06% 8.90% -0.16%
==========================================
Files 158 161 +3
Lines 6422 6581 +159
==========================================
+ Hits 582 586 +4
- Misses 5840 5995 +155
Continue to review full report at Codecov.
|
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.
@bhattabhi013 My comments:
- what is the reason behind removing
CHANGELOG.md
? - I don't think your screenshot in dark mode reflect your latest code, as I don't expect blue in that case
- I don't expect blue either, unless it was the color of the mock-ups
Hi @monsieurtanuki,
Color? _getColorFromEvaluation(Evaluation evaluation) {
switch (evaluation) {
case Evaluation.BAD:
return RED_COLOR;
case Evaluation.NEUTRAL: // (case which is used for the transportation icon and title in issue#1347)
return PRIMARY_BLUE_COLOR;
case Evaluation.AVERAGE:
return LIGHT_ORANGE_COLOR;
case Evaluation.GOOD:
return LIGHT_GREEN_COLOR;
case Evaluation.UNKNOWN: // (case where we used onBackground color in dark mode)
return null;
}
|
|
Thanks for your inputs @monsieurtanuki. |
on the website, we use the same grey color for both neutral and unknown. $evaluation-good-color: #219653; |
Regarding a comment above (in one of the resolved discussion): I don't think we have mocks for dark mode, but the whole point of dark mode is to have different colors, so the evaluation colors do not have to be (and probably should not be) exactly the same as the light mode colors. My recommendation would be to create a set of light mode colors (for those you can use the ones from the website: they are the ones from the mocks) + a set of dark mode colors, which you can initially set to the light mode values (except the grey which should be lighter), and then we can ask the designer to select exactly the colors so that they are contrasted enough while not being too flashy. |
Hi @stephanegigandet,
|
As suggested by @stephanegigandet, I created 2 separate sets and they are used on the basis of light/dark mode. Here are the updated screenshots:
|
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.
Hi @bhattabhi013!
We're getting close but still things to fix: please read my comments.
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Show resolved
Hide resolved
@monsieurtanuki, Thanks for your comments and inputs. I've worked on the comments listed above and committed the changes, please let me know if any other modifications are required. |
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.
Thank you @bhattabhi013 for your fixes.
Reading again and again the code, I think that evaluation == null
is equivalent to UNKNOWN
, and should be dealt similarly, color-wise. Please have a look at my comments.
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/knowledge_panels/knowledge_panel_title_card.dart
Outdated
Show resolved
Hide resolved
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.
That's good @bhattabhi013!
@monsieurtanuki, thanks for your support and guidance throughout this PR. |
What
fixes Transportation Component Icon and title color is not compatible with the background color.
Screenshot
Fixes bug(s)
Part of
(please be as granular as possible)