GNOME Bugzilla – Bug 591406
metacity theme for gnome-shell
Last modified: 2010-10-16 21:15:54 UTC
Started playing around with some ideas for a metacity theme. I'll just put work in progress here.
Created attachment 140410 [details] metacity theme Save as ~/.themes/Shell/metacity-1/metacity-theme-1.xml
Okay I promised I would make my gnome-shell customized theme available here for people to try and discuss. It uses the murrine engine, so make sure to install it. This is a derivative work from some other themes that I found on gnome-look.org. I believe all original copyright material is still intact and should be fine for redistribution. Uploading the files failed so I just popped them on my web server for download. http://www.hekanetworks.com/~jnettlet/open-source/gnome-shell/ChromeShell-theme.tar.gz http://www.hekanetworks.com/~jnettlet/open-source/gnome-shell/ChromeShell-icons.tar.gz Jon
Updates here: * The theme format additions from bug 591842 - frame_x_center, frame_y_center and ellipsize_width for title are now present. These need to be in a metacity-theme-3.xml. Example of usage (from my adaption of an older theme that Jon was working on) === <draw_ops name="title_text"> <title version="< 3.1" color="gtk:bg[NORMAL]" x="0 `max` ((width-title_width)/2)" y="0 `max` ((height-title_height)/2)"/> <title version=">= 3.1" color="gtk:bg[NORMAL]" x="0 `max` ((frame_x_center-title_width/2) `min` (width - title_width))" ellipsize_width="width" y="0 `max` ((height-title_height)/2)"/> </draw_ops> <draw_ops name="title_text_unfocused"> <!--<title color="shade/gtk:bg[NORMAL]/1.07" x="5 `max` (width-title_width)/2+1" y="1 `max` ((height-title_height)/2)+1"/>--> <title version="< 3.1" color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.85" x="0 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/> <title version=">= 3.1" color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.85" x="0 `max` ((frame_x_center-title_width/2) `min` (width - title_width))" ellipsize_width="width" y="0 `max` ((height-title_height)/2)"/> </draw_ops> === * The menu button is now turned off by default when running GNOME Shell * The same GConf key redirection that was used to turn of the menu button can be used to use a different theme for GNOME Shell than for GNOME 3. Although this will break the ability to set the GNOME Shell theme in the control center, we probably want to do this temporarily so people testing the shell get the GNOME Shell experience. * If we make the Shell theme only have a metacity-theme-3.xml, then it won't show up in gnome-control-center at all as a window theme - gnome-control-center only shows window themes that have metacity-theme-1.xml in them. This is probably good for the short term - if we want to ship a coordinated GNOME 2 window theme, we can later decide between: Porting the metacity-theme-3.xml patch to Metacity (Should be pretty easy to do the port) Creating a metacity-theme-1.xml that has a coordinated look but perhaps more substantial differences. (More maintenance, since there would be substantial amounts of duplicated content.) I think we'd ship the Shell theme in the gnome-shell tarball.
*** Bug 626145 has been marked as a duplicate of this bug. ***
Owen: I was talking about the other way around: using the current GNOME Shell theme for Metacity. You had it backwards when you marked this bug as a duplicate of 626145.
I marked 626145 as duplicate of this bug. This bug is about creating a window decoration theme that matches the GNOME Shell decoration. There's no way to "use" the gnome shell theme for Mutter (which uses the Metacity theme format) - the gnome shell theme is a CSS file that styles the various GUI elements of the shell. So, the best way to get them to match is to create a window manager theme that matches. It's not impossible to imagine writing code to draw window decorations as clutter elements and styling them with CSS - but that's not really a fit subject for a bug, that's an (fairly ambitious) programming project that someone could tackle if motivated. And that approach would conflict with the alternate approach for the future of "client side decorations" where the application draws the decorations.
It called "Adwaita" and it is in gnome-themes-standard now.