[Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback
Manuel Quiñones
manuq at laptop.org
Wed Oct 3 17:12:48 EDT 2012
2012/10/3 Martin Langhoff <martin.langhoff at gmail.com>:
> On Wed, Oct 3, 2012 at 4:53 PM, Manuel Quiñones <manuq at laptop.org> wrote:
>> Add a light grey background, which is the same size as the grey
>> outline that appears when the icon is hovered.
>
> Yes! This stuff is needed. Touch feedback needs to be bright, clear,
> and clearly larger than your finger so that you see it.
Yes we need this in the other zoom views too. I'm trying to enlarge
the feedback area right now. Here are screengrabs of the spiral with
the two patches applied, for mouse hover and tap-click:
http://dev.laptop.org/~manuq/shell-port/icon-hover.png
http://dev.laptop.org/~manuq/shell-port/icon-tap.png
And enlarging a bit:
http://dev.laptop.org/~manuq/shell-port/icon-hover2.png
http://dev.laptop.org/~manuq/shell-port/icon-tap2.png
Note icons displace a bit, must be fixed. This is done changing the
numbers here:
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -467,12 +467,12 @@ class ActivityIcon(EventIcon):
def do_get_preferred_width(self):
width = EventIcon.do_get_preferred_width(self)[0]
- width += ActivityIcon._BORDER_WIDTH * 2
+ width += ActivityIcon._BORDER_WIDTH * 5
return (width, width)
def do_get_preferred_height(self):
height = EventIcon.do_get_preferred_height(self)[0]
- height += ActivityIcon._BORDER_WIDTH * 2
+ height += ActivityIcon._BORDER_WIDTH * 5
return (height, height)
def __button_release_event_cb(self, icon, event):
--
.. manuq ..
More information about the Sugar-devel
mailing list