BluePrint Theme Chester.Rose@sun.com (implementation erwann.chenede@sun.com) Sun Microsystems Inc. 2003 2003-03-31 Window Manager BluePrint Theme <title color="shade/gtk:bg[SELECTED]/0.7" x="(3 `max` (width-title_width)) / 2 + 2" y="(((height - title_height) / 2) `max` 0) + 2"/> <title color="shade/gtk:bg[SELECTED]/0.4" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2) `max` 0) + 1"/> <title color="white" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/> </draw_ops> <draw_ops name="title_text_unfocused"> <image filename="title_center_dimple_gradient_unfocused.png" x="14" y="0" width="width-(14*2)" height="height" colorize="gtk:bg[SELECTED]"/> <image filename="title_left_dimple_gradient_unfocused.png" x="0" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]" /> <image filename="title_right_dimple_gradient_unfocused.png" x="width-(object_width+1)" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]"/> <title color="white" x="(3 `max` (width-title_width)) / 2" y="((height - title_height) / 2) `max` 0"/> </draw_ops> <draw_ops name="corners_outline"> <!-- ** BLACK outlines around the round corners ** --> <!-- top left --> <line color="#000000" x1="1" y1="3" x2="1" y2="4"/> <line color="#000000" x1="2" y1="2" x2="2" y2="2"/> <line color="#000000" x1="3" y1="1" x2="4" y2="1"/> <!-- bottom left --> <!-- <line color="#000000" x1="1" y1="height-4" x2="1" y2="height-5"/> <line color="#000000" x1="2" y1="height-3" x2="2" y2="height-3"/> <line color="#000000" x1="2" y1="height-2" x2="4" y2="height-2"/> --> <!-- top right --> <line color="#000000" x1="width-2" y1="3" x2="width-2" y2="4"/> <line color="#000000" x1="width-3" y1="2" x2="width-3" y2="2"/> <line color="#000000" x1="width-4" y1="1" x2="width-5" y2="1"/> <!-- bottom right --> <!-- <line color="#000000" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/> <line color="#000000" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/> <line color="#000000" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/> --> </draw_ops> <draw_ops name="left_edge_focused"> <image filename="border-left.png" x="0" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="right_edge_focused"> <image filename="border-right.png" x="0" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="bottom_edge_focused"> <image filename="border-bottom.png" x="0" y="0" width="width" height="object_height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="left_edge_unfocused"> <image filename="border-left.png" x="0" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="right_edge_unfocused"> <image filename="border-right.png" x="0" y="0" width="object_width" height="height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="bottom_edge_unfocused"> <image filename="border-bottom.png" x="0" y="0" width="width" height="object_height" colorize="gtk:bg[SELECTED]"/> </draw_ops> <draw_ops name="grips_focused"> <image filename="bottom-grip-left-corner.png" x="0" y="height - object_height" width="object_width" height="object_height"/> <image filename="bottom-grip-right-corner.png" x="width - object_width" y="height - object_height" width="object_height" height="object_height"/> </draw_ops> <draw_ops name="border_focused"> <rectangle color="#656565" x="0" y="0" width="width" height="height" filled="true"/> </draw_ops> <draw_ops name="border_unfocused"> <rectangle color="#4e43b8" x="0" y="0" width="width" height="height" filled="true"/> <include name="corners_outline"/> <rectangle color="black" x="0" y="0" width="width-1" height="height-1" filled="false"/> </draw_ops> <draw_ops name="grips_unfocused"> <include name="grips_focused"/> <tint color="black" alpha="0.2" x="0" y="0" width="width" height="height"/> </draw_ops> <draw_ops name="blank"> <!-- nothing --> </draw_ops> <frame_style name="normal_unfocused" geometry="normal"> <piece position="entire_background" draw_ops="border_focused"/> <piece position="titlebar" draw_ops="titlebar_unfocused"/> <piece position="title" draw_ops="title_text_unfocused"/> <piece position="left_edge" draw_ops="left_edge_unfocused"/> <piece position="right_edge" draw_ops="right_edge_unfocused"/> <piece position="bottom_edge" draw_ops="bottom_edge_unfocused"/> <piece position="overlay" draw_ops="grips_unfocused"/> <button function="close" state="normal" draw_ops="close_button_unfocused"/> <button function="close" state="prelight" draw_ops="close_button_prelight"/> <button function="close" state="pressed" draw_ops="close_button_pressed"/> <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/> <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/> <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/> <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/> <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/> <button function="menu" state="normal" draw_ops="menu_button_unfocused"/> <button function="menu" state="pressed" draw_ops="menu_button_unfocused"/> </frame_style> <frame_style name="normal_focused" geometry="normal"> <piece position="entire_background" draw_ops="border_focused"/> <piece position="titlebar" draw_ops="titlebar_focused"/> <piece position="title" draw_ops="title_text_focused"/> <piece position="left_edge" draw_ops="left_edge_focused"/> <piece position="right_edge" draw_ops="right_edge_focused"/> <piece position="bottom_edge" draw_ops="bottom_edge_focused"/> <piece position="overlay" draw_ops="grips_focused"/> <button function="close" state="normal" draw_ops="close_button_not_over"/> <button function="close" state="prelight" draw_ops="close_button_prelight"/> <button function="close" state="pressed" draw_ops="close_button_pressed"/> <button function="minimize" state="normal" draw_ops="minimize_button_not_over"/> <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/> <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/> <button function="maximize" state="normal" draw_ops="maximize_button_not_over"/> <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/> <button function="menu" state="normal" draw_ops="menu_button_normal"/> <button function="menu" state="pressed" draw_ops="menu_button_pressed"/> </frame_style> <frame_style name="normal_focused_shaded" geometry="normal_shaded" parent="normal_focused"> <piece position="overlay"> <draw_ops> <line color="#2f2a66" x1="0" y1="height-1" x2="width" y2="height-1"/> <line color="#2f2a66" x1="width-1" y1="0" x2="width-1" y2="height"/> </draw_ops> </piece> </frame_style> <frame_style name="normal_unfocused_shaded" geometry="normal_shaded" parent="normal_unfocused"> <piece position="overlay"> <draw_ops> <line color="#2f2a66" x1="0" y1="height-1" x2="width" y2="height-1"/> <line color="#2f2a66" x1="width-1" y1="0" x2="width-1" y2="height"/> </draw_ops> </piece> </frame_style> <frame_style name="maximized_unfocused" geometry="normal_maximized" parent="normal_unfocused"> <piece position="overlay" draw_ops="blank"/> <piece position="titlebar" draw_ops="titlebar_maximized"/> <button function="maximize" state="normal" draw_ops="unmaximize_button_unfocused"/> <button function="maximize" state="prelight" draw_ops="unmaximize_button_prelight"/> <button function="maximize" state="pressed" draw_ops="unmaximize_button_pressed"/> </frame_style> <frame_style name="maximized_focused" geometry="normal_maximized" parent="normal_focused"> <piece position="overlay" draw_ops="blank"/> <piece position="titlebar" draw_ops="titlebar_maximized"/> <button function="maximize" state="normal" draw_ops="unmaximize_button_not_over"/> <button function="maximize" state="prelight" draw_ops="unmaximize_button_prelight"/> <button function="maximize" state="pressed" draw_ops="unmaximize_button_pressed"/> </frame_style> <frame_style name="normal_focused_maximized_shaded" geometry="normal_maximized" parent="maximized_focused"> <piece position="overlay"> <draw_ops> <line color="#2f2a66" x1="0" y1="height-1" x2="width" y2="height-1"/> <line color="#2f2a66" x1="width-1" y1="0" x2="width-1" y2="height"/> </draw_ops> </piece> </frame_style> <frame_style name="normal_focused_unmaximized_shaded" geometry="normal_maximized" parent="maximized_unfocused"> <piece position="overlay"> <draw_ops> <line color="#2f2a66" x1="0" y1="height-1" x2="width" y2="height-1"/> <line color="#2f2a66" x1="width-1" y1="0" x2="width-1" y2="height"/> </draw_ops> </piece> </frame_style> <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused"> <piece position="titlebar" draw_ops="titlebar_focused"/> <piece position="title" draw_ops="title_text_unfocused"/> </frame_style> <frame_style name="utility_focused" geometry="utility" parent="normal_focused"> <piece position="title" draw_ops="title_text_focused"/> </frame_style> <frame_style name="border" geometry="border" parent="normal_focused"> <piece position="titlebar"> <draw_ops> <include name="bottom_edge_focused"/> </draw_ops> </piece> <piece position="overlay"> <draw_ops> <include name="grips_focused"/> <image filename="top-grip-left-corner.png" x="0" y="0" width="object_width" height="object_height"/> <image filename="top-grip-right-corner.png" x="width - object_width" y="0" width="object_height" height="object_height"/> </draw_ops> </piece> <piece position="title" draw_ops="blank"/> </frame_style> <frame_style_set name="normal"> <frame focus="yes" state="normal" resize="both" style="normal_focused"/> <frame focus="no" state="normal" resize="both" style="normal_unfocused"/> <frame focus="yes" state="maximized" style="maximized_focused"/> <frame focus="no" state="maximized" style="maximized_unfocused"/> <frame focus="yes" state="shaded" style="normal_focused_shaded"/> <frame focus="no" state="shaded" style="normal_unfocused_shaded"/> <frame focus="yes" state="maximized_and_shaded" style="normal_focused_maximized_shaded"/> <frame focus="no" state="maximized_and_shaded" style="normal_focused_unmaximized_shaded"/> </frame_style_set> <frame_style_set name="utility" parent="normal"> <frame focus="yes" state="normal" resize="both" style="utility_focused"/> <frame focus="no" state="normal" resize="both" style="utility_unfocused"/> <!-- this is a bunch of crack since utility windows shouldn't be maximized --> <frame focus="yes" state="maximized" style="utility_focused"/> <frame focus="no" state="maximized" style="utility_unfocused"/> <frame focus="yes" state="shaded" style="utility_focused"/> <frame focus="no" state="shaded" style="utility_unfocused"/> <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/> <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/> </frame_style_set> <frame_style_set name="border"> <frame focus="yes" state="normal" resize="both" style="border"/> <frame focus="no" state="normal" resize="both" style="border"/> <!-- this is a bunch of crack since utility windows shouldn't be maximized --> <frame focus="yes" state="maximized" style="border"/> <frame focus="no" state="maximized" style="border"/> <frame focus="yes" state="shaded" style="border"/> <frame focus="no" state="shaded" style="border"/> <frame focus="yes" state="maximized_and_shaded" style="border"/> <frame focus="no" state="maximized_and_shaded" style="border"/> </frame_style_set> <window type="normal" style_set="normal"/> <window type="dialog" style_set="normal"/> <window type="modal_dialog" style_set="normal"/> <window type="menu" style_set="utility"/> <window type="utility" style_set="utility"/> <window type="border" style_set="border"/> <menu_icon function="close" state="normal" draw_ops="close_button_not_over"/> <menu_icon function="maximize" state="normal" draw_ops="maximize_button_not_over"/> <menu_icon function="unmaximize" state="normal" draw_ops="maximize_button_not_over"/> <menu_icon function="minimize" state="normal" draw_ops="minimize_button_not_over"/> </metacity_theme>