GNOME Bugzilla – Bug 151262
Allow themes to require an X server with alpha channel
Last modified: 2017-03-18 18:15:19 UTC
Themes that want to use alpha will need to require an X server that has it. A couple of approaches possible: 1. Certain themes just require it, and the requirement is in the theme format; theme control panel would have to check which themes to display by parsing the theme 2. We handle it like theme versions, so we have metacity-theme-1.xml, and metacity-theme-1-alpha.xml; the theme control panel just looks at theme filename. This way, a theme can provide both alpha and non-alpha versions. I like approach 2 at the moment, not that I've thought about it all that much.
See the patch on bug #151261
Additional methods might be: 3. Allow the new theme format to specify a default fallback fill color for areas that are supposed to be translucent but aren't. i.e., if the fallback is #FFF and the theme draws some pixmap at 50% opacity, just blend the pixmap with white. 4. Do the fake-transparency that is popular with older WMs and terminal emulators, in which the desktop wallpaper image is used to blend with. Alternatively, use the fake-transparency that kwin and several other WMs use that actually uses the user's desktop/windows (not in real-time) for their pre-COMPOSITE drop shadows.
Should this be moved to Component: Themes and made dependent on bug 482165?