[SOLVED] Mint theme window title alignment

Forum rules
Before you post please read how to get help
Post Reply
User avatar
notty
Level 1
Level 1
Posts: 29
Joined: Fri May 14, 2010 12:04 pm
Location: Grafton, Massachusetts

[SOLVED] Mint theme window title alignment

Post by notty » Tue Sep 14, 2010 5:36 pm

Is there any way to make the window title of the Mint default theme / Shiki themes to align to the left? I always have to settle for a different theme because of this.


Image


Thanks in advance.
Last edited by notty on Tue Sep 14, 2010 7:45 pm, edited 1 time in total.
Image

User avatar
pluraldave
Level 5
Level 5
Posts: 707
Joined: Mon Sep 01, 2008 8:05 am

Re: Mint theme window title alignment

Post by pluraldave » Tue Sep 14, 2010 6:49 pm

You need to manually edit the metacity xml file.

Navigate to /usr/share/themes/Shiki-Colors-Metacity/metacity-1 and open the xml file as root in your favourite text editor.

Or in terminal

Code: Select all

gksu gedit /usr/share/themes/Shiki-Colors-Metacity/metacity-1/metacity-theme-1.xml
Once it's open scroll down to the TITLES section (line 309) and find the section that reads

Code: Select all

<draw_ops name="title_text">
	<title color="#E6E6E6" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/>
</draw_ops>

<draw_ops name="title_text_unfocused">
	<title color="#3C3C3C" x="(3 `max` (width-title_width)) / 2" y="1 `max` ((height-title_height)/2)+1"/>
	<title color="#9B9B9B" x="(3 `max` (width-title_width)) / 2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>
Change this to

Code: Select all

<draw_ops name="title_text">
	<title color="#E6E6E6" x="2" y="(((height - title_height) / 2) `max` 0)"/>
</draw_ops>

<draw_ops name="title_text_unfocused">
	<title color="#3C3C3C" x="2" y="1 `max` ((height-title_height)/2)+1"/>
	<title color="#9B9B9B" x="2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>
The x="2" is simply the spacing between the title and whatever you have to the left of the title. Play around with the number until you get the spacing you prefer. (Make sure you set the same spacing in all three places.)

User avatar
notty
Level 1
Level 1
Posts: 29
Joined: Fri May 14, 2010 12:04 pm
Location: Grafton, Massachusetts

Re: [SOLVED] Mint theme window title alignment

Post by notty » Tue Sep 14, 2010 7:47 pm

Thank you! It worked perfectly.
Image

Post Reply

Return to “MATE”