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 597148 - Set ShellTrayManager:bg-color to match panel
Set ShellTrayManager:bg-color to match panel
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2009-10-02 18:14 UTC by Owen Taylor
Modified: 2009-10-04 08:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use better fitting color for non ARGB tray icons (918 bytes, patch)
2009-10-02 18:40 UTC, drago01
needs-work Details | Review
Use better fitting color for non ARGB tray icons (1.07 KB, patch)
2009-10-02 19:40 UTC, drago01
committed Details | Review

Description Owen Taylor 2009-10-02 18:14:44 UTC
ShellTrayManager has a bg-color property that is used as the background for icons that dont' support ARGB. 

But currently we have:

// Used for the tray icon container with gtk pre-2.16, which doesn't
// fully support tray icon transparency
const TRAY_BACKGROUND_COLOR = new Clutter.Color();
TRAY_BACKGROUND_COLOR.from_pixel(0xefefefff);

Which doesn't match our panel at all, which is a gradient from

const BACKGROUND_TOP = new Clutter.Color();
BACKGROUND_TOP.from_pixel(0x161616ff);
const BACKGROUND_BOTTOM = new Clutter.Color();
BACKGROUND_BOTTOM.from_pixel(0x000000ff);

So TRAY_BACKGROUND_COLOR should be 0x080808ff instead.

Implementing a background gradient for ShellTrayManager is possible - but I don't think the difference between the nearly-black-gradient and a nearly-black solid color will be that obvious.
Comment 1 drago01 2009-10-02 18:40:36 UTC
Created attachment 144613 [details] [review]
Use better fitting color for non ARGB tray icons

I tested it 0xb0b0bff and it looks much better than before, it matches the panel good enough as is, so using a gradient as a background is not worth the effort here.

The attached patch changes the color to 0xb0b0bff.
Comment 2 Owen Taylor 2009-10-02 18:52:09 UTC
Comment on attachment 144613 [details] [review]
Use better fitting color for non ARGB tray icons

Patch needs:
 
 A) A commit body that explains the patch. See:

http://article.gmane.org/gmane.comp.lib.cairo/14829

 B) A link to the bug. (git-bz will take care of this for you if you use it to attach your patches.)

We don't generally sign-off our own patches though it doesn't hurt.
Comment 3 drago01 2009-10-02 19:35:20 UTC
(In reply to comment #2)
> (From update of attachment 144613 [details] [review])
> Patch needs:
> 
>  A) A commit body that explains the patch. See:
> 
> http://article.gmane.org/gmane.comp.lib.cairo/14829

OK

>  B) A link to the bug. (git-bz will take care of this for you if you use it to
> attach your patches.)

OK

> We don't generally sign-off our own patches though it doesn't hurt.

OK, I am used to always pass "-s" to git commit.
Comment 4 drago01 2009-10-02 19:40:56 UTC
Created attachment 144619 [details] [review]
Use better fitting color for non ARGB tray icons

Added commit message, bugzilla link and removed the sign-off.
Comment 5 Owen Taylor 2009-10-02 19:44:01 UTC
Comment on attachment 144619 [details] [review]
Use better fitting color for non ARGB tray icons

Two tiny things.

comment has 'bakcground'

Comment and code have '0xb0b0bff' which would be better as 0x0b0b0bff' - makes it clearer that all three components are the same.
Comment 6 drago01 2009-10-04 08:06:34 UTC
Comment on attachment 144619 [details] [review]
Use better fitting color for non ARGB tray icons

Committed as 9b05304c2d58b8fc5f5e75c6a2ac2ec4523d4565 with the changes from #c5.