-
-
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: color issue in light mode on the top summary bar of the scan card #1634
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1634 +/- ##
==========================================
- Coverage 8.86% 8.71% -0.15%
==========================================
Files 161 164 +3
Lines 6623 6792 +169
==========================================
+ Hits 587 592 +5
- Misses 6036 6200 +164
Continue to review full report at Codecov.
|
Can you add a screenshot of unknown compatibility. Setting all your preferences to the highest should do the job |
Hi @M123-dev, |
@bhattabhi013 Try the dev mode and "Switch between strong and lenient matching" as "strong". With the lenient there's never an incompatibility. |
Hi, This approach fixes issues in light mode but creates a new issue in dark mode. |
@bhattabhi013 Thank you for the screenshots. In my opinion there's confusion here with
This is what I suggest in
What do you think of that? |
@monsieurtanuki, |
Hi @monsieurtanuki, |
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!
Looks better that way but still some fine-tunings to code.
packages/smooth_app/lib/helpers/product_compatibility_helper.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/helpers/product_compatibility_helper.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/cards/product_cards/smooth_product_card_found.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/helpers/product_compatibility_helper.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.
Thank you @bhattabhi013!
I don't know if in the end we'll keep exactly those color values, but anyway now we are ready to handle all the cases.
@bhattabhi013 Not your fault: you'll need to merge #1772 once it's merged, without that the tests don't pass. For the record, please don't reply to all my comments with "Changes done.": each time it's another email that I receive :( |
thank you very much @bhattabhi013 @monsieurtanuki 👌 merging |
What
Now, the text color is selected on runtime and set to
onBackground
color.For dark mode: onBackground = white;
For light mode: onBackground = black;
Screenshot
Fixes bug(s)
Part of
(please be as granular as possible)