[Pull To Refresh] Throbber should have dark design in dark mode
Categories
(Fenix :: General, enhancement)
Tracking
(firefox123 verified, firefox124 verified)
People
(Reporter: csadilek, Assigned: titouan)
References
Details
Attachments
(5 files)
From github: https://github.com/mozilla-mobile/fenix/issues/16142.
What is the user problem or growth opportunity you want to see solved?
The throbber/spinning animation that appears when pulling to refresh a tab should have an appropriate design when the user has enabled dark mode.
How do you know that this problem exists today? Why is this important?
Currently, the throbber is white in dark mode, which looks strange:
<img src="https://user-images.githubusercontent.com/46764284/96992083-aae66380-1529-11eb-9e42-3041959d9af9.png" width=300 />
Who will benefit from it?
Users with dark mode enabled that use the pull-to-refresh gesture.
┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Investigated this and saw that our implementation was buggy from when it was first implemented in https://github.com/mozilla-mobile/fenix/issues/103.
The current implementation uses a resource id as a color [1].
That resource - R.attr.primaryText
supports theming and has different light/dark colors but they are different shades of gray and so if if was to be used correctly (by using swipeRefresh.setColorSchemeResources(primaryTextColor)
) in the dark theme a light gray throbber would have very low contrast with it's background and won't be seen.
To fix this we should get new colors to use for the throbber and it's background. We could have different colors for light/dark theme and also for private mode.
The throbber (the rounded arrow) can use an array of colors and would animate between them depending on how much it is being dragged. OR we can use one solid color that would automatically get a fade effect.
The background of it can also be themed to ensure a better contrast between the throbber, the background and the below webpage.
Comment 2•2 years ago
|
||
@jane is the color of the refresh indicator in dark mode something crystal could provide? (i don't think she's in bugzilla so i can't tag her direction :D)
@cwong is her username! I've added her to the ticket here. We will take a look at this this sprint.
Comment 4•9 months ago
|
||
Assignee | ||
Comment 5•9 months ago
•
|
||
Hey Crystal, we created a patch to fix this bug. Does this dark theme look good for you for the refresh indicator?
Comment 6•9 months ago
|
||
Authored by Titouan Thibaud
https://github.com/mozilla-mobile/firefox-android/commit/c6ed1d76995c7a0946dd8dfd8f089414f075726c
[main] Bug 1807080 - Fix PTR dark theme colors
Updated•9 months ago
|
Comment 7•9 months ago
|
||
Verified as fixed on Nightly 124.0a1 from 02/06 with Motorola Moto G9 plus (Android 11) and OnePlus A3000 (Android 6).
Comment 8•9 months ago
|
||
@tit(In reply to Titouan Thibaud [:tthibaud] from comment #5)
Created attachment 9378234 [details]
ptr-dark.mp4Hey Crystal, we created a patch to fix this bug. Does this dark theme look good for you for the refresh indicator?
Sorry, I just saw this! It looks good to me! Thank you for making the changes. :)
Comment 10•9 months ago
|
||
Assignee | ||
Comment 11•9 months ago
|
||
Comment on attachment 9379248 [details] [review]
[mozilla-mobile/firefox-android] Bug 1807080 - Fix PTR dark theme colors (backport #5455) (#5541)
Beta/Release Uplift Approval Request
- User impact if declined: The Pull to Refresh indicator keeps it wrong colors in Dark Mode
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It has already been verified by QA and baked in Nightly
- String changes made/needed:
- Is Android affected?: Yes
Comment 12•9 months ago
•
|
||
Comment 13•9 months ago
|
||
Authored by Titouan Thibaud
https://github.com/mozilla-mobile/firefox-android/commit/a38d60d369543e4e21b1537269eddf51f35798af
[releases_v123] Bug 1807080 - Fix PTR dark theme colors
Comment 14•9 months ago
|
||
Verified as fixed on Firefox RC 123.0.
Device used: Samsung Galaxy S23 Ultra (Android 14) and OnePlus A3000 (Android 6).
Description
•