diff --git a/src/themes/Crux/active-bottom-left-border.png b/src/themes/Crux/active-bottom-left-border.png new file mode 100644 index 000000000..520c35705 Binary files /dev/null and b/src/themes/Crux/active-bottom-left-border.png differ diff --git a/src/themes/Crux/active-bottom-left-corner.png b/src/themes/Crux/active-bottom-left-corner.png new file mode 100644 index 000000000..447f26662 Binary files /dev/null and b/src/themes/Crux/active-bottom-left-corner.png differ diff --git a/src/themes/Crux/active-bottom-mid-left-border.png b/src/themes/Crux/active-bottom-mid-left-border.png new file mode 100644 index 000000000..7fa6adfa8 Binary files /dev/null and b/src/themes/Crux/active-bottom-mid-left-border.png differ diff --git a/src/themes/Crux/active-bottom-mid-right-border.png b/src/themes/Crux/active-bottom-mid-right-border.png new file mode 100644 index 000000000..63da8e9d9 Binary files /dev/null and b/src/themes/Crux/active-bottom-mid-right-border.png differ diff --git a/src/themes/Crux/active-bottom-right-border.png b/src/themes/Crux/active-bottom-right-border.png new file mode 100644 index 000000000..ed25d07a7 Binary files /dev/null and b/src/themes/Crux/active-bottom-right-border.png differ diff --git a/src/themes/Crux/active-bottom-right-corner.png b/src/themes/Crux/active-bottom-right-corner.png new file mode 100644 index 000000000..ac34cac45 Binary files /dev/null and b/src/themes/Crux/active-bottom-right-corner.png differ diff --git a/src/themes/Crux/active-button-prelight.png b/src/themes/Crux/active-button-prelight.png new file mode 100644 index 000000000..7c8aa2fe6 Binary files /dev/null and b/src/themes/Crux/active-button-prelight.png differ diff --git a/src/themes/Crux/active-button-pressed.png b/src/themes/Crux/active-button-pressed.png new file mode 100644 index 000000000..b3c7bcc14 Binary files /dev/null and b/src/themes/Crux/active-button-pressed.png differ diff --git a/src/themes/Crux/active-close-button.png b/src/themes/Crux/active-close-button.png new file mode 100644 index 000000000..bfbfd1422 Binary files /dev/null and b/src/themes/Crux/active-close-button.png differ diff --git a/src/themes/Crux/active-left-border.png b/src/themes/Crux/active-left-border.png new file mode 100644 index 000000000..b030796f9 Binary files /dev/null and b/src/themes/Crux/active-left-border.png differ diff --git a/src/themes/Crux/active-left-top-border-shaded.png b/src/themes/Crux/active-left-top-border-shaded.png new file mode 100644 index 000000000..5f7a161ec Binary files /dev/null and b/src/themes/Crux/active-left-top-border-shaded.png differ diff --git a/src/themes/Crux/active-left-top-border.png b/src/themes/Crux/active-left-top-border.png new file mode 100644 index 000000000..0a6dcd31f Binary files /dev/null and b/src/themes/Crux/active-left-top-border.png differ diff --git a/src/themes/Crux/active-maximize-button.png b/src/themes/Crux/active-maximize-button.png new file mode 100644 index 000000000..870e2cb61 Binary files /dev/null and b/src/themes/Crux/active-maximize-button.png differ diff --git a/src/themes/Crux/active-menu-button-prelight.png b/src/themes/Crux/active-menu-button-prelight.png new file mode 100644 index 000000000..a050a1797 Binary files /dev/null and b/src/themes/Crux/active-menu-button-prelight.png differ diff --git a/src/themes/Crux/active-menu-button-pressed.png b/src/themes/Crux/active-menu-button-pressed.png new file mode 100644 index 000000000..95ea391a7 Binary files /dev/null and b/src/themes/Crux/active-menu-button-pressed.png differ diff --git a/src/themes/Crux/active-menu-button.png b/src/themes/Crux/active-menu-button.png new file mode 100644 index 000000000..6cd47c7a3 Binary files /dev/null and b/src/themes/Crux/active-menu-button.png differ diff --git a/src/themes/Crux/active-minimize-button.png b/src/themes/Crux/active-minimize-button.png new file mode 100644 index 000000000..ea740ffb3 Binary files /dev/null and b/src/themes/Crux/active-minimize-button.png differ diff --git a/src/themes/Crux/active-right-border.png b/src/themes/Crux/active-right-border.png new file mode 100644 index 000000000..61c84b121 Binary files /dev/null and b/src/themes/Crux/active-right-border.png differ diff --git a/src/themes/Crux/active-right-top-border-shaded.png b/src/themes/Crux/active-right-top-border-shaded.png new file mode 100644 index 000000000..cf7ac2ec0 Binary files /dev/null and b/src/themes/Crux/active-right-top-border-shaded.png differ diff --git a/src/themes/Crux/active-right-top-border.png b/src/themes/Crux/active-right-top-border.png new file mode 100644 index 000000000..4dd314f6a Binary files /dev/null and b/src/themes/Crux/active-right-top-border.png differ diff --git a/src/themes/Crux/active-top-center-left-border.png b/src/themes/Crux/active-top-center-left-border.png new file mode 100644 index 000000000..05f678153 Binary files /dev/null and b/src/themes/Crux/active-top-center-left-border.png differ diff --git a/src/themes/Crux/active-top-center-left.png b/src/themes/Crux/active-top-center-left.png new file mode 100644 index 000000000..9da5dd556 Binary files /dev/null and b/src/themes/Crux/active-top-center-left.png differ diff --git a/src/themes/Crux/active-top-center-mid-left-border.png b/src/themes/Crux/active-top-center-mid-left-border.png new file mode 100644 index 000000000..7d8fc7df9 Binary files /dev/null and b/src/themes/Crux/active-top-center-mid-left-border.png differ diff --git a/src/themes/Crux/active-top-center-mid-left.png b/src/themes/Crux/active-top-center-mid-left.png new file mode 100644 index 000000000..a7969b594 Binary files /dev/null and b/src/themes/Crux/active-top-center-mid-left.png differ diff --git a/src/themes/Crux/active-top-center-mid-right-border.png b/src/themes/Crux/active-top-center-mid-right-border.png new file mode 100644 index 000000000..01d9efa9b Binary files /dev/null and b/src/themes/Crux/active-top-center-mid-right-border.png differ diff --git a/src/themes/Crux/active-top-center-mid-right.png b/src/themes/Crux/active-top-center-mid-right.png new file mode 100644 index 000000000..6d2b358ef Binary files /dev/null and b/src/themes/Crux/active-top-center-mid-right.png differ diff --git a/src/themes/Crux/active-top-center-right-border.png b/src/themes/Crux/active-top-center-right-border.png new file mode 100644 index 000000000..fd42aa832 Binary files /dev/null and b/src/themes/Crux/active-top-center-right-border.png differ diff --git a/src/themes/Crux/active-top-center-right.png b/src/themes/Crux/active-top-center-right.png new file mode 100644 index 000000000..78339e9e1 Binary files /dev/null and b/src/themes/Crux/active-top-center-right.png differ diff --git a/src/themes/Crux/active-top-left-border.png b/src/themes/Crux/active-top-left-border.png new file mode 100644 index 000000000..1bb473615 Binary files /dev/null and b/src/themes/Crux/active-top-left-border.png differ diff --git a/src/themes/Crux/active-top-right-border.png b/src/themes/Crux/active-top-right-border.png new file mode 100644 index 000000000..ae0747c01 Binary files /dev/null and b/src/themes/Crux/active-top-right-border.png differ diff --git a/src/themes/Crux/inactive-bottom-left-border.png b/src/themes/Crux/inactive-bottom-left-border.png new file mode 100644 index 000000000..3cb1ecc84 Binary files /dev/null and b/src/themes/Crux/inactive-bottom-left-border.png differ diff --git a/src/themes/Crux/inactive-bottom-left-corner.png b/src/themes/Crux/inactive-bottom-left-corner.png new file mode 100644 index 000000000..8b3c113e6 Binary files /dev/null and b/src/themes/Crux/inactive-bottom-left-corner.png differ diff --git a/src/themes/Crux/inactive-bottom-mid-border.png b/src/themes/Crux/inactive-bottom-mid-border.png new file mode 100644 index 000000000..1ed84da0f Binary files /dev/null and b/src/themes/Crux/inactive-bottom-mid-border.png differ diff --git a/src/themes/Crux/inactive-bottom-right-border.png b/src/themes/Crux/inactive-bottom-right-border.png new file mode 100644 index 000000000..cfd0c6c83 Binary files /dev/null and b/src/themes/Crux/inactive-bottom-right-border.png differ diff --git a/src/themes/Crux/inactive-bottom-right-corner.png b/src/themes/Crux/inactive-bottom-right-corner.png new file mode 100644 index 000000000..0fddaac56 Binary files /dev/null and b/src/themes/Crux/inactive-bottom-right-corner.png differ diff --git a/src/themes/Crux/inactive-button-prelight.png b/src/themes/Crux/inactive-button-prelight.png new file mode 100644 index 000000000..49be9fd05 Binary files /dev/null and b/src/themes/Crux/inactive-button-prelight.png differ diff --git a/src/themes/Crux/inactive-button-pressed.png b/src/themes/Crux/inactive-button-pressed.png new file mode 100644 index 000000000..d215f9ac5 Binary files /dev/null and b/src/themes/Crux/inactive-button-pressed.png differ diff --git a/src/themes/Crux/inactive-button.png b/src/themes/Crux/inactive-button.png new file mode 100644 index 000000000..a13abffb0 Binary files /dev/null and b/src/themes/Crux/inactive-button.png differ diff --git a/src/themes/Crux/inactive-close-button.png b/src/themes/Crux/inactive-close-button.png new file mode 100644 index 000000000..2f9d0a574 Binary files /dev/null and b/src/themes/Crux/inactive-close-button.png differ diff --git a/src/themes/Crux/inactive-left-border.png b/src/themes/Crux/inactive-left-border.png new file mode 100644 index 000000000..681a566dc Binary files /dev/null and b/src/themes/Crux/inactive-left-border.png differ diff --git a/src/themes/Crux/inactive-left-top-border-shaded.png b/src/themes/Crux/inactive-left-top-border-shaded.png new file mode 100644 index 000000000..177fa41f7 Binary files /dev/null and b/src/themes/Crux/inactive-left-top-border-shaded.png differ diff --git a/src/themes/Crux/inactive-left-top-border.png b/src/themes/Crux/inactive-left-top-border.png new file mode 100644 index 000000000..50ed2a8c9 Binary files /dev/null and b/src/themes/Crux/inactive-left-top-border.png differ diff --git a/src/themes/Crux/inactive-maximize-button.png b/src/themes/Crux/inactive-maximize-button.png new file mode 100644 index 000000000..73244678a Binary files /dev/null and b/src/themes/Crux/inactive-maximize-button.png differ diff --git a/src/themes/Crux/inactive-menu-button-prelight.png b/src/themes/Crux/inactive-menu-button-prelight.png new file mode 100644 index 000000000..d2063d5be Binary files /dev/null and b/src/themes/Crux/inactive-menu-button-prelight.png differ diff --git a/src/themes/Crux/inactive-menu-button-pressed.png b/src/themes/Crux/inactive-menu-button-pressed.png new file mode 100644 index 000000000..c69c03567 Binary files /dev/null and b/src/themes/Crux/inactive-menu-button-pressed.png differ diff --git a/src/themes/Crux/inactive-menu-button.png b/src/themes/Crux/inactive-menu-button.png new file mode 100644 index 000000000..e6961df24 Binary files /dev/null and b/src/themes/Crux/inactive-menu-button.png differ diff --git a/src/themes/Crux/inactive-minimize-button.png b/src/themes/Crux/inactive-minimize-button.png new file mode 100644 index 000000000..6cdac5636 Binary files /dev/null and b/src/themes/Crux/inactive-minimize-button.png differ diff --git a/src/themes/Crux/inactive-right-border.png b/src/themes/Crux/inactive-right-border.png new file mode 100644 index 000000000..e9a009f13 Binary files /dev/null and b/src/themes/Crux/inactive-right-border.png differ diff --git a/src/themes/Crux/inactive-right-top-border-shaded.png b/src/themes/Crux/inactive-right-top-border-shaded.png new file mode 100644 index 000000000..929552739 Binary files /dev/null and b/src/themes/Crux/inactive-right-top-border-shaded.png differ diff --git a/src/themes/Crux/inactive-right-top-border.png b/src/themes/Crux/inactive-right-top-border.png new file mode 100644 index 000000000..e8a523be7 Binary files /dev/null and b/src/themes/Crux/inactive-right-top-border.png differ diff --git a/src/themes/Crux/inactive-top-center-left-border.png b/src/themes/Crux/inactive-top-center-left-border.png new file mode 100644 index 000000000..0a4c8b861 Binary files /dev/null and b/src/themes/Crux/inactive-top-center-left-border.png differ diff --git a/src/themes/Crux/inactive-top-center-left.png b/src/themes/Crux/inactive-top-center-left.png new file mode 100644 index 000000000..64218d5a0 Binary files /dev/null and b/src/themes/Crux/inactive-top-center-left.png differ diff --git a/src/themes/Crux/inactive-top-center-mid-border.png b/src/themes/Crux/inactive-top-center-mid-border.png new file mode 100644 index 000000000..dfa8827dd Binary files /dev/null and b/src/themes/Crux/inactive-top-center-mid-border.png differ diff --git a/src/themes/Crux/inactive-top-center-mid.png b/src/themes/Crux/inactive-top-center-mid.png new file mode 100644 index 000000000..719aa36ee Binary files /dev/null and b/src/themes/Crux/inactive-top-center-mid.png differ diff --git a/src/themes/Crux/inactive-top-center-right-border.png b/src/themes/Crux/inactive-top-center-right-border.png new file mode 100644 index 000000000..c2d01e585 Binary files /dev/null and b/src/themes/Crux/inactive-top-center-right-border.png differ diff --git a/src/themes/Crux/inactive-top-center-right.png b/src/themes/Crux/inactive-top-center-right.png new file mode 100644 index 000000000..c558c635e Binary files /dev/null and b/src/themes/Crux/inactive-top-center-right.png differ diff --git a/src/themes/Crux/inactive-top-left-border.png b/src/themes/Crux/inactive-top-left-border.png new file mode 100644 index 000000000..0f680f159 Binary files /dev/null and b/src/themes/Crux/inactive-top-left-border.png differ diff --git a/src/themes/Crux/inactive-top-right-border.png b/src/themes/Crux/inactive-top-right-border.png new file mode 100644 index 000000000..5986cab6b Binary files /dev/null and b/src/themes/Crux/inactive-top-right-border.png differ diff --git a/src/themes/Crux/metacity-theme-1.xml b/src/themes/Crux/metacity-theme-1.xml new file mode 100644 index 000000000..dbb8c7a99 --- /dev/null +++ b/src/themes/Crux/metacity-theme-1.xml @@ -0,0 +1,476 @@ + + + + Crux + Anders Carlsson <andersca@gnu.org> + Â Eazel Inc, 2000 + February 6, 2002 + A port of the Crux theme by Arlo Rose and John Harper + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </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>