summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
authorJames M. Cape <jcape@ignore-your.tv>2002-06-23 00:39:52 +0000
committerJames M. Cape <jcape@src.gnome.org>2002-06-23 00:39:52 +0000
commit6e577c12c12160f1a1f34d00474e4acd5df0f2dd (patch)
treef48361a4fdf0b76c83256e921fa4442b323b7a3f /src/themes
parent97b629ad5b547e1e803ab68538fbc43a5089f5b0 (diff)
downloadmetacity-6e577c12c12160f1a1f34d00474e4acd5df0f2dd.tar.gz
Update for "border" frame stuff, minor button/spacing improvements.
2002-06-22 James M. Cape <jcape@ignore-your.tv> * src/themes/Esco/metacity-theme-1.xml: Update for "border" frame stuff, minor button/spacing improvements.
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/Esco/metacity-theme-1.xml122
1 files changed, 86 insertions, 36 deletions
diff --git a/src/themes/Esco/metacity-theme-1.xml b/src/themes/Esco/metacity-theme-1.xml
index 43ad4415..b5a802ba 100644
--- a/src/themes/Esco/metacity-theme-1.xml
+++ b/src/themes/Esco/metacity-theme-1.xml
@@ -17,8 +17,8 @@
<distance name="right_titlebar_edge" value="5"/>
<aspect_ratio name="button" value="1.0"/>
<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="6" bottom="5"/>
+ <border name="title_border" left="3" right="3" top="4" bottom="4"/>
+ <border name="button_border" left="0" right="0" top="5" bottom="5"/>
</frame_geometry>
<!-- strip borders off the normal geometry -->
@@ -28,8 +28,8 @@
<distance name="bottom_height" value="0"/>
<distance name="left_titlebar_edge" value="0"/>
<distance name="right_titlebar_edge" value="0"/>
- <border name="title_border" left="3" right="3" top="2" bottom="3"/>
- <border name="button_border" left="0" right="0" top="0" bottom="0"/>
+ <border name="title_border" left="3" right="3" top="0" bottom="3"/>
+ <border name="button_border" left="0" right="0" top="0" bottom="3"/>
</frame_geometry>
<frame_geometry name="utility" title_scale="xx-small">
@@ -44,6 +44,19 @@
<border name="button_border" left="0" right="0" top="2" bottom="2"/>
</frame_geometry>
+<frame_geometry name="border" has_title="false">
+ <distance name="left_width" value="5"/>
+ <distance name="right_width" value="5"/>
+ <distance name="bottom_height" value="5"/>
+ <distance name="left_titlebar_edge" value="0"/>
+ <distance name="right_titlebar_edge" value="0"/>
+ <distance name="button_width" value="0"/>
+ <distance name="button_height" value="0"/>
+ <distance name="title_vertical_pad" value="5"/>
+ <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>
+
<!-- define constants -->
<constant name="ArrowWidth" value="7"/>
<constant name="ArrowHeight" value="5"/>
@@ -153,14 +166,14 @@
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"/>
+ y="ButtonIPad + 4"
+ width="width - (ButtonIPad * 2) - 1 - 4"
+ height="height - (ButtonIPad * 2) - 1 - 4"/>
<line color="gtk:fg[INSENSITIVE]"
x1="ButtonIPad"
- y1="ButtonIPad + 3 + 3"
- x2="width - (ButtonIPad * 2) - 2"
- y2="ButtonIPad + 3 + 3"/>
+ y1="ButtonIPad + 3 + 4"
+ x2="width - (ButtonIPad * 2) - 3"
+ y2="ButtonIPad + 3 + 4"/>
</draw_ops>
<draw_ops name="restore_button_focused">
<rectangle color="gtk:fg[INSENSITIVE]" filled="false"
@@ -170,19 +183,19 @@
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"/>
+ y="ButtonIPad + 4"
+ width="width - (ButtonIPad * 2) - 1 - 4"
+ height="height - (ButtonIPad * 2) - 1 - 4"/>
<line color="gtk:fg[NORMAL]"
x1="ButtonIPad"
- y1="ButtonIPad + 3 + 3"
- x2="width - (ButtonIPad * 2) - 2"
- y2="ButtonIPad + 3 + 3"/>
+ y1="ButtonIPad + 3 + 4"
+ x2="width - (ButtonIPad * 2) - 3"
+ y2="ButtonIPad + 3 + 4"/>
<line color="gtk:fg[INSENSITIVE]" width="2"
x1="ButtonIPad + 1"
- y1="ButtonIPad + 3 + 2"
- x2="width - (ButtonIPad * 2) - 1"
- y2="ButtonIPad + 3 + 2"/>
+ y1="ButtonIPad + 4 + 2"
+ x2="width - (ButtonIPad * 2) - 2"
+ y2="ButtonIPad + 4 + 2"/>
</draw_ops>
<draw_ops name="close_button_focused">
@@ -197,6 +210,16 @@
y1="height - ButtonIPad - 2"
x2="width - ButtonIPad - 2"
y2="ButtonIPad + 1"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="false"
+ x="width - ButtonIPad - 3"
+ y="height - ButtonIPad - 3"
+ width="1"
+ height="1"/>
+ <rectangle color="gtk:fg[NORMAL]" filled="false"
+ x="width - ButtonIPad - 3"
+ y="ButtonIPad + 1"
+ width="1"
+ height="1"/>
</draw_ops>
<draw_ops name="close_button">
<line color="gtk:fg[INSENSITIVE]" width="2"
@@ -209,6 +232,16 @@
y1="height - ButtonIPad - 2"
x2="width - ButtonIPad - 2"
y2="ButtonIPad + 1"/>
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="width - ButtonIPad - 3"
+ y="height - ButtonIPad - 3"
+ width="1"
+ height="1"/>
+ <rectangle color="gtk:fg[INSENSITIVE]" filled="false"
+ x="width - ButtonIPad - 3"
+ y="ButtonIPad + 1"
+ width="1"
+ height="1"/>
</draw_ops>
<!-- End Buttons Icons -->
@@ -244,7 +277,7 @@
</draw_ops>
<draw_ops name="restore_button_normal">
- <include name="button_pressed_bg"/>
+ <include name="button_normal_bg"/>
<include name="restore_button_focused"/>
</draw_ops>
@@ -446,27 +479,43 @@
<piece position="title" draw_ops="title_utility_focused"/>
</frame_style>
+<frame_style name="border" geometry="border" parent="normal_unfocused">
+ <piece position="entire_background" draw_ops="outer_bevel"/>
+ <piece position="title" draw_ops="blank"/>
+</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 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"/>
+ <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 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>
+
+<frame_style_set name="border">
+ <frame focus="yes" state="normal" resize="both" style="border"/>
+ <frame focus="no" state="normal" resize="both" style="border"/>
+ <frame focus="yes" state="maximized" style="border"/>
+ <frame focus="no" state="maximized" style="border"/>
+ <frame focus="yes" state="shaded" style="border"/>
+ <frame focus="no" state="shaded" style="border"/>
+ <frame focus="yes" state="maximized_and_shaded" style="border"/>
+ <frame focus="no" state="maximized_and_shaded" style="border"/>
</frame_style_set>
<window type="normal" style_set="normal"/>
@@ -474,6 +523,7 @@
<window type="modal_dialog" style_set="normal"/>
<window type="menu" style_set="normal"/>
<window type="utility" style_set="utility"/>
+<window type="border" style_set="border"/>
<menu_icon function="close" state="normal"
draw_ops="close_button_focused"/>