I think, I found the problem. Attached is a new patch (it's like the last one, but with this change).<br>The difference between this patch and the previous is reset the phase when stop the pulsing,<br>and use cos() instead of sin() because cos(1) = 1<br>
Regards<br><br>Gonzalo<br><br>[gonzalo@aronax sugar]$ git diff<br>diff --git a/src/jarabe/view/pulsingicon.py b/src/jarabe/view/pulsingicon.py<br>index 2c106b0..c68a712 100644<br>--- a/src/jarabe/view/pulsingicon.py<br>+++ b/src/jarabe/view/pulsingicon.py<br>
@@ -60,12 +60,13 @@ class Pulser(object):<br> gobject.source_remove(self._pulse_hid)<br> self._pulse_hid = None<br> self._icon.xo_color = self._icon.get_base_color()<br>+ self._phase = 0<br>
self._icon.alpha = 1.0<br> <br> def update(self):<br> self._icon.xo_color = self._icon.base_color<br> self._icon.alpha = _MINIMAL_ALPHA_VALUE + \<br>- (1 - _MINIMAL_ALPHA_VALUE) * (math.sin(self._phase) + 1) / 2<br>
+ (1 - _MINIMAL_ALPHA_VALUE) * (math.cos(self._phase) + 1) / 2<br> <br> def __pulse_cb(self):<br> self._phase += _STEP<br><br><br><br><br><br><div class="gmail_quote">On Sat, Aug 13, 2011 at 9:40 AM, Simon Schampijer <span dir="ltr"><<a href="mailto:simon@schampijer.de">simon@schampijer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 08/12/2011 08:41 PM, <a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
From: Gonzalo Odiard<<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>><br>
<br>
This render the SVG image only one time, and then use alpha and scaling<br>
of the rendered icon and will speed up the overall activity startup.<br>
Another side effect is that the startup zoom not visible in many<br>
activities, is visible now - #2080<br>
<br>
Signed-off-by: Gonzalo Odiard<<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>><br>
Acked-By: Simon Schampijer<<a href="mailto:simon@laptop.org" target="_blank">simon@laptop.org</a>><br>
</blockquote>
<br></div>
Hi Gonzalo, thanks for the patches. The color seem to not be fully set for the Access Point pulsingicon in the Frame (screenshot attached). Would be great if you could have a look at that.<br>
<br>
Regards,<br><font color="#888888">
Simon<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gonzalo Odiard<br>SugarLabs Argentina<br><br>