#define BORDER_BUTTON(NAME, TYPE, REL1X, REL1Y, OFF1X, OFF1Y, TO1, REL2X, REL2Y, OFF2X, OFF2Y, TO2) \ BORDER_BUTTON_ADV(NAME,TYPE,REL1X,REL1Y,OFF1X,OFF1Y,TO1,TO1,REL2X,REL2Y,OFF2X,OFF2Y,TO2,TO2) #define BORDER_BUTTON_ADV(NAME, TYPE, REL1X, REL1Y, OFF1X, OFF1Y, TO1X, TO1Y, REL2X, REL2Y, OFF2X, OFF2Y, TO2X, TO2Y) \ part { \ name: NAME"_shadow2"; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ visible: 1; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME"_bg"; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME"_bg"; \ } \ image { \ normal: "e17_mini_button_shadow2.png"; \ border: 8 8 8 8; \ } \ fill { \ smooth: 0; \ } \ color: 255 255 255 255; \ } \ description { \ state: "active" 0.0; \ visible: 0; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME"_bg"; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME"_bg"; \ } \ image { \ normal: "e17_mini_button_shadow2.png"; \ border: 8 8 8 8; \ } \ fill { \ smooth: 0; \ } \ color: 255 255 255 0; \ } \ } \ part { \ name: NAME"_shadow1"; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ visible: 1; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME"_bg"; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME"_bg"; \ } \ image { \ normal: "e17_mini_button_shadow1.png"; \ border: 8 8 8 8; \ } \ fill { \ smooth: 0; \ } \ color: 255 255 255 255; \ } \ description { \ state: "active" 0.0; \ visible: 0; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME"_bg"; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME"_bg"; \ } \ image { \ normal: "e17_mini_button_shadow1.png"; \ border: 8 8 8 8; \ } \ fill { \ smooth: 0; \ } \ color: 255 255 255 0; \ } \ } \ part { \ name: NAME"_bg"; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME; \ } \ image { \ normal: "e17_mini_button.png"; \ border: 8 8 8 8; \ } \ } \ description { \ state: "active" 0.0; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ to: NAME; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ to: NAME; \ } \ image { \ normal: "e17_mini_button.png"; \ border: 8 8 8 8; \ } \ } \ } \ part { \ name: NAME"_detail"; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ max: 16 16; \ rel1 { \ relative: 0.0 0.0; \ offset: 4 4; \ to: NAME"_bg"; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -5 -5; \ to: NAME"_bg"; \ } \ image { \ normal: "e17_button_detail_"TYPE".png"; \ } \ } \ } \ part { /* a rect for positioning */ \ name: NAME; \ type: RECT; \ description { \ state: "default" 0.0; \ align: 1.0 0.0; \ aspect: 1.0 1.0; \ aspect_preference: VERTICAL; \ rel1 { \ relative: REL1X REL1Y; \ offset: OFF1X OFF1Y; \ to_x: TO1X; \ to_y: TO1Y; \ } \ rel2 { \ relative: REL2X REL2Y; \ offset: OFF2X OFF2Y; \ to_x: TO2X; \ to_y: TO2Y; \ } \ color: 0 0 0 0; \ } \ } \ part { /* a rect for window manager actions */ \ name: "e.event."NAME; \ type: RECT; \ repeat_events: 1; \ description { \ state: "default" 0.0; \ color: 0 0 0 0; \ rel1.to: NAME; \ rel2.to: NAME; \ } \ } \ #define FULL_SIZE_BORDER_BUTTON(TYPE) \ group { \ name: "widgets/border/default/"TYPE; \ parts { \ part { \ name: "whole"; \ type: RECT; \ description { \ state: "default" 0.0; \ visible: 0; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ } \ } \ } \ BORDER_BUTTON("button",TYPE,0.0,0.0,-3,-3,"whole",1.0,1.0,2,2,"whole") \ } \ } images { image: "e17_border1.png" COMP; image: "e17_border2.png" COMP; image: "e17_border3.png" COMP; image: "e17_border4.png" COMP; image: "e17_border5.png" COMP; image: "e17_border6.png" COMP; image: "e17_border7.png" COMP; image: "e17_titlebar_outline.png" COMP; image: "e17_titlebar.png" COMP; image: "e17_titlebar_hung.png" COMP; image: "e17_titlebar_shadow1.png" COMP; image: "e17_titlebar_shadow2.png" COMP; image: "e17_titlebar_glint1.png" COMP; image: "e17_titlebar_glint2.png" COMP; image: "e17_titlebar_glint3.png" COMP; image: "e17_button_detail_close.png" COMP; image: "e17_button_detail_maximize.png" COMP; image: "e17_button_detail_minimize.png" COMP; image: "e17_button_detail_shade.png" COMP; image: "e17_button_detail_stick.png" COMP; image: "e17_button_detail_locks.png" COMP; image: "e17_button_detail_locks_user.png" COMP; image: "e17_button_detail_locks_application.png" COMP; image: "e17_button_detail_borderless.png" COMP; image: "e17_button_detail_remember.png" COMP; image: "e17_button_detail_skip_winlist.png" COMP; image: "e17_button_detail_fullscreen.png" COMP; image: "e17_button_detail_sendto.png" COMP; image: "e17_button_detail_kill.png" COMP; image: "e17_button_detail_stacking.png" COMP; image: "e17_button_detail_stack_below.png" COMP; image: "e17_button_detail_stack_normal.png" COMP; image: "e17_button_detail_stack_on_top.png" COMP; image: "e17_button_detail_properties.png" COMP; image: "e17_mini_button.png" COMP; image: "e17_mini_button_shadow1.png" COMP; image: "e17_mini_button_shadow2.png" COMP; image: "e17_border1b.png" COMP; image: "e17_border3b.png" COMP; image: "e17_border5b.png" COMP; image: "e17_border7b.png" COMP; } group { name: "widgets/border/default/border"; // ALSO: // borderless, noresize, shaped, nofocus, urgent, dialog, modal, skipped data { // this tells e the border is shaped // item: "shaped" "1"; } parts { part { name: "whole"; type: RECT; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: "title2"; type: TEXT; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 7; } rel2 { relative: 0.0 0.0; offset: 0 7; } text { text_source: "e.text.title"; source: "e.text.title"; min: 0 1; text_class: "title_bar"; } } } part { name: "t1"; mouse_events: 0; description { state: "default" 0.0; align: 0.0 0.0; aspect: 1.0 1.0; aspect_preference: VERTICAL; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: 0 5; to_y: "title2"; } image { normal: "e17_border1.png"; border: 6 2 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border1b.png"; } } } part { name: "t2"; mouse_events: 0; description { state: "default" 0.0; min: 0 1; rel1 { relative: 1.0 0.0; offset: 0 0; to: "t1"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "t3"; } image { normal: "e17_border2.png"; border: 2 2 3 3; } fill { smooth: 0; } } } part { name: "t3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to_x: "minimize"; } rel2 { relative: 1.0 1.0; offset: -1 5; to_y: "title2"; } image { normal: "e17_border3.png"; border: 3 6 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border3b.png"; } } } part { name: "b1"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "b2"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 -4; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } } part { name: "b3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } } part { name: "b4"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -4; } rel2 { relative: 0.0 1.0; offset: 3 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: -1 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } } part { name: "b5"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: 3 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "title_outline"; mouse_events: 0; description { state: "default" 0.0; min: 14 14; visible: 1; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 255; } description { state: "active" 0.0; min: 14 14; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 0; } } part { name: "title_shadow2"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_shadow1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_bar"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 255; } } part { name: "e.text.title"; type: TEXT; effect: SHADOW; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; rel1 { relative: 1.0 0.0; offset: 9 7; to_x: "t1"; } rel2 { relative: 0.0 0.0; offset: -10 7; to_x: "t3"; } color: 0 0 0 255; color3: 255 255 255 128; text { text: ""; font: "Edje-Vera"; size: 10; min: 0 1; align: 0.0 0.5; text_class: "title_bar"; } } } part { name: "title_glint_clip"; type: RECT; mouse_events: 0; description { state: "default" 0.0; rel1 { offset: 3 3; to: "title_bar"; } rel2 { offset: -4 -4; to: "title_bar"; } color: 255 255 255 255; } } part { name: "title_glint_1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 0.0 0.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint1.png"; border: 5 0 5 0; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_glint_2"; mouse_events: 0; clip_to: "title_glint_clip"; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; max: 0 0; align: 1.0 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; to: "title_bar"; } rel2 { relative: 0.0 1.0; offset: 0 -4; to: "title_bar"; } image { normal: "e17_titlebar_glint2.png"; border: 0 0 5 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; } rel2 { relative: 0.0 1.0; offset: 3 -4; } } description { state: "active2" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 128; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } description { state: "active3" 0.0; inherit: "default" 0.0; visible: 0; color: 255 255 255 0; max: 169 9999; min: 169 8; align: 0.0 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } } part { name: "title_glint_3"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 1.0 1.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint3.png"; border: 0 5 0 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_hung"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_hung.png"; border: 10 10 10 10; } color: 255 255 255 0; } description { state: "hung" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "e.swallow.icon"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 2 2; to: "t1"; } rel2 { relative: 1.0 1.0; offset: -2 -3; to: "t1"; } color: 0 0 0 0; } } part { name: "e.event.resize.l"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 1.0; offset: 3 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.r"; type: RECT; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 0; to_y: "t3"; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.b"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -4; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.bl"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -24; } rel2 { relative: 0.0 1.0; offset: 23 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.br"; type: RECT; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -24 -24; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.client"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: 0 0; to_x: "b5"; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to: "b2"; } } } BORDER_BUTTON_ADV("close","close",0.0,0.0, 0,0,"whole", "whole",1.0,1.0,-1,5,"whole", "title2") BORDER_BUTTON("maximize","maximize",0.0,0.0,3,0,"close",0.0,1.0,3,-1,"close") BORDER_BUTTON("minimize","minimize",0.0,0.0,3,0,"maximize",0.0,1.0,3,-1,"maximize") part { name: "e.event.icon"; type: RECT; description { state: "default" 0.0; rel1 { to: "e.swallow.icon"; } rel2 { to: "e.swallow.icon"; } color: 0 0 0 0; } } part { name: "e.event.titlebar"; type: RECT; description { state: "default" 0.0; rel1 { to: "title_bar"; } rel2 { to: "title_bar"; } color: 0 0 0 0; } } } programs { program { name: "go_active_pre"; signal: "e,state,focused"; source: "e"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_active"; } program { name: "go_active"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.05; after: "go_active2"; } program { name: "go_active2"; action: STATE_SET "active" 0.0; target: "title_shadow1"; transition: LINEAR 0.05; after: "go_active3"; after: "go_active3b"; } program { name: "go_active3"; action: STATE_SET "active" 0.0; target: "title_shadow2"; transition: LINEAR 0.05; } program { name: "go_active3b"; action: STATE_SET "active" 0.0; target: "title_glint_1"; target: "title_glint_2"; transition: LINEAR 0.05; after: "go_active4"; after: "go_active4b"; } program { name: "go_active4"; action: STATE_SET "active2" 0.0; target: "title_glint_2"; transition: LINEAR 0.2; after: "go_active5"; after: "go_active5b"; } program { name: "go_active4b"; action: STATE_SET "active" 0.0; target: "title_glint_3"; transition: LINEAR 0.2; } program { name: "go_active5"; action: STATE_SET "active3" 0.0; target: "title_glint_2"; transition: LINEAR 0.05; } program { name: "go_active5b"; action: STATE_SET "default" 0.0; target: "title_glint_3"; transition: LINEAR 0.1; after: "go_active6"; } program { name: "go_active6"; action: STATE_SET "default" 0.0; target: "title_glint_1"; target: "title_glint_2"; target: "title_glint_3"; } program { name: "go_passive_pre"; signal: "e,state,unfocused"; source: "e"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_passive"; } program { name: "go_passive"; action: STATE_SET "default" 0.0; target: "title_shadow2"; transition: LINEAR 0.1; after: "go_passive2"; } program { name: "go_passive2"; action: STATE_SET "default" 0.0; target: "title_shadow1"; transition: LINEAR 0.1; after: "go_passive3"; } program { name: "go_passive3"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.1; } program { name: "close_active_pre"; signal: "mouse,down,1"; source: "close"; action: STATE_SET "default" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_active"; after: "close_active_p"; } program { name: "close_active"; action: STATE_SET "active" 0.0; target: "close_shadow2"; transition: LINEAR 0.05; after: "close_active2"; } program { name: "close_active2"; action: STATE_SET "active" 0.0; target: "close_shadow1"; transition: LINEAR 0.05; } program { name: "close_active_p"; action: STATE_SET "active" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.1; } program { name: "close_passive_pre"; signal: "mouse,up,1"; source: "close"; action: STATE_SET "active" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_passive"; after: "close_passive_p"; } program { name: "close_passive"; action: STATE_SET "default" 0.0; target: "close_shadow2"; transition: LINEAR 0.1; after: "close_passive2"; } program { name: "close_passive2"; action: STATE_SET "default" 0.0; target: "close_shadow1"; transition: LINEAR 0.1; } program { name: "close_passive_p"; action: STATE_SET "default" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.2; } program { name: "maximize_active_pre"; signal: "mouse,down,1"; source: "maximize"; action: STATE_SET "default" 0.0; target: "maximize_shadow1"; target: "maximize_shadow2"; target: "maximize_bg"; target: "maximize_detail"; after: "maximize_active"; after: "maximize_active_p"; } program { name: "maximize_active"; action: STATE_SET "active" 0.0; target: "maximize_shadow2"; transition: LINEAR 0.05; after: "maximize_active2"; } program { name: "maximize_active2"; action: STATE_SET "active" 0.0; target: "maximize_shadow1"; transition: LINEAR 0.05; } program { name: "maximize_active_p"; action: STATE_SET "active" 0.0; target: "maximize_bg"; target: "maximize_detail"; transition: LINEAR 0.1; } program { name: "maximize_passive_pre"; signal: "mouse,up,1"; source: "maximize"; action: STATE_SET "active" 0.0; target: "maximize_shadow1"; target: "maximize_shadow2"; target: "maximize_bg"; target: "maximize_detail"; after: "maximize_passive"; after: "maximize_passive_p"; } program { name: "maximize_passive"; action: STATE_SET "default" 0.0; target: "maximize_shadow2"; transition: LINEAR 0.1; after: "maximize_passive2"; } program { name: "maximize_passive2"; action: STATE_SET "default" 0.0; target: "maximize_shadow1"; transition: LINEAR 0.1; } program { name: "maximize_passive_p"; action: STATE_SET "default" 0.0; target: "maximize_bg"; target: "maximize_detail"; transition: LINEAR 0.2; } program { name: "minimize_active_pre"; signal: "mouse,down,1"; source: "minimize"; action: STATE_SET "default" 0.0; target: "minimize_shadow1"; target: "minimize_shadow2"; target: "minimize_bg"; target: "minimize_detail"; after: "minimize_active"; after: "minimize_active_p"; } program { name: "minimize_active"; action: STATE_SET "active" 0.0; target: "minimize_shadow2"; transition: LINEAR 0.05; after: "minimize_active2"; } program { name: "minimize_active2"; action: STATE_SET "active" 0.0; target: "minimize_shadow1"; transition: LINEAR 0.05; } program { name: "minimize_active_p"; action: STATE_SET "active" 0.0; target: "minimize_bg"; target: "minimize_detail"; transition: LINEAR 0.1; } program { name: "minimize_passive_pre"; signal: "mouse,up,1"; source: "minimize"; action: STATE_SET "active" 0.0; target: "minimize_shadow1"; target: "minimize_shadow2"; target: "minimize_bg"; target: "minimize_detail"; after: "minimize_passive"; after: "minimize_passive_p"; } program { name: "minimize_passive"; action: STATE_SET "default" 0.0; target: "minimize_shadow2"; transition: LINEAR 0.1; after: "minimize_passive2"; } program { name: "minimize_passive2"; action: STATE_SET "default" 0.0; target: "minimize_shadow1"; transition: LINEAR 0.1; } program { name: "minimize_passive_p"; action: STATE_SET "default" 0.0; target: "minimize_bg"; target: "minimize_detail"; transition: LINEAR 0.2; } program { name: "maximize_fullscreen"; signal: "e,action,maximize,fullscreen"; source: "e"; action: STATE_SET "hidden" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "unmaximize_fullscreen"; signal: "e,action,unmaximize,fullscreen"; source: "e"; action: STATE_SET "default" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "go_hung"; signal: "e,state,hung"; source: "e"; action: STATE_SET "hung" 0.0; target: "title_hung"; transition: DECELERATE 0.5; after: "go_hung2"; } program { name: "go_hung2"; action: STATE_SET "default" 0.0; target: "title_hung"; transition: SINUSOIDAL 1.0; after: "go_hung"; } program { name: "go_unhung"; signal: "e,state,unhung"; source: "e"; action: ACTION_STOP; target: "go_hung"; target: "go_hung2"; after: "go_unhung2"; } program { name: "go_unhung2"; action: STATE_SET "default" 0.0; target: "title_hung"; } } } group { name: "widgets/border/shaped/border"; // ALSO: // borderless, noresize, shaped, nofocus, urgent, dialog, modal, skipped data { // this tells e the border is shaped item: "shaped" "1"; } parts { part { name: "whole"; type: RECT; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: "title2"; type: TEXT; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 7; } rel2 { relative: 0.0 0.0; offset: 0 7; } text { text_source: "e.text.title"; source: "e.text.title"; min: 0 1; text_class: "title_bar"; } } } part { name: "t1"; mouse_events: 0; description { state: "default" 0.0; align: 0.0 0.0; aspect: 1.0 1.0; aspect_preference: VERTICAL; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: 0 5; to_y: "title2"; } image { normal: "e17_border1b.png"; border: 6 2 3 3; } fill { smooth: 0; } } } part { name: "t2"; mouse_events: 0; description { state: "default" 0.0; min: 0 1; rel1 { relative: 1.0 0.0; offset: 0 0; to: "t1"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "t3"; } image { normal: "e17_border2.png"; border: 2 2 3 3; } fill { smooth: 0; } } } part { name: "t3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to_x: "minimize"; } rel2 { relative: 1.0 1.0; offset: -1 5; to_y: "title2"; } image { normal: "e17_border3b.png"; border: 3 6 3 3; } fill { smooth: 0; } } } part { name: "e.event.resize.br"; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -24 -24; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5b.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5b.png"; } fill { smooth: 0; } } } part { name: "e.event.resize.bl"; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -24; } rel2 { relative: 0.0 1.0; offset: 23 -1; } image { normal: "e17_border7b.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: -1 -1; } image { normal: "e17_border7b.png"; } fill { smooth: 0; } } } part { name: "title_outline"; mouse_events: 0; description { state: "default" 0.0; min: 14 14; visible: 1; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 255; } description { state: "active" 0.0; min: 14 14; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 0; } } part { name: "title_shadow2"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_shadow1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_bar"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 255; } } part { name: "e.text.title"; type: TEXT; effect: SHADOW; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; rel1 { relative: 1.0 0.0; offset: 9 7; to_x: "t1"; } rel2 { relative: 0.0 0.0; offset: -10 7; to_x: "t3"; } color: 0 0 0 255; color3: 255 255 255 128; text { text: ""; font: "Edje-Vera"; size: 10; min: 0 1; align: 0.0 0.5; text_class: "title_bar"; } } } part { name: "title_glint_clip"; type: RECT; mouse_events: 0; description { state: "default" 0.0; rel1 { offset: 3 3; to: "title_bar"; } rel2 { offset: -4 -4; to: "title_bar"; } color: 255 255 255 255; } } part { name: "title_glint_1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 0.0 0.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint1.png"; border: 5 0 5 0; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_glint_2"; mouse_events: 0; clip_to: "title_glint_clip"; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; max: 0 0; align: 1.0 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; to: "title_bar"; } rel2 { relative: 0.0 1.0; offset: 0 -4; to: "title_bar"; } image { normal: "e17_titlebar_glint2.png"; border: 0 0 5 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; } rel2 { relative: 0.0 1.0; offset: 3 -4; } } description { state: "active2" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 128; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } description { state: "active3" 0.0; inherit: "default" 0.0; visible: 0; color: 255 255 255 0; max: 169 9999; min: 169 8; align: 0.0 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } } part { name: "title_glint_3"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 1.0 1.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint3.png"; border: 0 5 0 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_hung"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_hung.png"; border: 10 10 10 10; } color: 255 255 255 0; } description { state: "hung" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "e.swallow.icon"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 2 2; to: "t1"; } rel2 { relative: 1.0 1.0; offset: -2 -3; to: "t1"; } color: 0 0 0 0; } } part { name: "e.client"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 4 0; to_x: "e.event.resize.bl"; to_y: "t1"; } rel2 { relative: 1.0 1.0; offset: -5 -5; to: "e.event.resize.br"; } } } BORDER_BUTTON_ADV("close","close",0.0,0.0, 0,0,"whole", "whole",1.0,1.0,-1,5,"whole", "title2") BORDER_BUTTON("maximize","maximize",0.0,0.0,3,0,"close",0.0,1.0,3,-1,"close") BORDER_BUTTON("minimize","minimize",0.0,0.0,3,0,"maximize",0.0,1.0,3,-1,"maximize") part { name: "e.event.icon"; type: RECT; description { state: "default" 0.0; rel1 { to: "e.swallow.icon"; } rel2 { to: "e.swallow.icon"; } color: 0 0 0 0; } } part { name: "e.event.titlebar"; type: RECT; description { state: "default" 0.0; rel1 { to: "title_bar"; } rel2 { to: "title_bar"; } color: 0 0 0 0; } } } programs { program { name: "go_active_pre"; signal: "e,state,focused"; source: "e"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_active"; } program { name: "go_active"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.05; after: "go_active2"; } program { name: "go_active2"; action: STATE_SET "active" 0.0; target: "title_shadow1"; transition: LINEAR 0.05; after: "go_active3"; after: "go_active3b"; } program { name: "go_active3"; action: STATE_SET "active" 0.0; target: "title_shadow2"; transition: LINEAR 0.05; } program { name: "go_active3b"; action: STATE_SET "active" 0.0; target: "title_glint_1"; target: "title_glint_2"; transition: LINEAR 0.05; after: "go_active4"; after: "go_active4b"; } program { name: "go_active4"; action: STATE_SET "active2" 0.0; target: "title_glint_2"; transition: LINEAR 0.2; after: "go_active5"; after: "go_active5b"; } program { name: "go_active4b"; action: STATE_SET "active" 0.0; target: "title_glint_3"; transition: LINEAR 0.2; } program { name: "go_active5"; action: STATE_SET "active3" 0.0; target: "title_glint_2"; transition: LINEAR 0.05; } program { name: "go_active5b"; action: STATE_SET "default" 0.0; target: "title_glint_3"; transition: LINEAR 0.1; after: "go_active6"; } program { name: "go_active6"; action: STATE_SET "default" 0.0; target: "title_glint_1"; target: "title_glint_2"; target: "title_glint_3"; } program { name: "go_passive_pre"; signal: "e,state,unfocused"; source: "e"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_passive"; } program { name: "go_passive"; action: STATE_SET "default" 0.0; target: "title_shadow2"; transition: LINEAR 0.1; after: "go_passive2"; } program { name: "go_passive2"; action: STATE_SET "default" 0.0; target: "title_shadow1"; transition: LINEAR 0.1; after: "go_passive3"; } program { name: "go_passive3"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.1; } program { name: "close_active_pre"; signal: "mouse,down,1"; source: "close"; action: STATE_SET "default" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_active"; after: "close_active_p"; } program { name: "close_active"; action: STATE_SET "active" 0.0; target: "close_shadow2"; transition: LINEAR 0.05; after: "close_active2"; } program { name: "close_active2"; action: STATE_SET "active" 0.0; target: "close_shadow1"; transition: LINEAR 0.05; } program { name: "close_active_p"; action: STATE_SET "active" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.1; } program { name: "close_passive_pre"; signal: "mouse,up,1"; source: "close"; action: STATE_SET "active" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_passive"; after: "close_passive_p"; } program { name: "close_passive"; action: STATE_SET "default" 0.0; target: "close_shadow2"; transition: LINEAR 0.1; after: "close_passive2"; } program { name: "close_passive2"; action: STATE_SET "default" 0.0; target: "close_shadow1"; transition: LINEAR 0.1; } program { name: "close_passive_p"; action: STATE_SET "default" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.2; } program { name: "maximize_active_pre"; signal: "mouse,down,1"; source: "maximize"; action: STATE_SET "default" 0.0; target: "maximize_shadow1"; target: "maximize_shadow2"; target: "maximize_bg"; target: "maximize_detail"; after: "maximize_active"; after: "maximize_active_p"; } program { name: "maximize_active"; action: STATE_SET "active" 0.0; target: "maximize_shadow2"; transition: LINEAR 0.05; after: "maximize_active2"; } program { name: "maximize_active2"; action: STATE_SET "active" 0.0; target: "maximize_shadow1"; transition: LINEAR 0.05; } program { name: "maximize_active_p"; action: STATE_SET "active" 0.0; target: "maximize_bg"; target: "maximize_detail"; transition: LINEAR 0.1; } program { name: "maximize_passive_pre"; signal: "mouse,up,1"; source: "maximize"; action: STATE_SET "active" 0.0; target: "maximize_shadow1"; target: "maximize_shadow2"; target: "maximize_bg"; target: "maximize_detail"; after: "maximize_passive"; after: "maximize_passive_p"; } program { name: "maximize_passive"; action: STATE_SET "default" 0.0; target: "maximize_shadow2"; transition: LINEAR 0.1; after: "maximize_passive2"; } program { name: "maximize_passive2"; action: STATE_SET "default" 0.0; target: "maximize_shadow1"; transition: LINEAR 0.1; } program { name: "maximize_passive_p"; action: STATE_SET "default" 0.0; target: "maximize_bg"; target: "maximize_detail"; transition: LINEAR 0.2; } program { name: "minimize_active_pre"; signal: "mouse,down,1"; source: "minimize"; action: STATE_SET "default" 0.0; target: "minimize_shadow1"; target: "minimize_shadow2"; target: "minimize_bg"; target: "minimize_detail"; after: "minimize_active"; after: "minimize_active_p"; } program { name: "minimize_active"; action: STATE_SET "active" 0.0; target: "minimize_shadow2"; transition: LINEAR 0.05; after: "minimize_active2"; } program { name: "minimize_active2"; action: STATE_SET "active" 0.0; target: "minimize_shadow1"; transition: LINEAR 0.05; } program { name: "minimize_active_p"; action: STATE_SET "active" 0.0; target: "minimize_bg"; target: "minimize_detail"; transition: LINEAR 0.1; } program { name: "minimize_passive_pre"; signal: "mouse,up,1"; source: "minimize"; action: STATE_SET "active" 0.0; target: "minimize_shadow1"; target: "minimize_shadow2"; target: "minimize_bg"; target: "minimize_detail"; after: "minimize_passive"; after: "minimize_passive_p"; } program { name: "minimize_passive"; action: STATE_SET "default" 0.0; target: "minimize_shadow2"; transition: LINEAR 0.1; after: "minimize_passive2"; } program { name: "minimize_passive2"; action: STATE_SET "default" 0.0; target: "minimize_shadow1"; transition: LINEAR 0.1; } program { name: "minimize_passive_p"; action: STATE_SET "default" 0.0; target: "minimize_bg"; target: "minimize_detail"; transition: LINEAR 0.2; } program { name: "maximize_fullscreen"; signal: "e,action,maximize,fullscreen"; source: "e"; action: STATE_SET "hidden" 0.0; target: "e.event.resize.bl"; target: "e.event.resize.br"; } program { name: "unmaximize_fullscreen"; signal: "e,action,unmaximize,fullscreen"; source: "e"; action: STATE_SET "default" 0.0; target: "e.event.resize.bl"; target: "e.event.resize.br"; } program { name: "go_hung"; signal: "e,state,hung"; source: "e"; action: STATE_SET "hung" 0.0; target: "title_hung"; transition: DECELERATE 0.5; after: "go_hung2"; } program { name: "go_hung2"; action: STATE_SET "default" 0.0; target: "title_hung"; transition: SINUSOIDAL 1.0; after: "go_hung"; } program { name: "go_unhung"; signal: "e,state,unhung"; source: "e"; action: ACTION_STOP; target: "go_hung"; target: "go_hung2"; after: "go_unhung2"; } program { name: "go_unhung2"; action: STATE_SET "default" 0.0; target: "title_hung"; } } } group { name: "widgets/border/dialog/border"; // ALSO: // borderless, noresize, shaped, nofocus, urgent, dialog, modal, skipped data { // this tells e the border is shaped // item: "shaped" "1"; } parts { part { name: "whole"; type: RECT; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: "title2"; type: TEXT; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 7; } rel2 { relative: 0.0 0.0; offset: 0 7; } text { text_source: "e.text.title"; source: "e.text.title"; min: 0 1; text_class: "title_bar"; } } } part { name: "t1"; mouse_events: 0; description { state: "default" 0.0; align: 0.0 0.0; aspect: 1.0 1.0; aspect_preference: VERTICAL; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: 0 5; to_y: "title2"; } image { normal: "e17_border1.png"; border: 6 2 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border1b.png"; } } } part { name: "t2"; mouse_events: 0; description { state: "default" 0.0; min: 0 1; rel1 { relative: 1.0 0.0; offset: 0 0; to: "t1"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "t3"; } image { normal: "e17_border2.png"; border: 2 2 3 3; } fill { smooth: 0; } } } part { name: "t3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to_x: "close"; } rel2 { relative: 1.0 1.0; offset: -1 5; to_y: "title2"; } image { normal: "e17_border3.png"; border: 3 6 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border3b.png"; } } } part { name: "b1"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "b2"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 -4; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } } part { name: "b3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } } part { name: "b4"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -4; } rel2 { relative: 0.0 1.0; offset: 3 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: -1 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } } part { name: "b5"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: 3 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "title_outline"; mouse_events: 0; description { state: "default" 0.0; min: 14 14; visible: 1; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 255; } description { state: "active" 0.0; min: 14 14; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 0; } } part { name: "title_shadow2"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_shadow1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_bar"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 255; } } part { name: "e.text.title"; type: TEXT; effect: SHADOW; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; rel1 { relative: 1.0 0.0; offset: 9 7; to_x: "t1"; } rel2 { relative: 0.0 0.0; offset: -10 7; to_x: "t3"; } color: 0 0 0 255; color3: 255 255 255 128; text { text: ""; font: "Edje-Vera"; size: 10; min: 0 1; align: 0.0 0.5; text_class: "title_bar"; } } } part { name: "title_glint_clip"; type: RECT; mouse_events: 0; description { state: "default" 0.0; rel1 { offset: 3 3; to: "title_bar"; } rel2 { offset: -4 -4; to: "title_bar"; } color: 255 255 255 255; } } part { name: "title_glint_1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 0.0 0.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint1.png"; border: 5 0 5 0; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_glint_2"; mouse_events: 0; clip_to: "title_glint_clip"; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; max: 0 0; align: 1.0 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; to: "title_bar"; } rel2 { relative: 0.0 1.0; offset: 0 -4; to: "title_bar"; } image { normal: "e17_titlebar_glint2.png"; border: 0 0 5 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; } rel2 { relative: 0.0 1.0; offset: 3 -4; } } description { state: "active2" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 128; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } description { state: "active3" 0.0; inherit: "default" 0.0; visible: 0; color: 255 255 255 0; max: 169 9999; min: 169 8; align: 0.0 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } } part { name: "title_glint_3"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 1.0 1.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint3.png"; border: 0 5 0 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_hung"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_hung.png"; border: 10 10 10 10; } color: 255 255 255 0; } description { state: "hung" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "e.swallow.icon"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 2 2; to: "t1"; } rel2 { relative: 1.0 1.0; offset: -2 -3; to: "t1"; } color: 0 0 0 0; } } part { name: "e.event.resize.l"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 1.0; offset: 3 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.r"; type: RECT; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 0; to_y: "t3"; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.b"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -4; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.bl"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -24; } rel2 { relative: 0.0 1.0; offset: 23 -1; } color: 0 0 0 0; } } part { name: "e.event.resize.br"; type: RECT; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -24 -24; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 0; } } part { name: "e.client"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: 0 0; to_x: "b5"; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to: "b2"; } } } BORDER_BUTTON_ADV("close","close",0.0,0.0, 0,0,"whole", "whole",1.0,1.0,-1,5,"whole", "title2") part { name: "e.event.icon"; type: RECT; description { state: "default" 0.0; rel1 { to: "e.swallow.icon"; } rel2 { to: "e.swallow.icon"; } color: 0 0 0 0; } } part { name: "e.event.titlebar"; type: RECT; description { state: "default" 0.0; rel1 { to: "title_bar"; } rel2 { to: "title_bar"; } color: 0 0 0 0; } } } programs { program { name: "go_active_pre"; signal: "e,state,focused"; source: "e"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_active"; } program { name: "go_active"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.05; after: "go_active2"; } program { name: "go_active2"; action: STATE_SET "active" 0.0; target: "title_shadow1"; transition: LINEAR 0.05; after: "go_active3"; after: "go_active3b"; } program { name: "go_active3"; action: STATE_SET "active" 0.0; target: "title_shadow2"; transition: LINEAR 0.05; } program { name: "go_active3b"; action: STATE_SET "active" 0.0; target: "title_glint_1"; target: "title_glint_2"; transition: LINEAR 0.05; after: "go_active4"; after: "go_active4b"; } program { name: "go_active4"; action: STATE_SET "active2" 0.0; target: "title_glint_2"; transition: LINEAR 0.2; after: "go_active5"; after: "go_active5b"; } program { name: "go_active4b"; action: STATE_SET "active" 0.0; target: "title_glint_3"; transition: LINEAR 0.2; } program { name: "go_active5"; action: STATE_SET "active3" 0.0; target: "title_glint_2"; transition: LINEAR 0.05; } program { name: "go_active5b"; action: STATE_SET "default" 0.0; target: "title_glint_3"; transition: LINEAR 0.1; after: "go_active6"; } program { name: "go_active6"; action: STATE_SET "default" 0.0; target: "title_glint_1"; target: "title_glint_2"; target: "title_glint_3"; } program { name: "go_passive_pre"; signal: "e,state,unfocused"; source: "e"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_passive"; } program { name: "go_passive"; action: STATE_SET "default" 0.0; target: "title_shadow2"; transition: LINEAR 0.1; after: "go_passive2"; } program { name: "go_passive2"; action: STATE_SET "default" 0.0; target: "title_shadow1"; transition: LINEAR 0.1; after: "go_passive3"; } program { name: "go_passive3"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.1; } program { name: "close_active_pre"; signal: "mouse,down,1"; source: "close"; action: STATE_SET "default" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_active"; after: "close_active_p"; } program { name: "close_active"; action: STATE_SET "active" 0.0; target: "close_shadow2"; transition: LINEAR 0.05; after: "close_active2"; } program { name: "close_active2"; action: STATE_SET "active" 0.0; target: "close_shadow1"; transition: LINEAR 0.05; } program { name: "close_active_p"; action: STATE_SET "active" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.1; } program { name: "close_passive_pre"; signal: "mouse,up,1"; source: "close"; action: STATE_SET "active" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_passive"; after: "close_passive_p"; } program { name: "close_passive"; action: STATE_SET "default" 0.0; target: "close_shadow2"; transition: LINEAR 0.1; after: "close_passive2"; } program { name: "close_passive2"; action: STATE_SET "default" 0.0; target: "close_shadow1"; transition: LINEAR 0.1; } program { name: "close_passive_p"; action: STATE_SET "default" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.2; } program { name: "maximize_fullscreen"; signal: "e,action,maximize,fullscreen"; source: "e"; action: STATE_SET "hidden" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "unmaximize_fullscreen"; signal: "e,action,unmaximize,fullscreen"; source: "e"; action: STATE_SET "default" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "go_hung"; signal: "e,state,hung"; source: "e"; action: STATE_SET "hung" 0.0; target: "title_hung"; transition: DECELERATE 0.5; after: "go_hung2"; } program { name: "go_hung2"; action: STATE_SET "default" 0.0; target: "title_hung"; transition: SINUSOIDAL 1.0; after: "go_hung"; } program { name: "go_unhung"; signal: "e,state,unhung"; source: "e"; action: ACTION_STOP; target: "go_hung"; target: "go_hung2"; after: "go_unhung2"; } program { name: "go_unhung2"; action: STATE_SET "default" 0.0; target: "title_hung"; } } } group { name: "widgets/border/noresize_dialog/border"; // ALSO: // borderless, noresize, shaped, nofocus, urgent, dialog, modal, skipped data { // this tells e the border is shaped // item: "shaped" "1"; } parts { part { name: "whole"; type: RECT; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: "title2"; type: TEXT; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 7; } rel2 { relative: 0.0 0.0; offset: 0 7; } text { text_source: "e.text.title"; source: "e.text.title"; min: 0 1; text_class: "title_bar"; } } } part { name: "t1"; mouse_events: 0; description { state: "default" 0.0; align: 0.0 0.0; aspect: 1.0 1.0; aspect_preference: VERTICAL; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: 0 5; to_y: "title2"; } image { normal: "e17_border1.png"; border: 6 2 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border1b.png"; } } } part { name: "t2"; mouse_events: 0; description { state: "default" 0.0; min: 0 1; rel1 { relative: 1.0 0.0; offset: 0 0; to: "t1"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "t3"; } image { normal: "e17_border2.png"; border: 2 2 3 3; } fill { smooth: 0; } } } part { name: "t3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to_x: "close"; } rel2 { relative: 1.0 1.0; offset: -1 5; to_y: "title2"; } image { normal: "e17_border3.png"; border: 3 6 3 3; } fill { smooth: 0; } } description { state: "hidden" 0.0; inherit: "default" 0.0; image { normal: "e17_border3b.png"; } } } part { name: "b1"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; to_y: "t3"; } rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "b2"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "b2"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -4 -4; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 1.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image { normal: "e17_border5.png"; } fill { smooth: 0; } } } part { name: "b3"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 0; to: "b4"; } rel2 { relative: 0.0 1.0; offset: -1 -1; to: "b2"; } image { normal: "e17_border6.png"; } fill { smooth: 0; } } } part { name: "b4"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -4; } rel2 { relative: 0.0 1.0; offset: 3 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; } rel2 { relative: 0.0 1.0; offset: -1 -1; } image { normal: "e17_border7.png"; } fill { smooth: 0; } } } part { name: "b5"; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: 3 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } description { state: "hidden" 0.0; visible: 0; rel1 { relative: 0.0 1.0; offset: 0 0; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to_y: "b4"; } image { normal: "e17_border4.png"; } fill { smooth: 0; } } } part { name: "title_outline"; mouse_events: 0; description { state: "default" 0.0; min: 14 14; visible: 1; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 255; } description { state: "active" 0.0; min: 14 14; visible: 0; rel1 { relative: 1.0 0.0; offset: 0 -7; to_x: "t1"; to_y: "title2"; } rel2 { relative: 0.0 1.0; offset: -2 4; to_x: "t3"; to_y: "title2"; } image { normal: "e17_titlebar_outline.png"; border: 8 8 8 8; middle: 0; } fill { smooth: 0; } color: 255 255 255 0; } } part { name: "title_shadow2"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow2.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_shadow1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_shadow1.png"; border: 8 8 8 8; } fill { smooth: 0; } color: 255 255 255 255; } } part { name: "title_bar"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 0; } description { state: "active" 0.0; visible: 1; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar.png"; border: 8 8 8 8; } color: 255 255 255 255; } } part { name: "e.text.title"; type: TEXT; effect: SHADOW; mouse_events: 0; description { state: "default" 0.0; align: 1.0 0.0; rel1 { relative: 1.0 0.0; offset: 9 7; to_x: "t1"; } rel2 { relative: 0.0 0.0; offset: -10 7; to_x: "t3"; } color: 0 0 0 255; color3: 255 255 255 128; text { text: ""; font: "Edje-Vera"; size: 10; min: 0 1; align: 0.0 0.5; text_class: "title_bar"; } } } part { name: "title_glint_clip"; type: RECT; mouse_events: 0; description { state: "default" 0.0; rel1 { offset: 3 3; to: "title_bar"; } rel2 { offset: -4 -4; to: "title_bar"; } color: 255 255 255 255; } } part { name: "title_glint_1"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 0.0 0.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint1.png"; border: 5 0 5 0; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_glint_2"; mouse_events: 0; clip_to: "title_glint_clip"; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; max: 0 0; align: 1.0 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; to: "title_bar"; } rel2 { relative: 0.0 1.0; offset: 0 -4; to: "title_bar"; } image { normal: "e17_titlebar_glint2.png"; border: 0 0 5 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 0.0 0.0; offset: 3 3; } rel2 { relative: 0.0 1.0; offset: 3 -4; } } description { state: "active2" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 128; max: 169 9999; min: 169 8; align: 0.5 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } description { state: "active3" 0.0; inherit: "default" 0.0; visible: 0; color: 255 255 255 0; max: 169 9999; min: 169 8; align: 0.0 0.5; rel1 { relative: 1.0 0.0; offset: -4 3; } rel2 { relative: 1.0 1.0; offset: -4 -4; } } } part { name: "title_glint_3"; mouse_events: 0; description { state: "default" 0.0; visible: 0; color: 255 255 255 0; align: 1.0 1.0; max: 34 13; rel1 { relative: 0.0 0.0; offset: 2 2; to: "title_bar"; } rel2 { relative: 1.0 1.0; offset: -3 -3; to: "title_bar"; } image { normal: "e17_titlebar_glint3.png"; border: 0 5 0 5; } fill { smooth: 0; } } description { state: "active" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "title_hung"; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "title_outline"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "title_outline"; } image { normal: "e17_titlebar_hung.png"; border: 10 10 10 10; } color: 255 255 255 0; } description { state: "hung" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 255; } } part { name: "e.swallow.icon"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 2 2; to: "t1"; } rel2 { relative: 1.0 1.0; offset: -2 -3; to: "t1"; } color: 0 0 0 0; } } part { name: "e.client"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: 0 0; to_x: "b5"; to_y: "t1"; } rel2 { relative: 0.0 0.0; offset: -1 -1; to: "b2"; } } } BORDER_BUTTON_ADV("close","close",0.0,0.0, 0,0,"whole", "whole",1.0,1.0,-1,5,"whole", "title2") part { name: "e.event.icon"; type: RECT; description { state: "default" 0.0; rel1 { to: "e.swallow.icon"; } rel2 { to: "e.swallow.icon"; } color: 0 0 0 0; } } part { name: "e.event.titlebar"; type: RECT; description { state: "default" 0.0; rel1 { to: "title_bar"; } rel2 { to: "title_bar"; } color: 0 0 0 0; } } } programs { program { name: "go_active_pre"; signal: "e,state,focused"; source: "e"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_active"; } program { name: "go_active"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.05; after: "go_active2"; } program { name: "go_active2"; action: STATE_SET "active" 0.0; target: "title_shadow1"; transition: LINEAR 0.05; after: "go_active3"; after: "go_active3b"; } program { name: "go_active3"; action: STATE_SET "active" 0.0; target: "title_shadow2"; transition: LINEAR 0.05; } program { name: "go_active3b"; action: STATE_SET "active" 0.0; target: "title_glint_1"; target: "title_glint_2"; transition: LINEAR 0.05; after: "go_active4"; after: "go_active4b"; } program { name: "go_active4"; action: STATE_SET "active2" 0.0; target: "title_glint_2"; transition: LINEAR 0.2; after: "go_active5"; after: "go_active5b"; } program { name: "go_active4b"; action: STATE_SET "active" 0.0; target: "title_glint_3"; transition: LINEAR 0.2; } program { name: "go_active5"; action: STATE_SET "active3" 0.0; target: "title_glint_2"; transition: LINEAR 0.05; } program { name: "go_active5b"; action: STATE_SET "default" 0.0; target: "title_glint_3"; transition: LINEAR 0.1; after: "go_active6"; } program { name: "go_active6"; action: STATE_SET "default" 0.0; target: "title_glint_1"; target: "title_glint_2"; target: "title_glint_3"; } program { name: "go_passive_pre"; signal: "e,state,unfocused"; source: "e"; action: STATE_SET "active" 0.0; target: "title_outline"; target: "title_bar"; target: "title_shadow1"; target: "title_shadow2"; after: "go_passive"; } program { name: "go_passive"; action: STATE_SET "default" 0.0; target: "title_shadow2"; transition: LINEAR 0.1; after: "go_passive2"; } program { name: "go_passive2"; action: STATE_SET "default" 0.0; target: "title_shadow1"; transition: LINEAR 0.1; after: "go_passive3"; } program { name: "go_passive3"; action: STATE_SET "default" 0.0; target: "title_outline"; target: "title_bar"; transition: LINEAR 0.1; } program { name: "close_active_pre"; signal: "mouse,down,1"; source: "close"; action: STATE_SET "default" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_active"; after: "close_active_p"; } program { name: "close_active"; action: STATE_SET "active" 0.0; target: "close_shadow2"; transition: LINEAR 0.05; after: "close_active2"; } program { name: "close_active2"; action: STATE_SET "active" 0.0; target: "close_shadow1"; transition: LINEAR 0.05; } program { name: "close_active_p"; action: STATE_SET "active" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.1; } program { name: "close_passive_pre"; signal: "mouse,up,1"; source: "close"; action: STATE_SET "active" 0.0; target: "close_shadow1"; target: "close_shadow2"; target: "close_bg"; target: "close_detail"; after: "close_passive"; after: "close_passive_p"; } program { name: "close_passive"; action: STATE_SET "default" 0.0; target: "close_shadow2"; transition: LINEAR 0.1; after: "close_passive2"; } program { name: "close_passive2"; action: STATE_SET "default" 0.0; target: "close_shadow1"; transition: LINEAR 0.1; } program { name: "close_passive_p"; action: STATE_SET "default" 0.0; target: "close_bg"; target: "close_detail"; transition: LINEAR 0.2; } program { name: "maximize_fullscreen"; signal: "e,action,maximize,fullscreen"; source: "e"; action: STATE_SET "hidden" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "unmaximize_fullscreen"; signal: "e,action,unmaximize,fullscreen"; source: "e"; action: STATE_SET "default" 0.0; target: "t1"; target: "t3"; target: "b1"; target: "b2"; target: "b3"; target: "b4"; target: "b5"; } program { name: "go_hung"; signal: "e,state,hung"; source: "e"; action: STATE_SET "hung" 0.0; target: "title_hung"; transition: DECELERATE 0.5; after: "go_hung2"; } program { name: "go_hung2"; action: STATE_SET "default" 0.0; target: "title_hung"; transition: SINUSOIDAL 1.0; after: "go_hung"; } program { name: "go_unhung"; signal: "e,state,unhung"; source: "e"; action: ACTION_STOP; target: "go_hung"; target: "go_hung2"; after: "go_unhung2"; } program { name: "go_unhung2"; action: STATE_SET "default" 0.0; target: "title_hung"; } } } group { name: "widgets/border/pixel/border"; // ALSO: // borderless, noresize, shaped, nofocus, urgent, dialog, modal, skipped data { // this tells e the border is shaped // item: "shaped" "1"; } parts { part { name: "pixel1"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 0.0; offset: -1 0; } color: 0 0 0 255; } } part { name: "pixel2"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; offset: 0 -1; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: 0 0 0 255; } } part { name: "pixel3"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 1; } rel2 { relative: 0.0 1.0; offset: 0 -2; } color: 0 0 0 255; } } part { name: "pixel4"; type: RECT; description { state: "default" 0.0; rel1 { relative: 1.0 0.0; offset: -1 1; } rel2 { relative: 1.0 1.0; offset: -1 -2; } color: 0 0 0 255; } } part { name: "e.client"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 1 1; } rel2 { relative: 1.0 1.0; offset: -2 -2; } } } } } FULL_SIZE_BORDER_BUTTON("close") FULL_SIZE_BORDER_BUTTON("minimize") FULL_SIZE_BORDER_BUTTON("maximize") FULL_SIZE_BORDER_BUTTON("shade") FULL_SIZE_BORDER_BUTTON("stick") FULL_SIZE_BORDER_BUTTON("kill") FULL_SIZE_BORDER_BUTTON("locks") FULL_SIZE_BORDER_BUTTON("locks_user") FULL_SIZE_BORDER_BUTTON("locks_application") FULL_SIZE_BORDER_BUTTON("borderless") FULL_SIZE_BORDER_BUTTON("fullscreen") FULL_SIZE_BORDER_BUTTON("remember") FULL_SIZE_BORDER_BUTTON("skip_winlist") FULL_SIZE_BORDER_BUTTON("sendto") FULL_SIZE_BORDER_BUTTON("stacking") FULL_SIZE_BORDER_BUTTON("stack_on_top") FULL_SIZE_BORDER_BUTTON("stack_normal") FULL_SIZE_BORDER_BUTTON("stack_below") FULL_SIZE_BORDER_BUTTON("properties")