diff options
author | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2006-04-25 00:02:27 +0000 |
---|---|---|
committer | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2006-04-25 00:02:27 +0000 |
commit | f10373555fcbdd4e45167b337145d9ee200a967c (patch) | |
tree | 62156c1a8a7fcf7469c397f419cb96232960831a | |
parent | c4888b0bbe8a0948475209f64cc5ac7694256a59 (diff) | |
download | metacity-f10373555fcbdd4e45167b337145d9ee200a967c.tar.gz |
first (partial) attempt at a version 2 theme (this only has the buttons from #96229)
-rw-r--r-- | src/themes/Crux/active-above-button.png | bin | 0 -> 197 bytes | |||
-rw-r--r-- | src/themes/Crux/active-shade-button.png | bin | 0 -> 296 bytes | |||
-rw-r--r-- | src/themes/Crux/active-stick-button.png | bin | 0 -> 249 bytes | |||
-rw-r--r-- | src/themes/Crux/active-unabove-button.png | bin | 0 -> 205 bytes | |||
-rw-r--r-- | src/themes/Crux/active-unshade-button.png | bin | 0 -> 261 bytes | |||
-rw-r--r-- | src/themes/Crux/active-unstick-button.png | bin | 0 -> 248 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-above-button.png | bin | 0 -> 205 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-shade-button.png | bin | 0 -> 213 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-stick-button.png | bin | 0 -> 200 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-unabove-button.png | bin | 0 -> 212 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-unshade-button.png | bin | 0 -> 204 bytes | |||
-rw-r--r-- | src/themes/Crux/inactive-unstick-button.png | bin | 0 -> 190 bytes | |||
-rw-r--r-- | src/themes/Crux/metacity-theme-2.xml | 706 |
13 files changed, 706 insertions, 0 deletions
diff --git a/src/themes/Crux/active-above-button.png b/src/themes/Crux/active-above-button.png Binary files differnew file mode 100644 index 00000000..0eec82b8 --- /dev/null +++ b/src/themes/Crux/active-above-button.png diff --git a/src/themes/Crux/active-shade-button.png b/src/themes/Crux/active-shade-button.png Binary files differnew file mode 100644 index 00000000..2c86470e --- /dev/null +++ b/src/themes/Crux/active-shade-button.png diff --git a/src/themes/Crux/active-stick-button.png b/src/themes/Crux/active-stick-button.png Binary files differnew file mode 100644 index 00000000..2bb224c5 --- /dev/null +++ b/src/themes/Crux/active-stick-button.png diff --git a/src/themes/Crux/active-unabove-button.png b/src/themes/Crux/active-unabove-button.png Binary files differnew file mode 100644 index 00000000..af1104ce --- /dev/null +++ b/src/themes/Crux/active-unabove-button.png diff --git a/src/themes/Crux/active-unshade-button.png b/src/themes/Crux/active-unshade-button.png Binary files differnew file mode 100644 index 00000000..ddaf11f5 --- /dev/null +++ b/src/themes/Crux/active-unshade-button.png diff --git a/src/themes/Crux/active-unstick-button.png b/src/themes/Crux/active-unstick-button.png Binary files differnew file mode 100644 index 00000000..2936b166 --- /dev/null +++ b/src/themes/Crux/active-unstick-button.png diff --git a/src/themes/Crux/inactive-above-button.png b/src/themes/Crux/inactive-above-button.png Binary files differnew file mode 100644 index 00000000..dd6de031 --- /dev/null +++ b/src/themes/Crux/inactive-above-button.png diff --git a/src/themes/Crux/inactive-shade-button.png b/src/themes/Crux/inactive-shade-button.png Binary files differnew file mode 100644 index 00000000..93ff14b2 --- /dev/null +++ b/src/themes/Crux/inactive-shade-button.png diff --git a/src/themes/Crux/inactive-stick-button.png b/src/themes/Crux/inactive-stick-button.png Binary files differnew file mode 100644 index 00000000..14ffd9ed --- /dev/null +++ b/src/themes/Crux/inactive-stick-button.png diff --git a/src/themes/Crux/inactive-unabove-button.png b/src/themes/Crux/inactive-unabove-button.png Binary files differnew file mode 100644 index 00000000..bc1052d9 --- /dev/null +++ b/src/themes/Crux/inactive-unabove-button.png diff --git a/src/themes/Crux/inactive-unshade-button.png b/src/themes/Crux/inactive-unshade-button.png Binary files differnew file mode 100644 index 00000000..982abeac --- /dev/null +++ b/src/themes/Crux/inactive-unshade-button.png diff --git a/src/themes/Crux/inactive-unstick-button.png b/src/themes/Crux/inactive-unstick-button.png Binary files differnew file mode 100644 index 00000000..e4822729 --- /dev/null +++ b/src/themes/Crux/inactive-unstick-button.png diff --git a/src/themes/Crux/metacity-theme-2.xml b/src/themes/Crux/metacity-theme-2.xml new file mode 100644 index 00000000..4102ef23 --- /dev/null +++ b/src/themes/Crux/metacity-theme-2.xml @@ -0,0 +1,706 @@ +<?xml version="1.0"?> +<metacity_theme> +<info> + <name>Crux</name> + <author>Anders Carlsson <andersca@gnu.org></author> + <copyright>Â Eazel Inc, 2000</copyright> + <date>February 6, 2002</date> + <description>A port of the Crux theme by Arlo Rose and John Harper</description> +</info> + +<!-- define constants --> +<constant name="IconTitleSpacing" value="2"/> <!-- Space between menu button and title --> +<constant name="CenterTitlePieceWidth" value="48"/> <!-- Width of center title piece --> +<constant name="ButtonWidth" value="16"/> <!-- Button width --> + +<frame_geometry name="normal"> + <distance name="left_width" value="5"/> + <distance name="right_width" value="6"/> + <distance name="bottom_height" value="6"/> + <distance name="left_titlebar_edge" value="5"/> + <distance name="right_titlebar_edge" value="6"/> + <aspect_ratio name="button" value="1.0"/> + <distance name="title_vertical_pad" value="0"/> + <border name="title_border" left="0" right="0" top="3" bottom="3"/> + <border name="button_border" left="0" right="0" top="3" bottom="3"/> +</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="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> + +<!-- Buttons --> + +<draw_ops name="active_button"> + <image filename="active-button.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<draw_ops name="active_button_pressed"> + <image filename="active-button-pressed.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<draw_ops name="active_button_prelight"> + <image filename="active-button-prelight.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<draw_ops name="inactive_button"> + <image filename="inactive-button.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<draw_ops name="inactive_button_pressed"> + <image filename="inactive-button-pressed.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<draw_ops name="inactive_button_prelight"> + <image filename="inactive-button-prelight.png" x="0" y="0" width="width" height="height"/> +</draw_ops> + +<!-- Inactive style --> +<frame_style name="normal" geometry="normal"> + <piece position="left_edge"> + <draw_ops> + <image filename="inactive-left-border.png" x="0" y="0" width="object_width" height="height"/> + </draw_ops> + </piece> + + <piece position="right_edge"> + <draw_ops> + <image filename="inactive-right-border.png" x="0" y="0" width="object_width" height="height"/> + </draw_ops> + </piece> + + <piece position="title"> + <draw_ops> + <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="0"/> + </draw_ops> + </piece> + + <piece position="titlebar"> + <draw_ops> + + <image filename="inactive-left-top-border.png" + x="0" y="0" width="object_width" height="height"/> + <image filename="inactive-right-top-border.png" + x="width - object_width" y="0" width="object_width" height="height"/> + + <image filename="inactive-top-center-left.png" + x="4" y="0" + width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" + height="height"/> + + <image filename="inactive-top-center-mid.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1" + y="0" width="object_width * height / 22" height="height"/> + + <image filename="inactive-top-center-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1" + y="0" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)" + height="height"/> + + </draw_ops> + </piece> + + <!-- We have to draw the bottom edge in the background piece + because that's the only way we can get the correct window height --> + <piece position="overlay"> + <draw_ops> + <image filename="inactive-bottom-left-corner.png" + x="0" y="height - object_height" width="object_width" height="object_height"/> + <image filename="inactive-bottom-left-border.png" x="5" y="height - object_height" + width="((title_width + height / 2 - 4) `min` (width - object_width - 26))" + height="object_height"/> + <image filename="inactive-bottom-mid-border.png" + x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" + y="height - object_height" width="object_width" height="object_height"/> + + <image filename="inactive-bottom-right-border.png" + x="((title_width + height / 2 + 32)) + 1" + y="height - object_height" + width="(width - title_width - height / 2 - 32 - 7) `max` 0" + height="object_height"/> + + <image filename="inactive-bottom-right-corner.png" + x="width - object_width" y="height - object_height" width="object_height" height="object_height"/> + + </draw_ops> + </piece> + + <button function="close" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="close" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="close" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-maximize-button.png" x="2" y="2" width="width - 4" height="height - 4"/> + </draw_ops> + </button> + + <button function="maximize" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="menu" state="normal"> + <draw_ops> + <image filename="inactive-menu-button.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> + + <button function="menu" state="pressed"> + <draw_ops> + <image filename="inactive-menu-button-pressed.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> + + <button function="menu" state="prelight"> + <draw_ops> + <image filename="inactive-menu-button-prelight.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> +</frame_style> + +<frame_style name="normal_maximized" parent="normal"> + <button function="maximize" state="normal"> + <draw_ops> + <include name="inactive_button"/> + <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="pressed"> + <draw_ops> + <include name="inactive_button_pressed"/> + <image filename="inactive-restore-button.png" x="2" y="2" width="width - 4" height="height - 4"/> + </draw_ops> + </button> + + <button function="maximize" state="prelight"> + <draw_ops> + <include name="inactive_button_prelight"/> + <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + +</frame_style> + +<!-- Active (focused) shaded style --> + <frame_style name="normal_shaded" geometry="normal" parent="normal"> + <piece position="left_titlebar_edge"> + <draw_ops> + <image filename="inactive-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/> + </draw_ops> + </piece> + <piece position="right_titlebar_edge"> + <draw_ops> + <image filename="inactive-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/> + </draw_ops> + </piece> + </frame_style> + + +<!-- Active (focused) style --> +<frame_style name="focused" geometry="normal"> + <piece position="left_edge"> + <draw_ops> + <image colorize="gtk:bg[SELECTED]" filename="active-left-border.png" x="0" y="0" width="object_width" height="height"/> + </draw_ops> + </piece> + + <piece position="right_edge"> + <draw_ops> + <image filename="active-right-border.png" x="0" y="0" width="object_width" height="height"/> + </draw_ops> + </piece> + + <piece position="title"> + <draw_ops> + <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="((height - title_height) / 2) `max` 0"/> + </draw_ops> + </piece> + + <piece position="titlebar"> + <draw_ops> + + <image filename="active-left-top-border.png" + colorize="gtk:bg[SELECTED]" + x="0" y="0" width="object_width" height="height"/> + + <image filename="active-right-top-border.png" + x="width - object_width" y="0" width="object_width" height="height"/> + + <image filename="active-top-center-left.png" + colorize="gtk:bg[SELECTED]" + x="4" y="0" + width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" + height="height"/> + + <image filename="active-top-center-mid-left.png" + colorize="gtk:bg[SELECTED]" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1" + y="0" width="object_width * height / 22" height="height"/> + + <image filename="active-top-center-mid-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1" + y="0" width="object_width * height / 22" height="height"/> + + <image filename="active-top-center-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1" + y="0" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)" + height="height"/> + + </draw_ops> + </piece> + + <!-- We have to draw the bottom edge in the background piece + because that's the only way we can get the correct window height --> + <piece position="overlay"> + <draw_ops> + <image filename="active-bottom-left-corner.png" + colorize="gtk:bg[SELECTED]" + x="0" y="height - object_height" width="object_width" height="object_height"/> + <image filename="active-bottom-left-border.png" x="5" y="height - object_height" + colorize="gtk:bg[SELECTED]" + width="((title_width + height / 2 - 4) `min` (width - object_width - 26))" + height="object_height"/> + <image filename="active-bottom-mid-left-border.png" + colorize="gtk:bg[SELECTED]" + x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" + y="height - object_height" width="object_width" height="object_height"/> + <image filename="active-bottom-mid-right-border.png" + x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" + y="height - object_height" width="object_width" height="object_height"/> + + <image filename="active-bottom-right-border.png" + x="((title_width + height / 2 + 32)) + 1" + y="height - object_height" + width="(width - title_width - height / 2 - 32 - 7) `max` 0" + height="object_height"/> + + <image filename="active-bottom-right-corner.png" + x="width - object_width" y="height - object_height" width="object_height" height="object_height"/> + + </draw_ops> + </piece> + + <button function="close" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="close" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="close" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="minimize" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="shade" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="above" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="stick" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="menu" state="normal"> + <draw_ops> + <image colorize="gtk:bg[SELECTED]" filename="active-menu-button.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> + + <button function="menu" state="pressed"> + <draw_ops> + <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-pressed.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> + <button function="menu" state="prelight"> + <draw_ops> + <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-prelight.png" x="0" y="0" width="width" height="height"/> + </draw_ops> + </button> +</frame_style> + +<frame_style name="focused_maximized" geometry="normal" parent="focused"> + <button function="maximize" state="normal"> + <draw_ops> + <include name="active_button"/> + <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="pressed"> + <draw_ops> + <include name="active_button_pressed"/> + <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + + <button function="maximize" state="prelight"> + <draw_ops> + <include name="active_button_prelight"/> + <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/> + </draw_ops> + </button> + +</frame_style> + +<!-- Active (focused) shaded style --> +<frame_style name="focused_shaded" geometry="normal" parent="focused"> + <piece position="left_titlebar_edge"> + <draw_ops> + <image colorize="gtk:bg[SELECTED]" filename="active-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/> + </draw_ops> + </piece> + <piece position="right_titlebar_edge"> + <draw_ops> + <image filename="active-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/> + </draw_ops> + </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"/> +<frame focus="yes" state="maximized" style="focused_maximized"/> +<frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/> +<frame focus="no" state="normal" resize="both" style="normal"/> +<frame focus="no" state="shaded" style="normal_shaded"/> +<frame focus="no" state="maximized" style="normal_maximized"/> +<frame focus="no" state="maximized_and_shaded" style="normal_maximized"/> +</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> + <image filename="active-close-button.png" + x="(width - object_width) / 2" + y="(height - object_height) / 2" + width="object_width" height="object_height"/> + </draw_ops> +</menu_icon> + +<menu_icon function="maximize" state="normal"> + <draw_ops> + <image filename="active-maximize-button.png" + x="(width - object_width) / 2" + y="(height - object_height) / 2" + width="object_width" height="object_height"/> + </draw_ops> +</menu_icon> + + +<menu_icon function="minimize" state="normal"> + <draw_ops> + <image filename="active-minimize-button.png" + x="(width - object_width) / 2" + y="(height - object_height) / 2" + width="object_width" height="object_height"/> + </draw_ops> +</menu_icon> + +<menu_icon function="unmaximize" state="normal"> + <draw_ops> + </draw_ops> +</menu_icon> + +</metacity_theme> |