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 665310 - highlight window thumbnails on hover
highlight window thumbnails on hover
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-12-01 17:55 UTC by Allan Day
Modified: 2012-12-10 22:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Highlight of the title when the window is hovered (2.03 KB, patch)
2011-12-26 00:46 UTC, Marc Plano-Lesay
accepted-commit_after_freeze Details | Review
Workspace: Highlight window clone and caption when hovered (6.43 KB, patch)
2012-08-30 15:58 UTC, Giovanni Campagna
none Details | Review
Workspace: Highlight window clone and caption when hovered (7.58 KB, patch)
2012-08-30 16:45 UTC, Giovanni Campagna
none Details | Review
Workspace: Highlight window clone and caption when hovered (6.36 KB, patch)
2012-10-17 20:53 UTC, Giovanni Campagna
none Details | Review
Workspace: Highlight window clone and caption when hovered (8.11 KB, patch)
2012-10-24 17:27 UTC, Giovanni Campagna
none Details | Review
Workspace: Highlight window clone and caption when hovered (8.21 KB, patch)
2012-11-05 17:11 UTC, Giovanni Campagna
none Details | Review
hacked patch (8.20 KB, patch)
2012-11-05 17:55 UTC, Allan Day
none Details | Review
screenshot (592.44 KB, image/png)
2012-11-05 17:56 UTC, Allan Day
  Details
Workspace: Highlight window clone and caption when hovered (9.04 KB, patch)
2012-11-05 20:55 UTC, Giovanni Campagna
needs-work Details | Review
Workspace: Highlight window clone and caption when hovered (8.58 KB, patch)
2012-11-07 22:18 UTC, Giovanni Campagna
none Details | Review
updated patch (8.57 KB, patch)
2012-11-20 10:33 UTC, Allan Day
committed Details | Review
gap issue at the top of the window (138.12 KB, image/png)
2012-12-05 20:58 UTC, Carlos Soriano
  Details

Description Allan Day 2011-12-01 17:55:15 UTC
We already show the close button when the pointer is positioned over the window thumbnail. It would be great to visually highlight the thumbnail too - this would give a nice bit of feedback that it is clickable.

Here's a mockup:

http://git.gnome.org/browse/gnome-shell-design/plain/mockups/static/overview-window-picker-6-workspaces.png

Bug 664204 requests a similar effect for workspace thumbnails.
Comment 1 Marc Plano-Lesay 2011-12-26 00:46:04 UTC
Created attachment 204214 [details] [review]
Highlight of the title when the window is hovered

First step done: the title is highlighted when the window is hovered. The second part will be highlighting the window itself.
Comment 2 Giovanni Campagna 2012-03-01 15:40:31 UTC
Review of attachment 204214 [details] [review]:

This is a good patch, for a priority bug in Every Details Matter.
Why was it blocked until after UI freeze?
Comment 3 Allan Day 2012-03-01 20:29:14 UTC
(In reply to comment #2)
> Review of attachment 204214 [details] [review]:
> 
> This is a good patch, for a priority bug in Every Details Matter.
> Why was it blocked until after UI freeze?

I think I was probably waiting for the second part, but yes, my bad for not following up.

Giovanni, this doesn't apply to master. Even when I've made it so that it does apply, it doesn't seem to work. Have you tried the patch?
Comment 4 Jeremy Newton 2012-03-05 00:24:55 UTC
(In reply to comment #2)
> Review of attachment 204214 [details] [review]:
> 
> This is a good patch, for a priority bug in Every Details Matter.
> Why was it blocked until after UI freeze?

Such patch, if it does work with the master, could be made complete if combined with the functionality of such extension: https://extensions.gnome.org/extension/60/overlay-icons/
The bonus is making the window overview much easier to distinguish the different open windows, which would help close the following bugs (although I might have missed some):
https://bugzilla.gnome.org/show_bug.cgi?id=663398
https://bugzilla.gnome.org/show_bug.cgi?id=651022
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-03-30 15:27:42 UTC
Marc, do you have a git account? If not, I can push the patch for you, now that we're out of hard code freeze. This is a good candidate for 3.4.1.
Comment 6 Owen Taylor 2012-03-30 17:35:09 UTC
(In reply to comment #5)
> Marc, do you have a git account? If not, I can push the patch for you, now that
> we're out of hard code freeze. This is a good candidate for 3.4.1.

Is this not a UI freeze break? The UI freeze still applies for 3.4.x.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-05-02 18:35:18 UTC
OK, now we're out of UI freeze break.
Comment 8 André Klapper 2012-06-26 12:19:11 UTC
Patch status has been "accepted-commit_after_freeze" for more than 3 months now.
Which exact freeze does this refer to? Can this get committed, or should the patch status be updated?
Comment 9 Matthias Clasen 2012-06-27 23:08:04 UTC
Comment 3 seems to indicate that it doesn't work ?
Giovanni, Jasper whats the status here - has the patch been updated to apply, and has it been tested to work ?
Comment 10 Allan Day 2012-06-27 23:16:20 UTC
(In reply to comment #9)
> Comment 3 seems to indicate that it doesn't work ?

If I recall correctly, the patch applies a border to the window title on hover. While this is good, a border also needs to be applied to the thumbnail at the same time. The latter is the most important part of the design, and it doesn't make sense to land the current patch without it.
Comment 11 Giovanni Campagna 2012-08-30 15:58:46 UTC
Created attachment 222949 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

Rebased, updated, and added borders to the window.
Comment 12 Giovanni Campagna 2012-08-30 16:45:22 UTC
Created attachment 222953 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

Fixed a small jump in the animation to and from the overview.
Comment 13 Giovanni Campagna 2012-10-17 20:53:44 UTC
Created attachment 226689 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

I essentially rewrote the patch from scratch to put the code in
WindowOverlays, instead of adding great hacks to the layout code
to account for the borders (or worse, have the borders scale with
the windows)
Comment 14 Giovanni Campagna 2012-10-24 17:27:26 UTC
Created attachment 227179 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

Rebased on the new window layout.
Comment 15 Allan Day 2012-11-05 10:49:07 UTC
I don't seem to be able to apply this (can't tell whether I messed something up or not).
Comment 16 Giovanni Campagna 2012-11-05 17:11:25 UTC
Created attachment 228157 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

It applies fine here. Anyway, this is rebased on current master.
Comment 17 Allan Day 2012-11-05 17:55:33 UTC
Created attachment 228168 [details] [review]
hacked patch

Thanks Giovanni! I've modified the patch a bit and it will need fixing since there is unnecessary code now. I actually removed the border color change - I think it looks better without, tbh.
Comment 18 Allan Day 2012-11-05 17:56:41 UTC
Created attachment 228169 [details]
screenshot

So I quite like this, but it feels a bit jerky. Would it be possible to fade the border in and out?

Jon, Jimmac: what do you think?
Comment 19 Giovanni Campagna 2012-11-05 20:55:13 UTC
Created attachment 228188 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

This time with animations. Doesn't seem to make much difference,
unless it is artificially slowed down.
Comment 20 Jasper St. Pierre (not reading bugmail) 2012-11-06 20:45:40 UTC
This needs design review from Allan.
Comment 21 Giovanni Campagna 2012-11-06 22:37:04 UTC
Comment on attachment 228188 [details] [review]
Workspace: Highlight window clone and caption when hovered

It also needs me fixing the animation of the border when starting a drag.
Comment 22 Giovanni Campagna 2012-11-07 22:18:28 UTC
Created attachment 228426 [details] [review]
Workspace: Highlight window clone and caption when hovered

Windows in the overview should be highlighted when hovered, to indicate
they are an active target.

Based on a patch by Marc Plano-Lesay <marc.planolesay@gmail.com>

... which I just did.
Still, this patch shows one curious point: the effect on hover is very
different if the primary color of window is not clear, eg. for dark themed
window. In particular, the effect on corners for dark windows is strong.

Also, but that's a minor issue, border corners are always the same width,
while those of the windows vary with scale, so they don't always blend
nicely (this becomes noticeable because the background is dark)
Comment 23 Allan Day 2012-11-09 20:05:55 UTC
Here's a screencast so Jon and Jimmac can take a look (I tweaked the patch for this - it's using a 4px border):

https://dl.dropbox.com/u/5031519/gnome-shell/Screencast%20from%2011-09-2012%2007%3A59%3A39%20PM.webm
Comment 24 Florian Müllner 2012-11-09 20:51:18 UTC
Bikeshed:
I think we should adjust the position of the close button to take the border into account.
Comment 25 Jasper St. Pierre (not reading bugmail) 2012-11-09 21:00:27 UTC
I also wonder if we should use the patches in https://bugzilla.gnome.org/show_bug.cgi?id=661042 to generate a color for the window based on the app icon.
Comment 26 Allan Day 2012-11-13 10:56:31 UTC
(In reply to comment #23)
> Here's a screencast so Jon and Jimmac can take a look (I tweaked the patch for
> this - it's using a 4px border):...

I've had a chat with Jimmac about this - he's happy with this if the positioning of the close button is fixed.

We also discussed maybe using a glow effect instead of the border. I tried modifying the css to use a box-shadow instead of the border but it didn't seem to work...
Comment 27 Allan Day 2012-11-20 10:12:29 UTC
Ping. :) We just need the close button to be fixed for this, I think.
Comment 28 Allan Day 2012-11-20 10:33:10 UTC
Created attachment 229459 [details] [review]
updated patch

Seems that the close button placement is defined in the css. :)

Here's an updated patch with the styling changes folded in.
Comment 29 Giovanni Campagna 2012-11-20 17:02:01 UTC
Pushed. Code was reviewed in the previous iteration, I'm assuming the
design was checked, given the author of the latest patch :)
Comment 30 Carlos Soriano 2012-12-05 20:58:24 UTC
Created attachment 230824 [details]
gap issue at the top of the window

Seems that there's a issue with this patch, there's a gap between the window and the top of the highlight.

It is noticeable when you have only one window in a single workspace and the window is very little.
Comment 31 Giovanni Campagna 2012-12-10 22:19:59 UTC
Somehow, I had a feeling that eventually that bug would surface again.
That is a combination of bad coordinate rounding and the window texture including some trasparent border.

I had a few iterations locally with multiple ways to address this, but each had its set of problems (some with maximized windows, some with small windows, some with stretched...), so in the end I went for the no rounding at all option.
I'm not sure which way is the best one.