Sida 1 av 1

Texten i titelraden

Postat: 30 jun 2010, 23:02
av Lao Tzu
Hittade ett snyggt tema vid namn "Dust" som jag numera använder mig av. Då jag har lyckats ta reda på hur man flyttar knapparna till höger sida började jag fundera på om man inte också kan flytta texten. I dusttemat är den vänsterjusterad men jag vill ha den centrerad. Hur får jag den det?

Re: Texten i titelraden

Postat: 30 jun 2010, 23:18
av Hund

Kod: Markera allt

<draw_ops name="draw_title_text_normal">
	<title color="#000000" x="3 `max` (width-title_width)/2" y="1 `max` ((height-title_height)/2)+1"/>
	<title color="#ffffff" x="3 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>

<draw_ops name="draw_title_text_inactive">
	<title color="#000000" x="4 `max` (width-title_width)/2+1" y="1 `max` ((height-title_height)/2)+1"/>
	<title color="#f7f7f7" x="3 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>
Så ser koden ut på det temat jag använder.

Re: Texten i titelraden

Postat: 02 jul 2010, 17:41
av Lao Tzu
Jag är ledsen men jag har ingen aning om var du hittar den koden. Jag har försökt googla men hittar inget. Sen vet jag inte riktigt hur man söker bland dolda filer. Den enda temamappen jag hittade är .themes.
Sökväg:

Kod: Markera allt

file:///home/emil/.themes/Correcamins/metacity-1/metacity-theme-1.xml
Där ser det ut såhär på mitt:

Kod: Markera allt

<draw_ops name="title-text-focused">
<title color="#ffffff" x="0" y="(height - title_height) / 2"/>
</draw_ops>
−
<draw_ops name="title-text-unfocused">
<title color="#e1e1e1" x="0" y="(height - title_height) / 2"/>
</draw_ops>
<draw_ops name="blank">
</draw_ops>
−
<draw_ops name="title">
<image filename="left-top.png" x="0" y="0" width="object_width" height="height"/>
<image filename="top-middle.png" x="5" y="0" width="width - 10" height="height"/>
<image filename="right-top.png" x="width - object_width" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="title-unfocus">
<image filename="left-top-unfocus.png" x="0" y="0" width="object_width" height="height"/>
<image filename="top-middle-unfocus.png" x="5" y="0" width="width - 10" height="height"/>
<image filename="right-top-unfocus.png" x="width - object_width" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="title-max">
<image filename="top-middle.png" x="0" y="0" width="width" height="height"/>
</draw_ops>
−
<draw_ops name="title-unfocus-max">
<image filename="top-middle-unfocus.png" x="0" y="0" width="width" height="height"/>
</draw_ops>
Hittar med andra ord ingenstans där det står <draw_ops name="draw_title_text_normal"> och <draw_ops name="draw_title_text_inactive">

Jag har en känsla av att terminalen vore smidigare att använda här men jag kan å andra sidan inga kommandon utantill och vet därför inte hur jag får fram rätt rader kod så jag kan se vad som skiljer mellan våra teman.

Re: Texten i titelraden

Postat: 02 jul 2010, 18:12
av Hund
Lägg upp koden till hela temat så ska jag kika på det. :)

Re: Texten i titelraden

Postat: 02 jul 2010, 18:35
av Lao Tzu

Kod: Markera allt

<metacity_theme>
−
<info>
<name>Correcamins First Theme</name>
<author>Toni Lara, Correcamins</author>
<copyright>GPL</copyright>
<date>August 05 2007</date>
<description>Inspirateb by Alphacube theme</description>
</info>
<constant name="IconTitleSpacing" value="0"/>
−
<frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true" title_scale="medium">
<distance name="left_width" value="5"/>
<distance name="right_width" value="5"/>
<distance name="bottom_height" value="5"/>
<distance name="left_titlebar_edge" value="10"/>
<distance name="right_titlebar_edge" value="10"/>
<distance name="button_width" value="25"/>
<distance name="button_height" value="23"/>
<distance name="title_vertical_pad" value="0"/>
<border name="title_border" left="0" right="0" top="0" bottom="0"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>
−
<frame_geometry name="border" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false" has_title="false">
<distance name="left_width" value="0"/>
<distance name="right_width" value="0"/>
<distance name="left_titlebar_edge" value="2"/>
<distance name="right_titlebar_edge" value="2"/>
<distance name="button_width" value="25"/>
<distance name="button_height" value="23"/>
<border name="title_border" left="0" right="0" top="0" bottom="0"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>
−
<draw_ops name="title-text-focused">
<title color="#ffffff" x="0" y="(height - title_height) / 2"/>
</draw_ops>
−
<draw_ops name="title-text-unfocused">
<title color="#e1e1e1" x="0" y="(height - title_height) / 2"/>
</draw_ops>
<draw_ops name="blank">
</draw_ops>
−
<draw_ops name="title">
<image filename="left-top.png" x="0" y="0" width="object_width" height="height"/>
<image filename="top-middle.png" x="5" y="0" width="width - 10" height="height"/>
<image filename="right-top.png" x="width - object_width" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="title-unfocus">
<image filename="left-top-unfocus.png" x="0" y="0" width="object_width" height="height"/>
<image filename="top-middle-unfocus.png" x="5" y="0" width="width - 10" height="height"/>
<image filename="right-top-unfocus.png" x="width - object_width" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="title-max">
<image filename="top-middle.png" x="0" y="0" width="width" height="height"/>
</draw_ops>
−
<draw_ops name="title-unfocus-max">
<image filename="top-middle-unfocus.png" x="0" y="0" width="width" height="height"/>
</draw_ops>
−
<draw_ops name="frame-left">
<image filename="frame-left.png" x="0" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="frame-left-unfocus">
<image filename="frame-left-unfocus.png" x="0" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="frame-right">
<image filename="frame-right.png" x="0" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="frame-right-unfocus">
<image filename="frame-right-unfocus.png" x="0" y="0" width="object_width" height="height"/>
</draw_ops>
−
<draw_ops name="frame-bottom">
<image filename="bottom-left.png" x="0" y="0" width="5" height="object_height"/>
<image filename="bottom-middle.png" x="5" y="0" width="width - 10" height="object_height"/>
<image filename="bottom-right.png" x="width - object_width" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="frame-bottom-unfocus">
<image filename="bottom-left-unfocus.png" x="0" y="0" width="5" height="object_height"/>
<image filename="bottom-middle-unfocus.png" x="5" y="0" width="width - 10" height="object_height"/>
<image filename="bottom-right-unfocus.png" x="width - object_width" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-close-normal">
<image filename="button-close.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-close-focus">
<image filename="button-close-focus.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-close-pressed">
<image filename="button-close-push.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-close-inactive">
<image filename="button-close-inactive.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-maximize-normal">
<image filename="button-max.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-maximize-focus">
<image filename="button-max-focus.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-maximize-pressed">
<image filename="button-max-push.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-maximize-inactive">
<image filename="button-max-inactive.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-unmaximize-normal">
<image filename="button-res.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-unmaximize-focus">
<image filename="button-res-focus.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-unmaximize-pressed">
<image filename="button-res-push.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-unmaximize-inactive">
<image filename="button-res-inactive.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-minimize-normal">
<image filename="button-min.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-minimize-focus">
<image filename="button-min-focus.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-minimize-pressed">
<image filename="button-min-push.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-minimize-inactive">
<image filename="button-min-inactive.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-menu-active">
<image filename="b-m-a.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-menu-focus">
<image filename="b-m-focus.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<draw_ops name="button-menu-inactive">
<image filename="b-m-ia.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
−
<frame_style name="normal-focused" geometry="normal">
<piece position="titlebar" draw_ops="title"/>
<piece position="left_edge" draw_ops="frame-left"/>
<piece position="right_edge" draw_ops="frame-right"/>
<piece position="bottom_edge" draw_ops="frame-bottom"/>
<piece position="title" draw_ops="title-text-focused"/>
<button function="close" state="normal" draw_ops="button-close-normal"/>
<button function="close" state="prelight" draw_ops="button-close-focus"/>
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
<button function="minimize" state="normal" draw_ops="button-minimize-normal"/>
<button function="minimize" state="prelight" draw_ops="button-minimize-focus"/>
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
<button function="maximize" state="normal" draw_ops="button-maximize-normal"/>
<button function="maximize" state="prelight" draw_ops="button-maximize-focus"/>
<button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
<button function="menu" state="normal" draw_ops="button-menu-active"/>
<button function="menu" state="prelight" draw_ops="button-menu-focus"/>
<button function="menu" state="pressed" draw_ops="button-menu-active"/>
</frame_style>
−
<frame_style name="normal-unfocused" geometry="normal">
<piece position="titlebar" draw_ops="title-unfocus"/>
<piece position="left_edge" draw_ops="frame-left-unfocus"/>
<piece position="right_edge" draw_ops="frame-right-unfocus"/>
<piece position="bottom_edge" draw_ops="frame-bottom-unfocus"/>
<piece position="title" draw_ops="title-text-unfocused"/>
<button function="close" state="normal" draw_ops="button-close-inactive"/>
<button function="close" state="prelight" draw_ops="button-close-normal"/>
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
<button function="minimize" state="normal" draw_ops="button-minimize-inactive"/>
<button function="minimize" state="prelight" draw_ops="button-minimize-normal"/>
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
<button function="maximize" state="normal" draw_ops="button-maximize-inactive"/>
<button function="maximize" state="prelight" draw_ops="button-maximize-normal"/>
<button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
<button function="menu" state="normal" draw_ops="button-menu-inactive"/>
<button function="menu" state="prelight" draw_ops="button-menu-active"/>
<button function="menu" state="pressed" draw_ops="button-menu-inactive"/>
</frame_style>
−
<frame_style name="max-focused" geometry="border">
<piece position="titlebar" draw_ops="title-max"/>
<piece position="title" draw_ops="title-text-focused"/>
<button function="close" state="normal" draw_ops="button-close-normal"/>
<button function="close" state="prelight" draw_ops="button-close-focus"/>
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
<button function="minimize" state="normal" draw_ops="button-minimize-normal"/>
<button function="minimize" state="prelight" draw_ops="button-minimize-focus"/>
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
<button function="maximize" state="normal" draw_ops="button-unmaximize-normal"/>
<button function="maximize" state="prelight" draw_ops="button-unmaximize-focus"/>
<button function="maximize" state="pressed" draw_ops="button-unmaximize-pressed"/>
<button function="menu" state="normal" draw_ops="button-menu-active"/>
<button function="menu" state="prelight" draw_ops="button-menu-focus"/>
<button function="menu" state="pressed" draw_ops="button-menu-active"/>
</frame_style>
−
<frame_style name="max-unfocused" geometry="border">
<piece position="titlebar" draw_ops="title-unfocus-max"/>
<piece position="title" draw_ops="title-text-unfocused"/>
<button function="close" state="normal" draw_ops="button-close-inactive"/>
<button function="close" state="prelight" draw_ops="button-close-normal"/>
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
<button function="minimize" state="normal" draw_ops="button-minimize-inactive"/>
<button function="minimize" state="prelight" draw_ops="button-minimize-normal"/>
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
<button function="maximize" state="normal" draw_ops="button-unmaximize-inactive"/>
<button function="maximize" state="prelight" draw_ops="button-unmaximize-normal"/>
<button function="maximize" state="pressed" draw_ops="button-unmaximize-pressed"/>
<button function="menu" state="normal" draw_ops="button-menu-inactive"/>
<button function="menu" state="prelight" draw_ops="button-menu-active"/>
<button function="menu" state="pressed" draw_ops="button-menu-inactive"/>
</frame_style>
−
<frame_style name="normal-shaded-focused" geometry="normal" parent="normal-focused">
<piece position="titlebar" draw_ops="title"/>
</frame_style>
−
<frame_style name="normal-shaded-unfocused" geometry="normal" parent="normal-unfocused">
<piece position="titlebar" draw_ops="title"/>
</frame_style>
−
<frame_style_set name="normal">
<frame focus="yes" state="normal" resize="both" style="normal-focused"/>
<frame focus="no" state="normal" resize="both" style="normal-unfocused"/>
<frame focus="yes" state="maximized" style="max-focused"/>
<frame focus="no" state="maximized" style="max-unfocused"/>
<frame focus="yes" state="shaded" style="normal-shaded-focused"/>
<frame focus="no" state="shaded" style="normal-shaded-unfocused"/>
<frame focus="yes" state="maximized_and_shaded" style="normal-shaded-focused"/>
<frame focus="no" state="maximized_and_shaded" style="normal-shaded-unfocused"/>
</frame_style_set>
<window type="normal" style_set="normal"/>
<window type="dialog" style_set="normal"/>
<window type="modal_dialog" style_set="normal"/>
<window type="menu" style_set="normal"/>
<window type="utility" style_set="normal"/>
<window type="border" style_set="normal"/>
<menu_icon function="close" state="normal" draw_ops="button-close-normal"/>
<menu_icon function="maximize" state="normal" draw_ops="button-maximize-normal"/>
<menu_icon function="unmaximize" state="normal" draw_ops="button-unmaximize-normal"/>
<menu_icon function="minimize" state="normal" draw_ops="button-minimize-normal"/>
</metacity_theme>
Hoppas du hittar nåt. :)

Re: Texten i titelraden

Postat: 03 jul 2010, 03:02
av Hund
Temat fungerade inte. Du har inte lust att länka till det?

Re: Texten i titelraden

Postat: 03 jul 2010, 14:57
av Lao Tzu
Gärna... men hur? Det är ett standardtema i Ubuntu. Här kan man nog ladda ner det om man inte har Lucid: http://gnome-look.org/content/show.php/ ... tent=88790

Re: Texten i titelraden

Postat: 24 jul 2010, 22:09
av Lao Tzu
Jag tar och bumpar den här då jag är osäker på vad Hund menar med sitt sista förslag. Hoppas därför att någon vänlig själ kan hjälpa mig med mitt lilla bekymmer. Det skulle i alla fall få mig att sova bättre om nätterna, om problemet löstes. ;D