diff --git a/ChangeLog b/ChangeLog index 7475fcac0..b751639aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-01-24 James M. Cape + + * src/themes/Esco/metacity-theme-1.xml: Updated this theme. + 2004-01-21 Elijah Newren * src/screen.c (set_supported_hint): Removed some duplicate diff --git a/src/themes/Esco/metacity-theme-1.xml b/src/themes/Esco/metacity-theme-1.xml index 818532f3f..fffd9d9a7 100644 --- a/src/themes/Esco/metacity-theme-1.xml +++ b/src/themes/Esco/metacity-theme-1.xml @@ -16,9 +16,9 @@ - - - + + + @@ -28,20 +28,21 @@ - - + + + - - - - - - + + + + + + - - - + + + @@ -58,14 +59,11 @@ - - - - + @@ -75,321 +73,662 @@ height="height"/> - - - - - - - - - - - - - - - - - + + + + + - + y="height - ButtonIPad - ((height - (ButtonIPad + 1) * 2) * 0.4) - 1" + width="width - (ButtonIPad + 1) * 2" + height="(height - (ButtonIPad + 1) * 2) * 0.4"/> - - + + + + + - + y="height - ButtonIPad - ((height - (ButtonIPad + 1) * 2) * 0.4) - 1" + width="width - (ButtonIPad + 1) * 2" + height="(height - (ButtonIPad + 1) * 2) * 0.4"/> - + - + y="height - ButtonIPad - ((height - (ButtonIPad + 1) * 2) * 0.4) - 1" + width="width - (ButtonIPad + 1) * 2" + height="(height - (ButtonIPad + 1) * 2) * 0.4"/> + - - + width="width - (ButtonIPad + 1) * 2" + height="height - (ButtonIPad + 1) * 2"/> + - - - + width="width - (ButtonIPad + 1) * 2" + height="height - (ButtonIPad + 1) * 2"/> + + + + + + + + - - + + + width="width - (ButtonIPad + 1) * 2" + height="height - (ButtonIPad + 1) * 2"/> + + - - + - + y="ButtonIPad" + width="(width - (ButtonIPad + 1) * 2) * 0.67" + height="((height - (ButtonIPad + 1) * 2) * 0.4) * 0.67"/> + + - - + - - + y="ButtonIPad" + width="(width - (ButtonIPad + 1) * 2) * 0.67" + height="((height - (ButtonIPad + 1) * 2) * 0.4) * 0.67"/> + + + + + + + + + + + + + - + + + + - - + y="ButtonIPad" + width="(width - (ButtonIPad + 1) * 2) * 0.67" + height="(height - (ButtonIPad + 1) * 2) * 0.67"/> + + + - - + + + + + - + + + + - - + y2="height - ButtonIPad - 5"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + - - + + + + + - - + + + + + + + + + - - - + + + + + - - + + + + + + + + + - - + + + + + + + - - - - + - - - - - - - + - - - - + x="left_width - 1" y="top_height - 1" + width="width - left_width - right_width + 1" + height="height - top_height - bottom_height + 1"/> - @@ -398,57 +737,96 @@ - - + + + + + x="width - title_width - IconTitleSpacing" + y="(height / 2) - (title_height / 2) - 1"/> <icon - x="width - title_width - mini_icon_width - (IconTitleSpacing * 1.5) + 3" - y="(height - mini_icon_height) / 2 + 1" + x="width - title_width - mini_icon_width - (IconTitleSpacing * 2)" + y="(height / 2) - (mini_icon_height / 2)" width="mini_icon_width" height="mini_icon_height"/> </draw_ops> <draw_ops name="title_text_focused_no_icon"> - <title color="#000000" - x="width - title_width - IconTitleSpacing + 3" - y="((height - title_height) / 2) `max` 0 + 1"/> + <title color="gtk:fg[INSENSITIVE]" + x="width - title_width - IconTitleSpacing" + y="(height / 2) - (title_height / 2)"/> + <icon + x="width - title_width - height - (IconTitleSpacing * 2)" + y="0" + width="height" + height="height"/> </draw_ops> <draw_ops name="title_text_with_icon"> - <title color="gtk:fg[INSENSITIVE]" - x="width - title_width - IconTitleSpacing + 3" - y="((height - title_height) / 2) `max` 0"/> - <icon alpha="0.25" - x="width - title_width - mini_icon_width - (IconTitleSpacing * 1.5) + 3" - y="(height - mini_icon_height) / 2 + 1" + <title color="gtk:dark[NORMAL]" + x="width - title_width - IconTitleSpacing" + y="(height / 2) - (title_height / 2) - 2"/> + <icon alpha="0.33" + x="width - title_width - mini_icon_width - (IconTitleSpacing * 2)" + y="(height / 2) - (mini_icon_height / 2) - 2" width="mini_icon_width" height="mini_icon_height"/> </draw_ops> <draw_ops name="title_text_no_icon"> - <title color="gtk:fg[INSENSITIVE]" - x="width - title_width - IconTitleSpacing + 3" - y="((height - title_height) / 2) `max` 0"/> + <title color="gtk:dark[NORMAL]" + x="width - title_width - IconTitleSpacing" + y="(height / 2) - (title_height / 2)"/> + <icon alpha="0.33" + x="width - title_width - height - (IconTitleSpacing * 2)" + y="0" + width="height" + height="height"/> </draw_ops> <draw_ops name="title_normal"> - <include name="title_text_with_icon"/> + <include name="title_text_with_icon" x="0" y="3" width="width" height="height - 3"/> </draw_ops> <draw_ops name="title_focused"> + <include name="title_background"/> + <line color="#000000" width="1" + x1="width - title_width - mini_icon_width - IconTitleSpacing * 3" + y1="0" + x2="width" + y2="0"/> + <line color="#000000" width="1" + x1="width - title_width - mini_icon_width - IconTitleSpacing * 3 - 18" + y1="height - 1" + x2="width" + y2="height - 1"/> + <include name="title_text_focused_with_icon" x="0" y="2" width="width" height="height - 3"/> +</draw_ops> + +<draw_ops name="title_maximized"> + <include name="title_text_with_icon"/> +</draw_ops> + +<draw_ops name="title_maximized_focused"> <include name="title_background"/> <include name="title_text_focused_with_icon"/> </draw_ops> @@ -458,7 +836,16 @@ </draw_ops> <draw_ops name="title_utility_focused"> - <include name="title_background"/> + <include name="title_background" + x="mini_icon_width + IconTitleSpacing" + y="0" + width="width - mini_icon_width - IconTitleSpacing" + height="height"/> + <line color="#000000" width="1" + x1="width - title_width - mini_icon_width - IconTitleSpacing * 3" + y1="0" + x2="width" + y2="0"/> <include name="title_text_focused_no_icon"/> </draw_ops> @@ -467,16 +854,18 @@ <piece position="title" draw_ops="title_normal"/> - <!-- we don't specify for normal or prelight, so nothing is used for - those --> - <button function="menu" state="normal" draw_ops="menu_button"/> - <button function="menu" state="pressed" draw_ops="menu_button_pressed"/> + <button function="menu" state="normal" + draw_ops="menu_button"/> + <button function="menu" state="pressed" + draw_ops="menu_button_pressed"/> - <button function="minimize" state="normal" draw_ops="minimize_button"/> + <button function="minimize" state="normal" + draw_ops="minimize_button"/> <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/> - <button function="maximize" state="normal" draw_ops="maximize_button"/> + <button function="maximize" state="normal" + draw_ops="maximize_button"/> <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/> @@ -488,32 +877,33 @@ <piece position="entire_background" draw_ops="background_focused"/> <piece position="title" draw_ops="title_focused"/> - <!-- we don't specify for prelight, so normal is used --> - <button function="left_left_background" state="normal" - draw_ops="button_normal_bg"/> - <button function="left_middle_background" state="normal" - draw_ops="button_normal_bg"/> - <button function="left_right_background" state="normal" - draw_ops="button_normal_bg"/> + <button function="close" state="normal" + draw_ops="close_button_focused"/> + <button function="close" state="prelight" + draw_ops="close_button_prelight"/> - <button function="right_left_background" state="normal" - draw_ops="button_normal_bg"/> - <button function="right_middle_background" state="normal" - draw_ops="button_normal_bg"/> - <button function="right_right_background" state="normal" - draw_ops="button_normal_bg"/> + <button function="menu" state="normal" + draw_ops="menu_button_focused"/> + <button function="menu" state="prelight" + draw_ops="menu_button_prelight"/> - <button function="close" state="normal" draw_ops="close_button_focused"/> - <button function="menu" state="normal" draw_ops="menu_button_focused"/> <button function="maximize" state="normal" draw_ops="maximize_button_focused"/> + <button function="maximize" state="prelight" + draw_ops="maximize_button_prelight"/> + <button function="minimize" state="normal" draw_ops="minimize_button_focused"/> + <button function="minimize" state="prelight" + draw_ops="minimize_button_prelight"/> </frame_style> <frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused"> <piece position="entire_background" draw_ops="blank"/> + + <piece position="title" draw_ops="title_maximized"/> + <button function="maximize" state="normal" draw_ops="restore_button"/> <button function="maximize" state="pressed" @@ -523,10 +913,14 @@ <frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused"> <piece position="entire_background" draw_ops="gradient_background"/> + <piece position="title" draw_ops="title_maximized_focused"/> + <button function="maximize" state="normal" draw_ops="restore_button_focused"/> <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/> + <button function="maximize" state="prelight" + draw_ops="restore_button_prelight"/> </frame_style> <frame_style name="utility_unfocused" geometry="utility" @@ -580,7 +974,7 @@ <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="menu" style_set="utility"/> <window type="utility" style_set="utility"/> <window type="border" style_set="border"/>