summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/themes/Esco/metacity-theme-1.xml494
-rw-r--r--src/themes/Makefile.am1
3 files changed, 499 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ae7a7e0..9c068cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-14 Havoc Pennington <hp@pobox.com>
+
+ * src/themes/Makefile.am (THEMES): add Esco theme from James Cape
+
2002-05-12 Havoc Pennington <hp@pobox.com>
* src/place.c (meta_window_place): move pposition/usposition
diff --git a/src/themes/Esco/metacity-theme-1.xml b/src/themes/Esco/metacity-theme-1.xml
new file mode 100644
index 0000000..7c1d2d7
--- /dev/null
+++ b/src/themes/Esco/metacity-theme-1.xml
@@ -0,0 +1,494 @@
+<?xml version="1.0"?>
+<metacity_theme>
+
+<info>
+ <name>Esco</name>
+ <author>James M. Cape &lt;jcape@ignore-your.tv&gt;</author>
+ <copyright>&#194; Havoc Pennington, 2002 for Atlanta. &#194; Gaute Lindkvist, 2002 for Bright. &#194; James M. Cape 2002 for modifications</copyright>
+ <date>February 3, 2002</date>
+ <description>Simple theme designed to look really good &amp; match GTK+ well.</description>
+</info>
+
+<frame_geometry name="normal">
+ <distance name="left_width" value="5"/>
+ <distance name="right_width" value="5"/>
+ <distance name="bottom_height" value="5"/>
+ <distance name="left_titlebar_edge" value="5"/>
+ <distance name="right_titlebar_edge" value="5"/>
+ <distance name="button_width" value="16"/>
+ <distance name="button_height" value="16"/>
+ <distance name="title_vertical_pad" value="3"/>
+ <border name="title_border" left="3" right="3" top="4" bottom="3"/>
+ <border name="button_border" left="0" right="1" top="0" bottom="0"/>
+</frame_geometry>
+
+<!-- strip borders off the normal geometry -->
+<frame_geometry name="normal_small_borders" parent="normal">
+ <distance name="left_width" value="4"/>
+ <distance name="right_width" value="4"/>
+ <distance name="bottom_height" value="5"/>
+ <distance name="left_titlebar_edge" value="4"/>
+ <distance name="right_titlebar_edge" value="4"/>
+</frame_geometry>
+
+<frame_geometry name="utility" title_scale="xx-small">
+ <distance name="left_width" value="3"/>
+ <distance name="right_width" value="3"/>
+ <distance name="bottom_height" value="4"/>
+ <distance name="left_titlebar_edge" value="3"/>
+ <distance name="right_titlebar_edge" value="3"/>
+ <distance name="button_width" value="11"/>
+ <distance name="button_height" value="11"/>
+ <distance name="title_vertical_pad" value="1"/>
+ <border name="title_border" left="3" right="4" top="3" bottom="3"/>
+ <border name="button_border" left="0" right="0" top="1" bottom="1"/>
+</frame_geometry>
+
+<!-- define constants -->
+<constant name="ArrowWidth" value="7"/>
+<constant name="ArrowHeight" value="5"/>
+<constant name="ButtonIPad" value="3"/>
+<constant name="ThickLineWidth" value="3"/>
+<constant name="IconTitleSpacing" value="2"/>
+<constant name="SpacerWidth" value="8"/>
+<constant name="SpacerHeight" value="11"/>
+
+<!-- Button Outlines -->
+<draw_ops name="button_normal_bg">
+ <gtk_box state="prelight" shadow="out" x="0" y="0" width="width"
+ height="height"/>
+</draw_ops>
+
+<draw_ops name="button_pressed_bg">
+ <gtk_box state="prelight" shadow="in" x="0" y="0" width="width"
+ height="height"/>
+</draw_ops>
+
+<!-- Button Icons -->
+<draw_ops name="menu_button">
+ <clip x="5" y="5" width="width - 10" height="height - 10"/>
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="true"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width - ButtonIPad * 2 - 1"
+ height="height - ButtonIPad * 2 - 1"/>
+ <line color="gtk:bg[INSENSITIVE]" width="16"
+ x1="width * 1.5 + 2"
+ y1="0"
+ x2="0"
+ y2="height * 1.5 + 2"/>
+</draw_ops>
+<draw_ops name="menu_button_focused">
+ <clip x="5" y="5" width="width - 10" height="height - 10"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="true"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width - ButtonIPad * 2 - 1"
+ height="height - ButtonIPad * 2 - 1"/>
+ <line color="gtk:bg[PRELIGHT]" width="16"
+ x1="width * 1.5 + 2"
+ y1="0"
+ x2="0"
+ y2="height * 1.5 + 2"/>
+</draw_ops>
+
+<draw_ops name="minimize_button">
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="height - ButtonIPad - 4"
+ width="width - ButtonIPad * 2 - 1"
+ height="3"/>
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad + 1"
+ y1="height - ButtonIPad - 2"
+ x2="width - ButtonIPad - 1"
+ y2="height - ButtonIPad - 2"/>
+</draw_ops>
+<draw_ops name="minimize_button_focused">
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width - ButtonIPad * 2 - 1"
+ height="height - ButtonIPad * 2 - 1"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="false"
+ x="ButtonIPad"
+ y="height - ButtonIPad - 4"
+ width="width - ButtonIPad * 2 - 1"
+ height="3"/>
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad + 1"
+ y1="height - ButtonIPad - 2"
+ x2="width - ButtonIPad - 1"
+ y2="height - ButtonIPad - 2"/>
+</draw_ops>
+
+<draw_ops name="maximize_button">
+ <line color="gtk:fg[INSENSITIVE]"
+ x1="ButtonIPad"
+ y1="ButtonIPad + 3"
+ x2="width - ButtonIPad - 1"
+ y2="ButtonIPad + 3"/>
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width-ButtonIPad*2-1"
+ height="height-ButtonIPad*2-1"/>
+</draw_ops>
+<draw_ops name="maximize_button_focused">
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad + 1"
+ y1="ButtonIPad + 2"
+ x2="width - ButtonIPad - 1"
+ y2="ButtonIPad + 2"/>
+ <line color="gtk:fg[NORMAL]"
+ x1="ButtonIPad"
+ y1="ButtonIPad + 3"
+ x2="width - ButtonIPad - 1"
+ y2="ButtonIPad + 3"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width-ButtonIPad*2-1"
+ height="height-ButtonIPad*2-1"/>
+</draw_ops>
+
+<draw_ops name="restore_button">
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width - (ButtonIPad * 2) - 1"
+ height="height - (ButtonIPad * 2) - 1"/>
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad + 3"
+ width="width - (ButtonIPad * 2) - 1 - 3"
+ height="height - (ButtonIPad * 2) - 1 - 3"/>
+ <line color="gtk:fg[INSENSITIVE]"
+ x1="ButtonIPad"
+ y1="ButtonIPad + 3 + 3"
+ x2="width - (ButtonIPad * 2) - 2"
+ y2="ButtonIPad + 3 + 3"/>
+</draw_ops>
+<draw_ops name="restore_button_focused">
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad"
+ width="width - (ButtonIPad * 2) - 1"
+ height="height - (ButtonIPad * 2) - 1"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="false"
+ x="ButtonIPad"
+ y="ButtonIPad + 3"
+ width="width - (ButtonIPad * 2) - 1 - 3"
+ height="height - (ButtonIPad * 2) - 1 - 3"/>
+ <line color="gtk:fg[NORMAL]"
+ x1="ButtonIPad"
+ y1="ButtonIPad + 3 + 3"
+ x2="width - (ButtonIPad * 2) - 2"
+ y2="ButtonIPad + 3 + 3"/>
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad + 1"
+ y1="ButtonIPad + 3 + 2"
+ x2="width - (ButtonIPad * 2) - 1"
+ y2="ButtonIPad + 3 + 2"/>
+</draw_ops>
+
+<draw_ops name="close_button_focused">
+ <line color="gtk:fg[NORMAL]" width="2"
+ x1="ButtonIPad + 1"
+ y1="ButtonIPad + 1"
+ x2="width - ButtonIPad - 2"
+ y2="height - ButtonIPad - 2"/>
+
+ <line color="gtk:fg[NORMAL]" width="2"
+ x1="ButtonIPad"
+ y1="height - ButtonIPad - 2"
+ x2="width - ButtonIPad - 2"
+ y2="ButtonIPad + 1"/>
+</draw_ops>
+<draw_ops name="close_button">
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad + 1"
+ y1="ButtonIPad + 1"
+ x2="width - ButtonIPad - 2"
+ y2="height - ButtonIPad - 2"/>
+ <line color="gtk:fg[INSENSITIVE]" width="2"
+ x1="ButtonIPad"
+ y1="height - ButtonIPad - 2"
+ x2="width - ButtonIPad - 2"
+ y2="ButtonIPad + 1"/>
+</draw_ops>
+<!-- End Buttons Icons -->
+
+<!-- Buttons -->
+<draw_ops name="close_button_normal">
+ <include name="button_normal_bg"/>
+ <include name="close_button_focused"/>
+</draw_ops>
+
+<draw_ops name="close_button_pressed">
+ <include name="button_pressed_bg"/>
+ <include name="close_button_focused"/>
+</draw_ops>
+
+<draw_ops name="menu_button_normal">
+ <include name="button_normal_bg"/>
+ <include name="menu_button_focused"/>
+</draw_ops>
+
+<draw_ops name="menu_button_pressed">
+ <include name="button_pressed_bg"/>
+ <include name="menu_button_focused"/>
+</draw_ops>
+
+<draw_ops name="maximize_button_normal">
+ <include name="button_normal_bg"/>
+ <include name="maximize_button_focused"/>
+</draw_ops>
+
+<draw_ops name="maximize_button_pressed">
+ <include name="button_pressed_bg"/>
+ <include name="maximize_button_focused"/>
+</draw_ops>
+
+<draw_ops name="restore_button_normal">
+ <include name="button_pressed_bg"/>
+ <include name="restore_button_focused"/>
+</draw_ops>
+
+<draw_ops name="restore_button_pressed">
+ <include name="button_pressed_bg"/>
+ <include name="restore_button_focused"/>
+</draw_ops>
+
+<draw_ops name="minimize_button_normal">
+ <include name="button_normal_bg"/>
+ <include name="minimize_button_focused"/>
+</draw_ops>
+
+<draw_ops name="minimize_button_pressed">
+ <include name="button_pressed_bg"/>
+ <include name="minimize_button_focused"/>
+</draw_ops>
+
+<!-- Outer Bevel -->
+<draw_ops name="outer_bevel">
+ <rectangle color="gtk:dark[INSENSITIVE]"
+ x="0" y="0" width="width - 1" height="height - 1"/>
+ <rectangle color="gtk:bg[INSENSITIVE]" filled="true"
+ x="1" y="1" width="width - 2" height="height - 2"/>
+</draw_ops>
+
+<draw_ops name="outer_bevel_focused">
+ <rectangle color="gtk:fg[NORMAL]"
+ x="0" y="0" width="width - 1" height="height - 1"/>
+ <gtk_box state="normal" shadow="out"
+ x="1"
+ y="1"
+ width="width - 2"
+ height="height - 2"/>
+</draw_ops>
+
+<draw_ops name="blank">
+<!-- nothing -->
+</draw_ops>
+
+<draw_ops name="outline">
+ <rectangle color="gtk:fg[INSENSITIVE]"
+ x="left_width-1" y="top_height-1"
+ width="width-left_width-right_width+1"
+ height="height-top_height-bottom_height+1"/>
+</draw_ops>
+
+<draw_ops name="outline_focused">
+ <rectangle color="gtk:fg[NORMAL]"
+ x="left_width-1" y="top_height-1"
+ width="width-left_width-right_width+1"
+ height="height-top_height-bottom_height+1"/>
+</draw_ops>
+
+<draw_ops name="background">
+ <include name="outer_bevel"/>
+ <include name="outline"/>
+</draw_ops>
+
+<draw_ops name="background_focused">
+ <include name="outer_bevel_focused"/>
+ <include name="outline_focused"/>
+</draw_ops>
+
+<draw_ops name="title_background">
+ <gtk_box state="normal" shadow="in" x="0" y="0" width="width"
+ height="height"/>
+ <clip x="2" y="2" width="width - 4" height="height - 4"/>
+ <rectangle color="gtk:bg[SELECTED]" filled="true"
+ x="2"
+ y="2"
+ width="width - 4"
+ height="height - 4"/>
+ <rectangle color="#ffffff" filled="true"
+ x="width - title_width - (IconTitleSpacing * 2) - 2"
+ y="2"
+ width="title_width + (IconTitleSpacing * 2)"
+ height="height - 4"/>
+ <line color="#ffffff" width="32"
+ x1="width - title_width - (IconTitleSpacing * 2) + 36 - 2"
+ y1="0 - 16"
+ x2="width - title_width - (IconTitleSpacing * 2) - 2 - 14"
+ y2="height + 16"/>
+</draw_ops>
+
+<draw_ops name="title_text_focused_with_icon">
+ <clip x="2" y="2" width="width - 4" height="height - 4"/>
+ <title color="#000000"
+ x="width - title_width - IconTitleSpacing - 3"
+ y="((height - title_height) / 2) `max` 0"/>
+ <icon
+ x="width - title_width - mini_icon_width - 8"
+ y="(height-mini_icon_height) / 2"
+ width="mini_icon_width"
+ height="mini_icon_height"/>
+</draw_ops>
+
+<draw_ops name="title_text_focused_no_icon">
+ <clip x="0" y="0" width="width" height="height"/>
+ <title color="#000000"
+ x="width - title_width - IconTitleSpacing - 3"
+ y="((height - title_height) / 2) `max` 0"/>
+</draw_ops>
+
+<draw_ops name="title_text_with_icon">
+ <clip x="2" y="2" width="width - 4" height="height - 4"/>
+ <title color="gtk:fg[INSENSITIVE]"
+ x="width - title_width - IconTitleSpacing - 3"
+ y="((height - title_height) / 2) `max` 0"/>
+ <icon alpha="0.25"
+ x="width - title_width - mini_icon_width - 8"
+ y="(height-mini_icon_height) / 2"
+ width="mini_icon_width"
+ height="mini_icon_height"/>
+</draw_ops>
+
+<draw_ops name="title_text_no_icon">
+ <clip x="2" y="2" width="width - 4" height="height - 4"/>
+ <title color="gtk:fg[INSENSITIVE]"
+ x="width - title_width - IconTitleSpacing - 3"
+ y="((height - title_height) / 2) `max` 0"/>
+</draw_ops>
+
+<draw_ops name="title_normal">
+ <include name="title_text_with_icon"/>
+</draw_ops>
+
+<draw_ops name="title_focused">
+ <include name="title_background"/>
+ <include name="title_text_focused_with_icon"/>
+</draw_ops>
+
+<draw_ops name="title_utility">
+ <include name="title_text_no_icon"/>
+</draw_ops>
+
+<draw_ops name="title_utility_focused">
+ <include name="title_background"/>
+ <include name="title_text_focused_no_icon"/>
+</draw_ops>
+
+<frame_style name="normal_unfocused" geometry="normal">
+ <piece position="entire_background" draw_ops="background"/>
+
+ <!-- we don't specify for prelight, so normal is used -->
+ <button function="close" state="normal" draw_ops="close_button"/>
+ <button function="close" state="pressed" draw_ops="close_button_pressed"/>
+
+ <piece position="title" draw_ops="title_normal"/>
+
+ <button function="menu" state="normal" draw_ops="menu_button"/>
+ <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
+ <button function="maximize" state="normal"
+ draw_ops="maximize_button"/>
+ <button function="maximize" state="pressed"
+ draw_ops="maximize_button_pressed"/>
+ <button function="minimize" state="normal"
+ draw_ops="minimize_button"/>
+ <button function="minimize" state="pressed"
+ draw_ops="minimize_button_pressed"/>
+</frame_style>
+
+<frame_style name="normal_focused" geometry="normal" parent="normal_unfocused">
+ <piece position="entire_background" draw_ops="background_focused"/>
+ <piece position="title" draw_ops="title_focused"/>
+
+ <button function="close" state="normal" draw_ops="close_button_normal"/>
+ <button function="menu" state="normal" draw_ops="menu_button_normal"/>
+ <button function="maximize" state="normal"
+ draw_ops="maximize_button_normal"/>
+ <button function="minimize" state="normal"
+ draw_ops="minimize_button_normal"/>
+</frame_style>
+
+<frame_style name="maximized_unfocused" geometry="normal_small_borders"
+ parent="normal_unfocused">
+ <piece position="entire_background" draw_ops="blank"/>
+ <button function="maximize" state="normal"
+ draw_ops="restore_button"/>
+ <button function="maximize" state="pressed"
+ draw_ops="restore_button_pressed"/>
+</frame_style>
+
+<frame_style name="maximized_focused" geometry="normal_small_borders"
+ parent="normal_focused">
+ <piece position="entire_background" draw_ops="outline_focused"/>
+ <button function="maximize" state="normal"
+ draw_ops="restore_button_normal"/>
+ <button function="maximize" state="pressed"
+ draw_ops="restore_button_pressed"/>
+</frame_style>
+
+<frame_style name="utility_unfocused" geometry="utility"
+ parent="normal_unfocused">
+ <piece position="title" draw_ops="title_utility"/>
+</frame_style>
+
+<frame_style name="utility_focused" geometry="utility" parent="normal_focused">
+ <piece position="title" draw_ops="title_utility_focused"/>
+</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="maximized_focused"/>
+<frame focus="no" state="maximized" style="maximized_unfocused"/>
+<frame focus="yes" state="shaded" style="normal_focused"/>
+<frame focus="no" state="shaded" style="normal_unfocused"/>
+<frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
+<frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
+</frame_style_set>
+
+<frame_style_set name="utility" parent="normal">
+<frame focus="yes" state="normal" resize="both" style="utility_focused"/>
+<frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
+<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
+<frame focus="yes" state="maximized" style="utility_focused"/>
+<frame focus="no" state="maximized" style="utility_unfocused"/>
+<frame focus="yes" state="shaded" style="utility_focused"/>
+<frame focus="no" state="shaded" style="utility_unfocused"/>
+<frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
+<frame focus="no" state="maximized_and_shaded" style="utility_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="utility"/>
+
+<menu_icon function="close" state="normal"
+ draw_ops="close_button_focused"/>
+<menu_icon function="maximize" state="normal"
+ draw_ops="maximize_button_focused"/>
+<menu_icon function="unmaximize" state="normal"
+ draw_ops="restore_button_focused"/>
+<menu_icon function="minimize" state="normal"
+ draw_ops="minimize_button_focused"/>
+
+</metacity_theme>
diff --git a/src/themes/Makefile.am b/src/themes/Makefile.am
index 429a217..6e5845f 100644
--- a/src/themes/Makefile.am
+++ b/src/themes/Makefile.am
@@ -2,6 +2,7 @@ THEMES= \
Atlanta \
Bright \
Crux \
+ Esco \
Gorilla
THEME_DIR=$(pkgdatadir)/themes