[Sugar-devel] [DESIGN] Filter in home view

Simon Schampijer simon at schampijer.de
Tue Aug 16 12:36:04 EDT 2011


On 08/16/2011 06:10 PM, Gonzalo Odiard wrote:
>>
>> Thanks for the screen shots. For the grey version the stroke should be grey
>> and the fill white (to match the background) so that the icon detail is
>> still visible.
>>
>> Regards,
>> --Gary
>>
>>
>>
> Ok. I have applying the same colors than in the neighborhood view for
> consistency,
> but is a easy change if we define it.
>
> Do you need a screenshot with this colors?
>
> Regards,
>
> Gonzalo

That will give you the same result as in the neighborhood view:

diff --git a/src/jarabe/desktop/favoritesview.py 
b/src/jarabe/desktop/favoritesview.py
index f1d87be..2c19855 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -117,7 +117,8 @@ class FavoritesView(hippo.Canvas):
                  if activity_name.find(query) > -1:
                      icon.props.xo_color = icon.icon_color
                  else:
-                    icon.props.xo_color = XoColor('#D5D5D5,#D5D5D5')
+                    icon.props.stroke_color = '#D5D5D5'
+                    icon.props.fill_color = 
style.COLOR_TRANSPARENT.get_svg()

      def __settings_changed_cb(self, **kwargs):
          favorites_settings = get_settings()

Regards,
    Simon


More information about the Sugar-devel mailing list