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 591406 - metacity theme for gnome-shell
metacity theme for gnome-shell
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 626145 (view as bug list)
Depends on: 591390
Blocks:
 
 
Reported: 2009-08-11 03:52 UTC by William Jon McCann
Modified: 2010-10-16 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
metacity theme (38.01 KB, text/plain)
2009-08-11 03:54 UTC, William Jon McCann
Details

Description William Jon McCann 2009-08-11 03:52:11 UTC
Started playing around with some ideas for a metacity theme.  I'll just put work in progress here.
Comment 1 William Jon McCann 2009-08-11 03:54:00 UTC
Created attachment 140410 [details]
metacity theme

Save as ~/.themes/Shell/metacity-1/metacity-theme-1.xml
Comment 2 Jon Nettleton 2009-09-19 16:36:04 UTC
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
Comment 3 Owen Taylor 2010-04-13 18:27:25 UTC
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="&lt; 3.1"
               color="gtk:bg[NORMAL]"
               x="0 `max` ((width-title_width)/2)"
               y="0 `max` ((height-title_height)/2)"/>
        <title version="&gt;= 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="&lt; 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="&gt;= 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.
Comment 4 Owen Taylor 2010-08-05 21:49:46 UTC
*** Bug 626145 has been marked as a duplicate of this bug. ***
Comment 5 Kenny Strawn 2010-08-05 22:11:48 UTC
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.
Comment 6 Owen Taylor 2010-08-05 22:30:34 UTC
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.
Comment 7 William Jon McCann 2010-10-14 02:10:35 UTC
It called "Adwaita" and it is in gnome-themes-standard now.