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 664487 - window label box colours should match the dash
window label box colours should match the dash
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-21 17:07 UTC by Allan Day
Modified: 2011-12-14 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (732 bytes, patch)
2011-12-02 18:52 UTC, Marc Plano-Lesay
none Details | Review
Result (470.80 KB, image/png)
2011-12-02 18:53 UTC, Marc Plano-Lesay
  Details
patch (772 bytes, patch)
2011-12-03 23:14 UTC, Marc Plano-Lesay
none Details | Review
result (512.68 KB, image/png)
2011-12-03 23:15 UTC, Marc Plano-Lesay
  Details
New result with some dynamicity (540.41 KB, image/png)
2011-12-05 21:50 UTC, Marc Plano-Lesay
  Details
Adding hover to the captions (1.70 KB, patch)
2011-12-05 21:54 UTC, Marc Plano-Lesay
none Details | Review

Description Allan Day 2011-11-21 17:07:43 UTC
The labels that sit below the window thumbnails in the overview are currently opaque and black. It would be better if their fill and stroke colours matched those of the dash and workspace switcher. This would be both consistent and look better.
Comment 1 Marc Plano-Lesay 2011-12-02 18:37:43 UTC
The css permit it with the window-caption class.
Comment 2 Marc Plano-Lesay 2011-12-02 18:52:43 UTC
Created attachment 202644 [details] [review]
patch
Comment 3 Marc Plano-Lesay 2011-12-02 18:53:28 UTC
Created attachment 202645 [details]
Result

Here are a patch and the result.
Comment 4 Marc Plano-Lesay 2011-12-03 23:14:34 UTC
Created attachment 202731 [details] [review]
patch

I looked at the wrong color. The only thing which was different from the dash was the opacity.
Comment 5 Marc Plano-Lesay 2011-12-03 23:15:14 UTC
Created attachment 202732 [details]
result

And the new result.
Comment 6 Allan Day 2011-12-05 10:05:18 UTC
Thanks for the patch and screenshot, Marc. This is really good.

I had a quick look in the gnome-shell.css and it looks like the dash background isn't the colour that you're using for the labels. Can you check that?

It would also be really awesome if you could try and match the designs for the window captions, which were updated recently:

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

A few things to notice here:

 * The text is bold and a bit bigger than you have it.
 * The captions themselves are bigger (around 30px tall).
 * No borders on the captions unless the pointer is hovering over window thumbnail.

Thanks again!
Comment 7 Marc Plano-Lesay 2011-12-05 17:40:26 UTC
(In reply to comment #6)
> Thanks for the patch and screenshot, Marc. This is really good.
> 
> I had a quick look in the gnome-shell.css and it looks like the dash background
> isn't the colour that you're using for the labels. Can you check that?

It's effectively the same background-color:
#dash {
    color: #5f5f5f;
    font-size: 9pt; 
    padding: 4px 0px; 
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-left: 0px; 
    border-radius: 0px 9px 9px 0px; 
}

> It would also be really awesome if you could try and match the designs for the
> window captions, which were updated recently:
> 
> http://git.gnome.org/browse/gnome-shell-design/plain/mockups/static/overview-window-picker-6-workspaces.png
> 
> A few things to notice here:
> 
>  * The text is bold and a bit bigger than you have it.
>  * The captions themselves are bigger (around 30px tall).
>  * No borders on the captions unless the pointer is hovering over window
> thumbnail.
> 
> Thanks again!


I'll take a look at this later, I didn't saw the new mockups.
Comment 8 Marc Plano-Lesay 2011-12-05 21:50:17 UTC
Created attachment 202875 [details]
New result with some dynamicity
Comment 9 Marc Plano-Lesay 2011-12-05 21:54:35 UTC
Created attachment 202877 [details] [review]
Adding hover to the captions

I'm not very happy with this patch, I just suck at css. There's probably a better way to render the borders, but without setting the borders on .window-caption, when I hover the window, the caption seems to be reduced (and last letters of the text dropped out for a …).

Second point, I used add/remove_style_pseudo_class('hover') on the title, there's maybe a way to do this directly from css, but I didn't manage to do so.
Comment 10 Allan Day 2011-12-14 11:52:10 UTC
Thanks for the patch, Marc! I've updated it and pushed it to master, so you're a proud GNOME now. ;)

Let's deal with the highlight in bug 665310.

http://git.gnome.org/browse/gnome-shell/commit/?id=1acec65c5eae6235e6a7db554408e0dafcfad652