Results 1 to 3 of 3

Thread: Edit Metacity theme to center title?

  1. #1
    Join Date
    Oct 2004
    Beans
    50

    Edit Metacity theme to center title?

    I really like the SystemG Metacity theme. However, for some reason, the fact that the window title isn't centered in the theme is driving me nuts. I've tried to contact the author for a bit of advice on how to alter it, but I haven't received a response yet.

    Any theming wizards out there willing to give me a hand?

  2. #2
    Join Date
    Nov 2004
    Location
    Las Vegas
    Beans
    329
    Distro
    Ubuntu 6.06

    Re: Edit Metacity theme to center title?

    After installing the theme, open the file ~/.themes/SystemG/metacity-1/metacity-theme-1.xml

    You're gonna replace the following two lines:

    Line 172:
    Code:
    <title color="gtk:fg[SELECTED]" x="3" y="((height - title_height) / 2) `max` 0"/>
    Line 178:
    Code:
    <title color="blend/gtk:fg[SELECTED]/gtk:bg[SELECTED]/0.5" x="3" y="((height - title_height) / 2) `max` 0"/>
    With this:
    Line 172:
    Code:
    <title color="gtk:fg[SELECTED]" x="((width - title_width) / 2) `max` 0" y="((height - title_height) / 2) `max` 0"/>
    Line 178:
    Code:
    <title color="blend/gtk:fg[SELECTED]/gtk:bg[SELECTED]/0.5" x="((width - title_width) / 2) `max` 0" y="((height - title_height) / 2) `max` 0"/>
    And that should get you want you want.

  3. #3
    Join Date
    Oct 2004
    Beans
    50

    Re: Edit Metacity theme to center title?

    Quote Originally Posted by intangible
    After installing the theme, open the file ~/.themes/SystemG/metacity-1/metacity-theme-1.xml

    You're gonna replace the following two lines:

    Line 172:
    Code:
    <title color="gtk:fg[SELECTED]" x="3" y="((height - title_height) / 2) `max` 0"/>
    Line 178:
    Code:
    <title color="blend/gtk:fg[SELECTED]/gtk:bg[SELECTED]/0.5" x="3" y="((height - title_height) / 2) `max` 0"/>
    With this:
    Line 172:
    Code:
    <title color="gtk:fg[SELECTED]" x="((width - title_width) / 2) `max` 0" y="((height - title_height) / 2) `max` 0"/>
    Line 178:
    Code:
    <title color="blend/gtk:fg[SELECTED]/gtk:bg[SELECTED]/0.5" x="((width - title_width) / 2) `max` 0" y="((height - title_height) / 2) `max` 0"/>
    And that should get you want you want.
    Thanks! I'll try it as soon as I get a chance.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •