summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2002-06-25 04:11:20 +0000
committerMark McLoughlin <mmclouglin@src.gnome.org>2002-06-25 04:11:20 +0000
commitb3a72a61fd982cdacb505008cca70bd2e17fcadd (patch)
treebb04ead0a3d4450bc2adc1cc54ac024d71f1c82e /src/themes
parentf94a3d08e02a3aedc37ad5aad6135c5d4aefe907 (diff)
downloadmetacity-b3a72a61fd982cdacb505008cca70bd2e17fcadd.tar.gz
added support for border only windows.
2002-06-25 Mark McLoughlin <mark@skynet.ie> * src/themes/Crux/active-border-top-left-border.png: * src/themes/Crux/active-border-top-right-border.png: * src/themes/Crux/active-top-left-corner.png: * src/themes/Crux/active-top-mid-left-border.png: * src/themes/Crux/active-top-mid-right-border.png: * src/themes/Crux/active-top-right-corner.png: * src/themes/Crux/inactive-border-top-left-border.png: * src/themes/Crux/inactive-border-top-right-border.png: * src/themes/Crux/inactive-top-left-corner.png: * src/themes/Crux/inactive-top-mid-border.png: * src/themes/Crux/inactive-top-right-corner.png: * src/themes/Crux/metacity-theme-1.xml: added support for border only windows.
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/Crux/active-border-top-left-border.pngbin0 -> 176 bytes
-rw-r--r--src/themes/Crux/active-border-top-right-border.pngbin0 -> 177 bytes
-rw-r--r--src/themes/Crux/active-top-left-corner.pngbin0 -> 184 bytes
-rw-r--r--src/themes/Crux/active-top-mid-left-border.pngbin0 -> 237 bytes
-rw-r--r--src/themes/Crux/active-top-mid-right-border.pngbin0 -> 276 bytes
-rw-r--r--src/themes/Crux/active-top-right-corner.pngbin0 -> 190 bytes
-rw-r--r--src/themes/Crux/inactive-border-top-left-border.pngbin0 -> 175 bytes
-rw-r--r--src/themes/Crux/inactive-border-top-right-border.pngbin0 -> 177 bytes
-rw-r--r--src/themes/Crux/inactive-top-left-corner.pngbin0 -> 194 bytes
-rw-r--r--src/themes/Crux/inactive-top-mid-border.pngbin0 -> 273 bytes
-rw-r--r--src/themes/Crux/inactive-top-right-corner.pngbin0 -> 190 bytes
-rw-r--r--src/themes/Crux/metacity-theme-1.xml77
12 files changed, 77 insertions, 0 deletions
diff --git a/src/themes/Crux/active-border-top-left-border.png b/src/themes/Crux/active-border-top-left-border.png
new file mode 100644
index 00000000..ea1e6651
--- /dev/null
+++ b/src/themes/Crux/active-border-top-left-border.png
Binary files differ
diff --git a/src/themes/Crux/active-border-top-right-border.png b/src/themes/Crux/active-border-top-right-border.png
new file mode 100644
index 00000000..521735b9
--- /dev/null
+++ b/src/themes/Crux/active-border-top-right-border.png
Binary files differ
diff --git a/src/themes/Crux/active-top-left-corner.png b/src/themes/Crux/active-top-left-corner.png
new file mode 100644
index 00000000..ab2ab519
--- /dev/null
+++ b/src/themes/Crux/active-top-left-corner.png
Binary files differ
diff --git a/src/themes/Crux/active-top-mid-left-border.png b/src/themes/Crux/active-top-mid-left-border.png
new file mode 100644
index 00000000..4ab63aea
--- /dev/null
+++ b/src/themes/Crux/active-top-mid-left-border.png
Binary files differ
diff --git a/src/themes/Crux/active-top-mid-right-border.png b/src/themes/Crux/active-top-mid-right-border.png
new file mode 100644
index 00000000..1fa16504
--- /dev/null
+++ b/src/themes/Crux/active-top-mid-right-border.png
Binary files differ
diff --git a/src/themes/Crux/active-top-right-corner.png b/src/themes/Crux/active-top-right-corner.png
new file mode 100644
index 00000000..66b9dea3
--- /dev/null
+++ b/src/themes/Crux/active-top-right-corner.png
Binary files differ
diff --git a/src/themes/Crux/inactive-border-top-left-border.png b/src/themes/Crux/inactive-border-top-left-border.png
new file mode 100644
index 00000000..61e7dc96
--- /dev/null
+++ b/src/themes/Crux/inactive-border-top-left-border.png
Binary files differ
diff --git a/src/themes/Crux/inactive-border-top-right-border.png b/src/themes/Crux/inactive-border-top-right-border.png
new file mode 100644
index 00000000..819d66c7
--- /dev/null
+++ b/src/themes/Crux/inactive-border-top-right-border.png
Binary files differ
diff --git a/src/themes/Crux/inactive-top-left-corner.png b/src/themes/Crux/inactive-top-left-corner.png
new file mode 100644
index 00000000..7f628b61
--- /dev/null
+++ b/src/themes/Crux/inactive-top-left-corner.png
Binary files differ
diff --git a/src/themes/Crux/inactive-top-mid-border.png b/src/themes/Crux/inactive-top-mid-border.png
new file mode 100644
index 00000000..67dc741e
--- /dev/null
+++ b/src/themes/Crux/inactive-top-mid-border.png
Binary files differ
diff --git a/src/themes/Crux/inactive-top-right-corner.png b/src/themes/Crux/inactive-top-right-corner.png
new file mode 100644
index 00000000..f61fa567
--- /dev/null
+++ b/src/themes/Crux/inactive-top-right-corner.png
Binary files differ
diff --git a/src/themes/Crux/metacity-theme-1.xml b/src/themes/Crux/metacity-theme-1.xml
index ffe56d19..88da751d 100644
--- a/src/themes/Crux/metacity-theme-1.xml
+++ b/src/themes/Crux/metacity-theme-1.xml
@@ -26,6 +26,18 @@
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>
+<frame_geometry name="border" has_title="false">
+ <distance name="left_width" value="5"/>
+ <distance name="right_width" value="6"/>
+ <distance name="bottom_height" value="6"/>
+ <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="6"/>
+ <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>
<!-- Buttons -->
@@ -407,6 +419,59 @@
</piece>
</frame_style>
+<!-- Inactive border style -->
+<frame_style name="border_unfocused" geometry="border" parent="normal">
+ <piece position="title"><draw_ops/></piece>
+ <piece position="titlebar">
+ <draw_ops>
+ <image filename="inactive-top-left-corner.png"
+ x="0" y="0" width="object_width" height="object_height"/>
+ <image filename="inactive-border-top-left-border.png" x="5" y="0"
+ width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
+ height="object_height"/>
+ <image filename="inactive-top-mid-border.png"
+ x="((title_width + height / 2) `min` (width - object_width - 6)) + 1"
+ y="0" width="object_width" height="object_height"/>
+ <image filename="inactive-border-top-right-border.png"
+ x="((title_width + height / 2 + 32)) + 1"
+ y="0"
+ width="(width - title_width - height / 2 - 32 - 7) `max` 0"
+ height="object_height"/>
+ <image filename="inactive-top-right-corner.png"
+ x="width - object_width" y="0" width="object_height" height="object_height"/>
+ </draw_ops>
+ </piece>
+</frame_style>
+
+<!-- Active (focused) border style -->
+<frame_style name="border_focused" geometry="border" parent="focused">
+ <piece position="title"><draw_ops/></piece>
+ <piece position="titlebar">
+ <draw_ops>
+ <image filename="active-top-left-corner.png"
+ colorize="gtk:bg[SELECTED]"
+ x="0" y="0" width="object_width" height="object_height"/>
+ <image filename="active-border-top-left-border.png"
+ colorize="gtk:bg[SELECTED]" x="5" y="0"
+ width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
+ height="object_height"/>
+ <image filename="active-top-mid-left-border.png"
+ colorize="gtk:bg[SELECTED]"
+ x="((title_width + height / 2) `min` (width - object_width - 6)) + 1"
+ y="0" width="object_width" height="object_height"/>
+ <image filename="active-top-mid-right-border.png"
+ x="((title_width + height / 2) `min` (width - object_width - 6)) + 1"
+ y="0" width="object_width" height="object_height"/>
+ <image filename="active-border-top-right-border.png"
+ x="((title_width + height / 2 + 32)) + 1" y="0"
+ width="(width - title_width - height / 2 - 32 - 7) `max` 0"
+ height="object_height"/>
+ <image filename="active-top-right-corner.png"
+ x="width - object_width" y="0" width="object_height" height="object_height"/>
+ </draw_ops>
+ </piece>
+</frame_style>
+
<frame_style_set name="normal">
<frame focus="yes" state="shaded" style="focused_shaded"/>
<frame focus="yes" state="normal" resize="both" style="focused"/>
@@ -418,11 +483,23 @@
<frame focus="no" state="maximized_and_shaded" style="normal_shaded"/>
</frame_style_set>
+<frame_style_set name="border">
+<frame focus="yes" state="normal" resize="both" style="border_focused"/>
+<frame focus="yes" state="maximized" style="border_focused"/>
+<frame focus="yes" state="shaded" style="border_focused"/>
+<frame focus="yes" state="maximized_and_shaded" style="border_focused"/>
+<frame focus="no" state="normal" resize="both" style="border_unfocused"/>
+<frame focus="no" state="maximized" style="border_unfocused"/>
+<frame focus="no" state="shaded" style="border_unfocused"/>
+<frame focus="no" state="maximized_and_shaded" style="border_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="border"/>
<menu_icon function="close" state="normal">
<draw_ops>