GNOME Bugzilla – Bug 317361
Add ability to draw transparent menus in CSS
Last modified: 2014-01-22 22:21:59 UTC
Change the popup's menu colormap to use an RGBA colormap, when available. This will leave current themes unchanged, but allows for themes to use this feature and draw transparent menus.
Created attachment 52737 [details] [review] Sets the colormap to RGBA, when available. Tested against CVS.
This probably has to be repeated when the screen is changed, and I wonder how it plays with torn-off windows. Do you have some testcase that shows this in action ?
Created attachment 241938 [details] [review] [1/2] GtkMenu: apply class "menuwindow" to our GtkWindow This allows styles to distinguish between these windows and other GtkWindows: for instance, if you want rounded corners on a menu, it's necessary to give its parent GtkWindow a transparent background. --- I've been asked to construct a Gtk theme in which menus have rounded corners and are not completely opaque; using this bug rather than opening a new one, although Gtk has moved on considerably since 2005. This requires some Gtk changes, but apparently nothing too drastic...
Created attachment 241939 [details] [review] [2/2] GtkWindow: try to get a 32-bit visual if we have a non-opaque background We assume that a 32-bit visual means it's already RGBA (Mutter shares this assumption, for what it's worth).
Created attachment 241940 [details] a quick hack to Adwaita (based on 59dd45fddbf) to demonstrate this in action Deliberately not marked as "patch", I don't propose that anyone should actually apply this particular theming.
Created attachment 241941 [details] gedit 3.8 demonstrating that edited theme in use
> - * We could indeed just set black instead of the color we have. I deleted this comment because when I tried this (which would have been a minor simplification), it turned out that the colour used does make a difference.
*** This bug has been marked as a duplicate of bug 630217 ***