Closed
Bug 831391
Opened 13 years ago
Closed 13 years ago
Show less transparent homescreen / white window when hitting the home key / unlocking the phone
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:-, b2g18+ fixed)
RESOLVED
FIXED
| blocking-b2g | - |
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(1 file, 1 obsolete file)
|
5.71 KB,
patch
|
etienne
:
review+
|
Details | Diff | Splinter Review |
This one is a very simple change that reduce the amount of transparent homescreen when you come back from an application to the homescreen. It also prevent many of the white application flash when going from the lockscreen to anywhere.
IMHO it really make the OS feels better.
Attachment #702907 -
Flags: review?(etienne)
| Assignee | ||
Comment 1•13 years ago
|
||
Josh I really think you want this one.
Asking blocking+ because without this patch very often when you came out of an application the homescreen is transparent before it is beeing rendered and that gives a very bad feeling about the product on this particular interaction.
blocking-b2g: --- → tef?
Flags: needinfo?(jcarpenter)
Comment 2•13 years ago
|
||
Comment on attachment 702907 [details] [diff] [review]
Patch
Review of attachment 702907 [details] [diff] [review]:
-----------------------------------------------------------------
::: apps/homescreen/js/homescreen.js
@@ +56,5 @@
> + }
> +
> + var element = document.createElement('div');
> + element.id = 'repaint-helper';
> + document.body.appendChild(element);
Just toggling the css display property wasn't enough to force the repaint?
::: apps/system/js/lockscreen.js
@@ +521,3 @@
>
> + var repaintTimeout = 0;
> + var nextPaint= function() {
lint nit
@@ +552,5 @@
> + this.dispatchEvent('will-unlock');
> + currentFrame.addNextPaintListener(nextPaint);
> + repaintTimeout = setTimeout(function ensureUnlock() {
> + nextPaint();
> + }, 400);
shouldn't this one be the same than kTransitionTimeout in the window manager?
Comment 3•13 years ago
|
||
Not a blocker since this is mostly cosmetic, but we will take in v1.0.x
blocking-b2g: tef? → -
tracking-b2g18:
--- → +
Comment 4•13 years ago
|
||
/me can't wait for the updated version of the patch :)
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #702907 -
Attachment is obsolete: true
Attachment #702907 -
Flags: review?(etienne)
Attachment #703911 -
Flags: review?(etienne)
Comment 6•13 years ago
|
||
Comment on attachment 703911 [details] [diff] [review]
Patch v2
Review of attachment 703911 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
(The nits are worth addressing ;))
::: apps/system/js/lockscreen.js
@@ +521,3 @@
>
> + var repaintTimeout = 0;
> + var nextPaint= function() {
arrrrgggg, the lint error is still here ;)
::: apps/system/js/window_manager.js
@@ +71,4 @@
> var screenElement = document.getElementById('screen');
> var wrapperHeader = document.querySelector('#wrapper-activity-indicator');
> var wrapperFooter = document.querySelector('#wrapper-footer');
> + var kTransitionTimeout = 1000;
do we still need this bump since getting the repaint is sooo fast? :)
Attachment #703911 -
Flags: review?(etienne) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/0c4274bf32ba13f5f82e2fc1720143d6e148f60d
1000 is to avoid as much as possible the transparent homescreen in bad cases.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Anything that reduces the amount of white-screen flashy-ness would be great. As you say, it makes the UI feel glitchy and cheap.
(In reply to Vivien Nicolas (:vingtetun) (:21) from comment #0)
> Created attachment 702907 [details] [diff] [review]
> Patch
>
> This one is a very simple change that reduce the amount of transparent
> homescreen when you come back from an application to the homescreen.
Vivien, by transparent, do you mean the way in which the wallpaper shows first, but the other elements take a while to draw in?
Flags: needinfo?(jcarpenter)
Updated•13 years ago
|
Flags: needinfo?(21)
| Assignee | ||
Comment 9•13 years ago
|
||
(In reply to Josh Carpenter [:jcarpenter] from comment #8)
> Anything that reduces the amount of white-screen flashy-ness would be great.
> As you say, it makes the UI feel glitchy and cheap.
>
> (In reply to Vivien Nicolas (:vingtetun) (:21) from comment #0)
> > Created attachment 702907 [details] [diff] [review]
> > Patch
> >
> > This one is a very simple change that reduce the amount of transparent
> > homescreen when you come back from an application to the homescreen.
>
> Vivien, by transparent, do you mean the way in which the wallpaper shows
> first, but the other elements take a while to draw in?
Yep that's what I meant.
Flags: needinfo?(21)
Updated•13 years ago
|
status-b2g18:
--- → fixed
Comment 10•13 years ago
|
||
:/ the 300 to 1000 ms is causing wrapper footer disappears before app starts to do transition.
See https://bugzilla.mozilla.org/show_bug.cgi?id=849441#c0 (7)
You need to log in
before you can comment on or make changes to this bug.
Description
•