After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 609576 - Pre-light buttons in the top panel
Pre-light buttons in the top panel
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 597782 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-02-10 19:15 UTC by Marina Zhurakhinskaya
Modified: 2011-03-16 18:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Pre-light Activities button on mouse over (1009 bytes, patch)
2010-05-08 15:08 UTC, John Rabotnik
reviewed Details | Review
Pre-light buttons in the top panel on mouseover (894 bytes, patch)
2010-05-08 15:23 UTC, John Rabotnik
reviewed Details | Review
Prelight panel items on hover (789 bytes, patch)
2011-03-14 01:05 UTC, Jonathan Strander
none Details | Review
Prelight-panel-items-on-hover (789 bytes, patch)
2011-03-15 01:32 UTC, Jonathan Strander
accepted-commit_now Details | Review
Prelight-panel-items-on-hover (808 bytes, patch)
2011-03-15 23:09 UTC, Jonathan Strander
committed Details | Review

Description Marina Zhurakhinskaya 2010-02-10 19:15:05 UTC
We should pre-light Activities, clock, and user menu buttons on mouse over to indicate to the user that they are clickable.
Comment 1 Sander Dijkhuis 2010-02-23 16:17:13 UTC
I'm not sure whether this should be done. The top panel behaves a lot like a menu bar: all items are clickable. Menu bars in GTK+ do not pre-light, so for consistency these items probably should not either.
Comment 2 Dan Winship 2010-03-22 14:54:53 UTC
is this still desired? if we want it, it's basically just a matter of adding ".panel-button:hover" to the .panel-button:active, etc line (unless we want the prelight to be different from the highlight-when-pressed)
Comment 3 John Rabotnik 2010-05-08 15:08:33 UTC
Created attachment 160580 [details] [review]
Pre-light Activities button on mouse over

Perhaps as a compromise the Activities button could be pre-lit while leaving the clock and user menu as they are.  The activity button is the most used and it might be nice to get some visual feedback on mouse over.
Comment 4 Florian Müllner 2010-05-08 15:23:21 UTC
Review of attachment 160580 [details] [review]:

This needs ui-review. One of the design goals of gnome-shell is a consistent behaviour of panel items ("menu-like"), so I'm not sure if it's a good idea to limit the prelighting to the activities button (though it's obviously special ...)

Style comments below.

::: data/theme/gnome-shell.css
@@ +1,1 @@
+a/* Copyright 2009, Red Hat, Inc.

Oooops!

@@ +141,3 @@
+    background-gradient-start: #3c3c3c;
+    background-gradient-direction: vertical;
+#panelActivities:hover {

Instead of repeating the same style used for .panel-button:active, add the selector there - this way, if we decide to change the button style, it can be done in one place.
Comment 5 John Rabotnik 2010-05-08 15:23:27 UTC
Created attachment 160584 [details] [review]
Pre-light buttons in the top panel on mouseover

This patch pre-lights all the panel buttons using the method suggested in Dan Winship's post.  Lighting all the buttons this way seems more consistent.
Comment 6 John Rabotnik 2010-05-08 15:34:48 UTC
(In reply to comment #4)
> This needs ui-review. One of the design goals of gnome-shell is a consistent
> behaviour of panel items ("menu-like"), so I'm not sure if it's a good idea to
> limit the prelighting to the activities button (though it's obviously special

Thank you, Florian.  After using it this way for a while I agree.  If you decide to pre-light the panel buttons then it would be best to have them behave consistently using Dan's method.
Comment 7 Florian Müllner 2010-05-08 15:43:18 UTC
Review of attachment 160584 [details] [review]:

If we want this, it is OK to commit - Jon?

It might also be worth trying a different prelight effect, like the one used in the dash ...
Comment 8 John Rabotnik 2010-05-08 19:07:42 UTC
(In reply to comment #7)
> If we want this, it is OK to commit - Jon?

Yes that's fine with me, thank you for the feedback on this.

> It might also be worth trying a different prelight effect, like the one used in
> the dash ...

I tested this out using the same effect the dash uses and it doesn't look as good as the current panel active effect you currently have.  Maybe the effect could be tweaked later down the line.
Comment 9 Florian Müllner 2010-05-08 19:24:03 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > If we want this, it is OK to commit - Jon?
> 
> Yes that's fine with me, thank you for the feedback on this.

Oh, I did not misspell John - Jon Mccann is one of the Gnome shell designers; we should get his input before pushing this forward :)
Comment 10 John Rabotnik 2010-05-08 19:32:19 UTC
Oops, sorry, I thought it was a bit odd asking me to commit it :-)
Comment 11 Florian Müllner 2010-12-04 03:01:32 UTC
*** Bug 597782 has been marked as a duplicate of this bug. ***
Comment 12 William Jon McCann 2011-03-13 19:38:40 UTC
Consulted with Jakub and we'd like prelight to:
:hover { color: #fff }
Comment 13 Jonathan Strander 2011-03-14 01:05:44 UTC
Created attachment 183312 [details] [review]
Prelight panel items on hover

In order to give feedback when the user hovers
over items on the panel, we should prelight them.
Comment 14 Jonathan Strander 2011-03-15 01:32:20 UTC
Created attachment 183399 [details] [review]
Prelight-panel-items-on-hover

Rebase from master
Comment 15 William Jon McCann 2011-03-15 03:18:14 UTC
Looks good.  I'd like to get this in.
Comment 16 drago01 2011-03-15 12:24:46 UTC
Review of attachment 183399 [details] [review]:

Looks good.
Comment 17 Jonathan Strander 2011-03-15 23:09:34 UTC
Created attachment 183474 [details] [review]
Prelight-panel-items-on-hover

Fixed author name and contact info. Per irc conversation. Should be good to go now.