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 664364 - Mutter uses ugly fallback in GNOME Shell when Ubuntu's Ambiance theme is used
Mutter uses ugly fallback in GNOME Shell when Ubuntu's Ambiance theme is used
Status: RESOLVED NOTGNOME
Product: mutter
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-19 00:35 UTC by Jeremy Bicha
Modified: 2011-12-13 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
04-ubuntu-patch (2.34 KB, patch)
2011-11-19 00:35 UTC, Jeremy Bicha
none Details | Review
screenshot-after-patch (48.53 KB, image/png)
2011-11-19 00:36 UTC, Jeremy Bicha
  Details
theme-parser: Allow, but ignore other toplevel tags (911 bytes, patch)
2011-11-19 19:57 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review

Description Jeremy Bicha 2011-11-19 00:35:40 UTC
Created attachment 201693 [details] [review]
04-ubuntu-patch

Originally reported at https://bugs.launchpad.net/bugs/800315

When Mutter/GNOME Shell sees theme elements it doesn't recognize, it displays an ugly theme (I guess as a warning to developers or packagers). This breaks Ubuntu's Ambiance and Radiance themes which use the "padding" and "shadow" elements.

For Ubuntu 11.10 and GNOME 3.2, Ubuntu just used the attached patch but you may wish to solve this problem a different way.

Screenshot of ugly theme: https://launchpadlibrarian.net/77478136/gnome-shell-ambiance-window-theme.png
Comment 1 Jeremy Bicha 2011-11-19 00:36:50 UTC
Created attachment 201694 [details]
screenshot-after-patch

And this is a screenshot after the patch has been applied.
Comment 2 Matthias Clasen 2011-11-19 19:51:26 UTC
> This breaks
> Ubuntu's Ambiance and Radiance themes which use the "padding" and "shadow"
> elements.

That seems rather backwards to me. If Ubuntu embraces and extends the metacity theme format, it is mutters fault ?!
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-11-19 19:57:15 UTC
Created attachment 201712 [details] [review]
theme-parser: Allow, but ignore other toplevel tags
Comment 4 Matthias Clasen 2011-11-20 21:30:01 UTC
It should at least warn, if you ask me.
Comment 5 Jeremy Bicha 2011-11-20 22:09:28 UTC
Warn who and how? I don't think we need to warn users, just developers. Would printing a message to .xsession-errors be sufficient?
Comment 6 Florian Müllner 2011-11-21 12:43:08 UTC
I consider the current behavior a feature, which at least helps theme developers to catch simple typos - a warning kind of works as well, but requiring theme authors to digg through .xsession-errors is considerably more effort.

To be honest, I find it rather frustrating that we go through great lengths to make theme additions in a backward-compatible way, just to see it kicked out because Ubuntu considers *our* theme format something they can extend at will.

So my preferred solution would be to close this NOTGNOME, which would leave Ubuntu with the following options to fix this properly:

 - properly fork the theme format - if compiz looks for compiz-1.xml first before
   falling back to metacity-2.xml, the latter could be compatible with upstream,
   while Unity would still use the extensions (while maintaining compatibility
   with upstream themes)

 - file upstream patches to add support for properties they feel are missing from
   the theme format (no idea what "padding" is used for, but "shadow" looks like
   something useful to support)
Comment 7 Owen Taylor 2011-12-12 19:09:13 UTC
We have no way of knowing whether some unused thing in the theme format is optional, or essential to make the theme usable.

(I sort of regret doing the extensibility in metaacity-theme-3.xml as a strict version rather than a named-extension mechanism, but on the other hand, I don't really see it reasonable for theme authors to deal with arbitrary subsets of features that each wm may or may not support. And I don't see going to a metacity-theme.xml at this point - the theme format has other issues discouraging pushing it too far.)