diff options
author | Anders Carlsson <andersca@gnu.org> | 2002-02-06 23:08:00 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2002-02-06 23:08:00 +0000 |
commit | 41e5fbb96330bdb999dd44a2a338447d0d614bf7 (patch) | |
tree | 3a70a45b9148dddb50ea61fcb51b0ffdba48c4a6 /src/themes/Crux | |
parent | 9c5809ce5eead4cfec81136985a5402fa104d4c9 (diff) | |
download | metacity-41e5fbb96330bdb999dd44a2a338447d0d614bf7.tar.gz metacity-41e5fbb96330bdb999dd44a2a338447d0d614bf7.tar.bz2 |
src/themes/Crux/metacity-theme-1.xml Add Crux theme
2002-02-07 Anders Carlsson <andersca@gnu.org>
* src/themes/Crux/metacity-theme-1.xml
* src/themes/Crux/*.png:
Add Crux theme
Diffstat (limited to 'src/themes/Crux')
59 files changed, 476 insertions, 0 deletions
diff --git a/src/themes/Crux/active-bottom-left-border.png b/src/themes/Crux/active-bottom-left-border.png Binary files differnew file mode 100644 index 0000000..520c357 --- /dev/null +++ b/src/themes/Crux/active-bottom-left-border.png diff --git a/src/themes/Crux/active-bottom-left-corner.png b/src/themes/Crux/active-bottom-left-corner.png Binary files differnew file mode 100644 index 0000000..447f266 --- /dev/null +++ b/src/themes/Crux/active-bottom-left-corner.png diff --git a/src/themes/Crux/active-bottom-mid-left-border.png b/src/themes/Crux/active-bottom-mid-left-border.png Binary files differnew file mode 100644 index 0000000..7fa6adf --- /dev/null +++ b/src/themes/Crux/active-bottom-mid-left-border.png diff --git a/src/themes/Crux/active-bottom-mid-right-border.png b/src/themes/Crux/active-bottom-mid-right-border.png Binary files differnew file mode 100644 index 0000000..63da8e9 --- /dev/null +++ b/src/themes/Crux/active-bottom-mid-right-border.png diff --git a/src/themes/Crux/active-bottom-right-border.png b/src/themes/Crux/active-bottom-right-border.png Binary files differnew file mode 100644 index 0000000..ed25d07 --- /dev/null +++ b/src/themes/Crux/active-bottom-right-border.png diff --git a/src/themes/Crux/active-bottom-right-corner.png b/src/themes/Crux/active-bottom-right-corner.png Binary files differnew file mode 100644 index 0000000..ac34cac --- /dev/null +++ b/src/themes/Crux/active-bottom-right-corner.png diff --git a/src/themes/Crux/active-button-prelight.png b/src/themes/Crux/active-button-prelight.png Binary files differnew file mode 100644 index 0000000..7c8aa2f --- /dev/null +++ b/src/themes/Crux/active-button-prelight.png diff --git a/src/themes/Crux/active-button-pressed.png b/src/themes/Crux/active-button-pressed.png Binary files differnew file mode 100644 index 0000000..b3c7bcc --- /dev/null +++ b/src/themes/Crux/active-button-pressed.png diff --git a/src/themes/Crux/active-close-button.png b/src/themes/Crux/active-close-button.png Binary files differnew file mode 100644 index 0000000..bfbfd14 --- /dev/null +++ b/src/themes/Crux/active-close-button.png diff --git a/src/themes/Crux/active-left-border.png b/src/themes/Crux/active-left-border.png Binary files differnew file mode 100644 index 0000000..b030796 --- /dev/null +++ b/src/themes/Crux/active-left-border.png diff --git a/src/themes/Crux/active-left-top-border-shaded.png b/src/themes/Crux/active-left-top-border-shaded.png Binary files differnew file mode 100644 index 0000000..5f7a161 --- /dev/null +++ b/src/themes/Crux/active-left-top-border-shaded.png diff --git a/src/themes/Crux/active-left-top-border.png b/src/themes/Crux/active-left-top-border.png Binary files differnew file mode 100644 index 0000000..0a6dcd3 --- /dev/null +++ b/src/themes/Crux/active-left-top-border.png diff --git a/src/themes/Crux/active-maximize-button.png b/src/themes/Crux/active-maximize-button.png Binary files differnew file mode 100644 index 0000000..870e2cb --- /dev/null +++ b/src/themes/Crux/active-maximize-button.png diff --git a/src/themes/Crux/active-menu-button-prelight.png b/src/themes/Crux/active-menu-button-prelight.png Binary files differnew file mode 100644 index 0000000..a050a17 --- /dev/null +++ b/src/themes/Crux/active-menu-button-prelight.png diff --git a/src/themes/Crux/active-menu-button-pressed.png b/src/themes/Crux/active-menu-button-pressed.png Binary files differnew file mode 100644 index 0000000..95ea391 --- /dev/null +++ b/src/themes/Crux/active-menu-button-pressed.png diff --git a/src/themes/Crux/active-menu-button.png b/src/themes/Crux/active-menu-button.png Binary files differnew file mode 100644 index 0000000..6cd47c7 --- /dev/null +++ b/src/themes/Crux/active-menu-button.png diff --git a/src/themes/Crux/active-minimize-button.png b/src/themes/Crux/active-minimize-button.png Binary files differnew file mode 100644 index 0000000..ea740ff --- /dev/null +++ b/src/themes/Crux/active-minimize-button.png diff --git a/src/themes/Crux/active-right-border.png b/src/themes/Crux/active-right-border.png Binary files differnew file mode 100644 index 0000000..61c84b1 --- /dev/null +++ b/src/themes/Crux/active-right-border.png diff --git a/src/themes/Crux/active-right-top-border-shaded.png b/src/themes/Crux/active-right-top-border-shaded.png Binary files differnew file mode 100644 index 0000000..cf7ac2e --- /dev/null +++ b/src/themes/Crux/active-right-top-border-shaded.png diff --git a/src/themes/Crux/active-right-top-border.png b/src/themes/Crux/active-right-top-border.png Binary files differnew file mode 100644 index 0000000..4dd314f --- /dev/null +++ b/src/themes/Crux/active-right-top-border.png diff --git a/src/themes/Crux/active-top-center-left-border.png b/src/themes/Crux/active-top-center-left-border.png Binary files differnew file mode 100644 index 0000000..05f6781 --- /dev/null +++ b/src/themes/Crux/active-top-center-left-border.png diff --git a/src/themes/Crux/active-top-center-left.png b/src/themes/Crux/active-top-center-left.png Binary files differnew file mode 100644 index 0000000..9da5dd5 --- /dev/null +++ b/src/themes/Crux/active-top-center-left.png diff --git a/src/themes/Crux/active-top-center-mid-left-border.png b/src/themes/Crux/active-top-center-mid-left-border.png Binary files differnew file mode 100644 index 0000000..7d8fc7d --- /dev/null +++ b/src/themes/Crux/active-top-center-mid-left-border.png diff --git a/src/themes/Crux/active-top-center-mid-left.png b/src/themes/Crux/active-top-center-mid-left.png Binary files differnew file mode 100644 index 0000000..a7969b5 --- /dev/null +++ b/src/themes/Crux/active-top-center-mid-left.png diff --git a/src/themes/Crux/active-top-center-mid-right-border.png b/src/themes/Crux/active-top-center-mid-right-border.png Binary files differnew file mode 100644 index 0000000..01d9efa --- /dev/null +++ b/src/themes/Crux/active-top-center-mid-right-border.png diff --git a/src/themes/Crux/active-top-center-mid-right.png b/src/themes/Crux/active-top-center-mid-right.png Binary files differnew file mode 100644 index 0000000..6d2b358 --- /dev/null +++ b/src/themes/Crux/active-top-center-mid-right.png diff --git a/src/themes/Crux/active-top-center-right-border.png b/src/themes/Crux/active-top-center-right-border.png Binary files differnew file mode 100644 index 0000000..fd42aa8 --- /dev/null +++ b/src/themes/Crux/active-top-center-right-border.png diff --git a/src/themes/Crux/active-top-center-right.png b/src/themes/Crux/active-top-center-right.png Binary files differnew file mode 100644 index 0000000..78339e9 --- /dev/null +++ b/src/themes/Crux/active-top-center-right.png diff --git a/src/themes/Crux/active-top-left-border.png b/src/themes/Crux/active-top-left-border.png Binary files differnew file mode 100644 index 0000000..1bb4736 --- /dev/null +++ b/src/themes/Crux/active-top-left-border.png diff --git a/src/themes/Crux/active-top-right-border.png b/src/themes/Crux/active-top-right-border.png Binary files differnew file mode 100644 index 0000000..ae0747c --- /dev/null +++ b/src/themes/Crux/active-top-right-border.png diff --git a/src/themes/Crux/inactive-bottom-left-border.png b/src/themes/Crux/inactive-bottom-left-border.png Binary files differnew file mode 100644 index 0000000..3cb1ecc --- /dev/null +++ b/src/themes/Crux/inactive-bottom-left-border.png diff --git a/src/themes/Crux/inactive-bottom-left-corner.png b/src/themes/Crux/inactive-bottom-left-corner.png Binary files differnew file mode 100644 index 0000000..8b3c113 --- /dev/null +++ b/src/themes/Crux/inactive-bottom-left-corner.png diff --git a/src/themes/Crux/inactive-bottom-mid-border.png b/src/themes/Crux/inactive-bottom-mid-border.png Binary files differnew file mode 100644 index 0000000..1ed84da --- /dev/null +++ b/src/themes/Crux/inactive-bottom-mid-border.png diff --git a/src/themes/Crux/inactive-bottom-right-border.png b/src/themes/Crux/inactive-bottom-right-border.png Binary files differnew file mode 100644 index 0000000..cfd0c6c --- /dev/null +++ b/src/themes/Crux/inactive-bottom-right-border.png diff --git a/src/themes/Crux/inactive-bottom-right-corner.png b/src/themes/Crux/inactive-bottom-right-corner.png Binary files differnew file mode 100644 index 0000000..0fddaac --- /dev/null +++ b/src/themes/Crux/inactive-bottom-right-corner.png diff --git a/src/themes/Crux/inactive-button-prelight.png b/src/themes/Crux/inactive-button-prelight.png Binary files differnew file mode 100644 index 0000000..49be9fd --- /dev/null +++ b/src/themes/Crux/inactive-button-prelight.png diff --git a/src/themes/Crux/inactive-button-pressed.png b/src/themes/Crux/inactive-button-pressed.png Binary files differnew file mode 100644 index 0000000..d215f9a --- /dev/null +++ b/src/themes/Crux/inactive-button-pressed.png diff --git a/src/themes/Crux/inactive-button.png b/src/themes/Crux/inactive-button.png Binary files differnew file mode 100644 index 0000000..a13abff --- /dev/null +++ b/src/themes/Crux/inactive-button.png diff --git a/src/themes/Crux/inactive-close-button.png b/src/themes/Crux/inactive-close-button.png Binary files differnew file mode 100644 index 0000000..2f9d0a5 --- /dev/null +++ b/src/themes/Crux/inactive-close-button.png diff --git a/src/themes/Crux/inactive-left-border.png b/src/themes/Crux/inactive-left-border.png Binary files differnew file mode 100644 index 0000000..681a566 --- /dev/null +++ b/src/themes/Crux/inactive-left-border.png diff --git a/src/themes/Crux/inactive-left-top-border-shaded.png b/src/themes/Crux/inactive-left-top-border-shaded.png Binary files differnew file mode 100644 index 0000000..177fa41 --- /dev/null +++ b/src/themes/Crux/inactive-left-top-border-shaded.png diff --git a/src/themes/Crux/inactive-left-top-border.png b/src/themes/Crux/inactive-left-top-border.png Binary files differnew file mode 100644 index 0000000..50ed2a8 --- /dev/null +++ b/src/themes/Crux/inactive-left-top-border.png diff --git a/src/themes/Crux/inactive-maximize-button.png b/src/themes/Crux/inactive-maximize-button.png Binary files differnew file mode 100644 index 0000000..7324467 --- /dev/null +++ b/src/themes/Crux/inactive-maximize-button.png diff --git a/src/themes/Crux/inactive-menu-button-prelight.png b/src/themes/Crux/inactive-menu-button-prelight.png Binary files differnew file mode 100644 index 0000000..d2063d5 --- /dev/null +++ b/src/themes/Crux/inactive-menu-button-prelight.png diff --git a/src/themes/Crux/inactive-menu-button-pressed.png b/src/themes/Crux/inactive-menu-button-pressed.png Binary files differnew file mode 100644 index 0000000..c69c035 --- /dev/null +++ b/src/themes/Crux/inactive-menu-button-pressed.png diff --git a/src/themes/Crux/inactive-menu-button.png b/src/themes/Crux/inactive-menu-button.png Binary files differnew file mode 100644 index 0000000..e6961df --- /dev/null +++ b/src/themes/Crux/inactive-menu-button.png diff --git a/src/themes/Crux/inactive-minimize-button.png b/src/themes/Crux/inactive-minimize-button.png Binary files differnew file mode 100644 index 0000000..6cdac56 --- /dev/null +++ b/src/themes/Crux/inactive-minimize-button.png diff --git a/src/themes/Crux/inactive-right-border.png b/src/themes/Crux/inactive-right-border.png Binary files differnew file mode 100644 index 0000000..e9a009f --- /dev/null +++ b/src/themes/Crux/inactive-right-border.png diff --git a/src/themes/Crux/inactive-right-top-border-shaded.png b/src/themes/Crux/inactive-right-top-border-shaded.png Binary files differnew file mode 100644 index 0000000..9295527 --- /dev/null +++ b/src/themes/Crux/inactive-right-top-border-shaded.png diff --git a/src/themes/Crux/inactive-right-top-border.png b/src/themes/Crux/inactive-right-top-border.png Binary files differnew file mode 100644 index 0000000..e8a523b --- /dev/null +++ b/src/themes/Crux/inactive-right-top-border.png diff --git a/src/themes/Crux/inactive-top-center-left-border.png b/src/themes/Crux/inactive-top-center-left-border.png Binary files differnew file mode 100644 index 0000000..0a4c8b8 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-left-border.png diff --git a/src/themes/Crux/inactive-top-center-left.png b/src/themes/Crux/inactive-top-center-left.png Binary files differnew file mode 100644 index 0000000..64218d5 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-left.png diff --git a/src/themes/Crux/inactive-top-center-mid-border.png b/src/themes/Crux/inactive-top-center-mid-border.png Binary files differnew file mode 100644 index 0000000..dfa8827 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-mid-border.png diff --git a/src/themes/Crux/inactive-top-center-mid.png b/src/themes/Crux/inactive-top-center-mid.png Binary files differnew file mode 100644 index 0000000..719aa36 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-mid.png diff --git a/src/themes/Crux/inactive-top-center-right-border.png b/src/themes/Crux/inactive-top-center-right-border.png Binary files differnew file mode 100644 index 0000000..c2d01e5 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-right-border.png diff --git a/src/themes/Crux/inactive-top-center-right.png b/src/themes/Crux/inactive-top-center-right.png Binary files differnew file mode 100644 index 0000000..c558c63 --- /dev/null +++ b/src/themes/Crux/inactive-top-center-right.png diff --git a/src/themes/Crux/inactive-top-left-border.png b/src/themes/Crux/inactive-top-left-border.png Binary files differnew file mode 100644 index 0000000..0f680f1 --- /dev/null +++ b/src/themes/Crux/inactive-top-left-border.png diff --git a/src/themes/Crux/inactive-top-right-border.png b/src/themes/Crux/inactive-top-right-border.png Binary files differnew file mode 100644 index 0000000..5986cab --- /dev/null +++ b/src/themes/Crux/inactive-top-right-border.png diff --git a/src/themes/Crux/metacity-theme-1.xml b/src/themes/Crux/metacity-theme-1.xml new file mode 100644 index 0000000..dbb8c7a --- /dev/null +++ b/src/themes/Crux/metacity-theme-1.xml @@ -0,0 +1,476 @@ +<?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"/> + <distance name="button_width" value="16"/> + <distance name="button_height" value="16"/> + <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 --> + +<draw_ops name="active_button"> + <image filename="active-button.png" x="0" y="0" width="object_width" height="object_height"/> +</draw_ops> + +<draw_ops name="active_button_pressed"> + <image filename="active-button-pressed.png" x="0" y="0" width="object_width" height="object_height"/> +</draw_ops> + +<draw_ops name="active_button_prelight"> + <image filename="active-button-prelight.png" x="0" y="0" width="object_width" height="object_height"/> +</draw_ops> + +<draw_ops name="inactive_button"> + <image filename="inactive-button.png" x="0" y="0" width="object_width" height="object_height"/> +</draw_ops> + +<draw_ops name="inactive_button_pressed"> + <image filename="inactive-button-pressed.png" x="0" y="0" width="object_width" height="object_height"/> +</draw_ops> + +<draw_ops name="inactive_button_prelight"> + <image filename="inactive-button-prelight.png" x="0" y="0" width="object_width" height="object_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="white" x="IconTitleSpacing" y="((height - title_height) / 2) `max` 0"/> + </draw_ops> + </piece> + + <piece position="titlebar"> + <draw_ops> + <image filename="inactive-left-top-border.png" + x="0" y="3" width="object_width" height="height"/> + <image filename="inactive-top-left-border.png" + x="0" y="0" width="object_width" height="object_height"/> + + <image filename="inactive-top-right-border.png" + x="width - object_width" y="0" width="object_width" height="object_height"/> + <image filename="inactive-right-top-border.png" + x="width - object_width" y="3" width="object_width" height="object_height"/> + + <image filename="inactive-top-center-left.png" + x="4" y="3" + width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth - 3)" + height="object_height"/> + <image filename="inactive-top-center-left-border.png" + x="left_width + 11" y="0" + width="(title_width + 8) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth - 3)" + height="object_height"/> + + <image filename="inactive-top-center-mid.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width - right_width - 3 * ButtonWidth)) + 1" + y="3" width="object_width" height="object_height"/> + + <image filename="inactive-top-center-mid-border.png" + x="((left_width + 16 + title_width + IconTitleSpacing) `min` (width - CenterTitlePieceWidth - right_width - 3 * ButtonWidth)) + 1" y="0" + width="object_width" height="object_height"/> + + <image filename="inactive-top-center-right-border.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + 16) `min` (width - 3 * ButtonWidth - right_width - 32)) + 1" + y="0" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - 33) `max` (3 * ButtonWidth + 21)" + height="object_height"/> + <image filename="inactive-top-center-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth) `min` (width - 3 * ButtonWidth - right_width)) + 1" + y="3" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth - right_width) `max` (3 * ButtonWidth)" + height="object_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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </draw_ops> + </button> + + <button function="menu" state="normal"> + <draw_ops> + <image filename="inactive-menu-button.png" x="0" y="0" width="object_width" height="object_height"/> + </draw_ops> + </button> + + <button function="menu" state="pressed"> + <draw_ops> + <image filename="inactive-menu-button-pressed.png" x="0" y="0" width="object_width" height="object_height"/> + </draw_ops> + </button> + <button function="menu" state="prelight"> + <draw_ops> + <image filename="inactive-menu-button-prelight.png" x="0" y="0" width="object_width" height="object_height"/> + </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="white" 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="3" width="object_width" height="height"/> + <image filename="active-top-left-border.png" + colorize="gtk:bg[SELECTED]" + x="0" y="0" width="object_width" height="object_height"/> + + <image filename="active-top-right-border.png" + x="width - object_width" y="0" width="object_width" height="object_height"/> + <image filename="active-right-top-border.png" + x="width - object_width" y="3" width="object_width" height="object_height"/> + + <image filename="active-top-center-left.png" + colorize="gtk:bg[SELECTED]" + x="4" y="3" + width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth - 3)" + height="object_height"/> + <image filename="active-top-center-left-border.png" + colorize="gtk:bg[SELECTED]" + x="left_width + 11" y="0" + width="(title_width + 8) `min` + (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth - 3)" + height="object_height"/> + + <image filename="active-top-center-mid-left-border.png" + colorize="gtk:bg[SELECTED]" + x="((left_width + 16 + title_width + IconTitleSpacing) `min` (width - CenterTitlePieceWidth - right_width - 3 * ButtonWidth)) + 1" y="0" + width="object_width" height="object_height"/> + + <image filename="active-top-center-mid-right-border.png" + x="((left_width + 16 + title_width + IconTitleSpacing) `min` (width - CenterTitlePieceWidth - right_width - 3 * ButtonWidth)) + 1" y="0" + width="object_width" height="object_height"/> + + <image filename="active-top-center-mid-left.png" + colorize="gtk:bg[SELECTED]" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width - right_width - 3 * ButtonWidth)) + 1" + y="3" width="object_width" height="object_height"/> + <image filename="active-top-center-mid-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width - right_width - 3 * ButtonWidth)) + 1" + y="3" width="object_width" height="object_height"/> + + <image filename="active-top-center-right-border.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + 16) `min` (width - 3 * ButtonWidth - right_width - 32)) + 1" + y="0" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - 33) `max` (3 * ButtonWidth + 21)" + height="object_height"/> + <image filename="active-top-center-right.png" + x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth) `min` (width - 3 * ButtonWidth - right_width)) + 1" + y="3" + width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth - right_width) `max` (3 * ButtonWidth)" + height="object_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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_height"/> + </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="object_width" height="object_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="object_width" height="object_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="object_width" height="object_height"/> + </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> + +<frame_style_set name="normal"> +<frame focus="yes" state="shaded" style="focused_shaded"/> +<frame focus="yes" state="normal" resize="both" style="focused"/> +<frame focus="no" state="normal" resize="both" style="normal"/> +<frame focus="no" state="shaded" style="normal_shaded"/> +</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"/> + +<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> |