gnome-panel doesn't apply gradient in background color

Bug #885691 reported by Pedro Abranches
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
light-themes (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using Ubuntu Classic(gnome-session-fallback), the gnome-panel looks strange because the background of the applets isn't the same as the background of the panel itself.
I attached a screenshot with the default desktop theme, and a snippet of the code of the theme(Ambiance, the default one).

The theme defines the background color of the panel and applets as a gradient and the problem happens there. Gnome-panel is not applying correctly the background color of the panel as a gradient. Instead it fills the background with the second solid color of the gradient.

In the image the problem may not seem evident, so I changed the colors of the theme to have a better contrast. You can check the problem now in the "changed_colors.png" image.

I stress out that this is an obvious bug that immediately is seen by everyone that uses Ubuntu Classic.

Description: Ubuntu 11.10
Release: 11.10
Linux pedro-VirtualBox 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
gnome-panel:
  Instalado: 1:3.2.0-0ubuntu1
  Candidato: 1:3.2.0-0ubuntu1
  Tabela de Versão:
 *** 1:3.2.0-0ubuntu1 0
        500 http://pt.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Pedro Abranches (abranches) wrote :
description: updated
Revision history for this message
Pedro Abranches (abranches) wrote :
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

The problem is in light-themes (it's caused by /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css).
I'll now look deeper at it.

affects: gnome-panel (Ubuntu) → light-themes (Ubuntu)
Changed in light-themes (Ubuntu):
status: New → Confirmed
Revision history for this message
Cyr4x (marcinwlo) wrote :

It's not in gnome-panel.css, It's caused by gtk engine. PanelWidget affects the main panel background. As we see, in Ambiance it's background image is a gradient, but the panel uses 'gtk-gradient to' for whole background, and 'gtk-gradient from' for 1 px line at the top. Just the theme engine doesn't do a gradient there and we cannot modify it by css.

I've even applied the hope theme (which has gradiented panel on the Author's screens from Fedora) and mine panel in Ubuntu 11.10 was flat.

Revision history for this message
Peter Hurley (phurley) wrote :

Bug 828392 is sort of a meta-bug for several issues with multiple packages.

This specific issue -- that the theme gradient background does not draw properly -- now has an upstream patch. I have attached the patch here as well. The patch comment details the causes of the bug and why the patch is the correct solution.

The short version is that gnome-panel sets the background pattern to that supplied by the theme but does not correct the scaling of the pattern to the size of the panel.

Revision history for this message
Peter Hurley (phurley) wrote :

I have attached a screenshot of a panel after the attached patch was applied. The theme is Radiance on Oneiric.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.