}
}
}
+
+group { name: "elm/border/base/simple";
+ images.image: "win_glow.png" COMP;
+ images.image: "glow_round_corners_small.png" COMP;
+ images.image: "simple-border.png" COMP;
+ images.image: "simple-button-close.png" COMP;
+
+ // XXX: trhis is UNTESTED!!! need wl to test!
+ parts {
+ part { name: "focus_clip"; type: RECT;
+ description { state: "default" 0.0;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.frame_spacer"; type: SWALLOW;
+ clip_to: "focus_clip";
+ description { state: "default" 0.0;
+ rel1.to: "frame";
+ rel2.to: "frame";
+ }
+ }
+ part { name: "frame"; type: SPACER;
+ description { state: "default" 0.0;
+ rel1.offset: 17 51;
+ rel2.offset: -22 -22;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "glow"; mouse_events: 0;
+ clip_to: "focus_clip";
+ description { state: "default" 0.0;
+ image.normal: "win_glow.png";
+ image.border: 9 9 9 9;
+ image.middle: 0;
+ rel1.offset: -17 -52;
+ rel1.to: "frame";
+ rel2.offset: 23 23;
+ rel2.to: "frame";
+ fill.smooth: 0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ part { name: "client_clip"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to_y: "elm.swallow.client";
+ rel2.to_y: "elm.swallow.client";
+ }
+ }
+ part { name: "elm.swallow.client"; type: SWALLOW;
+ clip_to: "client_clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel1.to: "top";
+ rel2.relative: 1.0 0.0;
+ rel2.to: "bottom";
+ }
+ description { state: "shaded" 0.0;
+ inherit: "default" 0.0;
+ rel2.relative: 1.0 1.0;
+ rel2.offset: -1 -1;
+ rel2.to: "bottom";
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ rel2.relative: 1.0 1.0;
+ rel2.offset: -1 -1;
+ rel2.to: "bottom";
+ }
+ }
+ part { name: "top"; type:RECT; mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.offset: 0 -52 ;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "frame";
+ rel2.relative: 1.0 0.0;
+ rel2.offset: 0 0;
+ rel2.to: "frame";
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "bottom"; type:RECT; mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel1.offset: 0 0;
+ rel1.to: "frame";
+ rel2.relative: 1.0 1.0;
+ rel2.offset: 0 22;
+ rel2.to: "frame";
+ visible: 1;
+ color: 0 0 0 0;
+ fixed: 0 1;
+ }
+ description { state: "shaded" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ }
+ part { name: "border"; mouse_events: 0;
+ description { state: "default" 0.0;
+ image.normal: "simple-border.png";
+ image.border: 17 23 52 23;
+ image.middle: 0;
+ rel1.to: "frame";
+ rel1.offset: -17 -51;
+ rel1.relative: 0.0 0.0;
+ rel2.to: "frame";
+ rel2.relative: 1.0 1.0;
+ rel2.offset: 22 22;
+ visible: 1;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.text.title"; type: TEXT;
+ scale: 1; nomouse;
+ effect: SHADOW BOTTOM;
+ description { state: "default" 0.0;
+ color_class: "border_title";
+ rel1.relative: 0.0 0.0;
+ rel1.offset: 1 23;
+ rel1.to: "top";
+ rel2.relative: 0.0 1.0;
+ rel2.offset: -1 2;
+ rel2.to_x: "e.event.close";
+ rel2.to_y: "top";
+ align: 0.5 0.0;
+ color_class: "border_title";
+ color3: 255 255 255 255;
+ text { font: FNBD; size: 20;
+ text_class: "title_bar";
+ align: 0.5 0.0;
+ min: 0 1;
+ }
+ fixed: 0 1;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "title2"; type: TEXT;
+ scale: 1; nomouse;
+ effect: SOFT_SHADOW BOTTOM;
+ description { state: "default" 0.0;
+ color_class: "border_title_active";
+ rel1.relative: 0.0 0.0;
+ rel1.offset: 0 23;
+ rel1.to: "top";
+ rel2.relative: 0.0 1.0;
+ rel2.offset: -1 2;
+ rel2.to_x: "e.event.close";
+ rel2.to_y: "top";
+ align: 0.5 0.0;
+ color_class: "border_title_active";
+ color3: 255 255 255 255;
+ text { font: FNBD; size: 20;
+ text_source: "elm.text.title";
+ text_class: "title_bar";
+ align: 0.5 0.0;
+ min: 0 1;
+ }
+ fixed: 0 1;
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clip1"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "top";
+ rel2.to: "top";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "clip2"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "top";
+ rel2.to: "top";
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "close1"; nomouse;
+ clip_to: "clip1";
+ description { state: "default" 0.0;
+ image.normal: "simple-button-close.png";
+ rel1.to: "e.event.close";
+ rel2.to: "e.event.close";
+ align: 0.5 0.5;
+ FIXED_SIZE(20, 20);
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "simple-button-close.png";
+ }
+ }
+ part { name: "close2"; nomouse;
+ clip_to: "clip2";
+ description { state: "default" 0.0;
+ image.normal: "simple-button-close.png";
+ rel1.to: "e.event.close";
+ rel2.to: "e.event.close";
+ align: 0.5 0.5;
+ FIXED_SIZE(20, 20);
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "simple-button-close.png";
+ }
+ }
+ part { name: "e.event.titlebar"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.offset: 0 23;
+ rel1.to: "top";
+ rel2.relative: 0.0 1.0;
+ rel2.to_x: "e.event.close";
+ rel2.to_y: "top";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "e.event.close"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel1.offset: 0 23;
+ rel1.to: "top";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "top";
+ align: 1.0 0.5;
+ aspect: 1.0 1.0; aspect_preference: VERTICAL;
+ color: 0 0 0 0;
+ FIXED_SIZE(20, 20);
+ }
+ }
+ part { name: "e.event.resize.tl"; type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "top";
+ rel1.relative: 0.0 0.0;
+ rel1.offset: -17 0;
+ rel2.relative: 0.0 1.0;
+ rel2.to_y: "top";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "e.event.resize.t"; type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "top";
+ rel2.relative: 1.0 0.0;
+ rel2.offset: 0 23;
+ rel2.to: "top";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "e.event.resize.tr"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "top";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "top";
+ rel2.relative: 1.0 1.0;
+ rel2.offset: 23 0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "e.event.resize.bl"; type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bottom";
+ rel1.relative: 0.0 0.0;
+ rel1.offset: -17 0;
+ rel2.to: "bottom";
+ rel2.relative: 0.0 1.0;
+ color: 0 0 0 0;
+ }
+ description { state: "shaded" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ }
+ part { name: "e.event.resize.b"; type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bottom";
+ rel2.to: "bottom";
+ color: 0 0 0 0;
+ }
+ description { state: "shaded" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ }
+ part { name: "e.event.resize.br"; type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bottom";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bottom";
+ rel2.relative: 1.0 1.0;
+ rel2.offset: 23 0;
+ color: 0 0 0 0;
+ }
+ description { state: "shaded" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ description { state: "max" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ visible: 0;
+ }
+ }
+ part { name: "e.event.resize.r"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.relative: 1.0 1.0;
+ rel1.to_x: "top";
+ rel1.to_y: "e.event.resize.tr";
+ rel2.relative: 1.0 0.0;
+ rel2.to_x: "e.event.resize.br";
+ rel2.to_y: "bottom";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "e.event.resize.l"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel1.to_x: "e.event.resize.tl";
+ rel1.to_y: "top";
+ rel2.relative: 0.0 0.0;
+ rel2.to_x: "bottom";
+ rel2.to_y: "e.event.resize.bl";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ signal: "elm,action,focus"; source: "elm";
+ action: STATE_SET "focused" 0.0;
+ transition: SINUSOIDAL 0.1;
+ target: "glow";
+ after: "focus2";
+ }
+ program { name: "focus2";
+ action: STATE_SET "default" 0.0;
+ transition: SINUSOIDAL 0.4;
+ target: "glow";
+ }
+ program {
+ signal: "elm,action,unfocus"; source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: SINUSOIDAL 0.1;
+ target: "glow";
+ }
+ program {
+ signal: "elm,action,focus"; source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "top";
+ target: "elm.text.title";
+ target: "title2";
+ target: "clip1";
+ target: "clip2";
+ }
+ program {
+ signal: "elm,action,unfocus"; source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "top";
+ target: "elm.text.title";
+ target: "title2";
+ target: "clip1";
+ target: "clip2";
+ }
+ program {
+ signal: "elm,state,shaded"; source: "elm";
+ action: STATE_SET "shaded" 0.0;
+ target: "elm.swallow.client";
+ target: "bottom";
+ target: "e.event.resize.bl";
+ target: "e.event.resize.b";
+ target: "e.event.resize.br";
+ }
+ program {
+ signal: "elm,state,unshading"; source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.client";
+ target: "bottom";
+ target: "e.event.resize.bl";
+ target: "e.event.resize.b";
+ target: "e.event.resize.br";
+ }
+ program {
+ signal: "elm,state,maximized"; source: "elm";
+ action: STATE_SET "max" 0.0;
+ target: "elm.swallow.client";
+ target: "frame";
+ target: "focus_clip";
+ target: "bottom";
+ target: "e.event.resize.bl";
+ target: "e.event.resize.b";
+ target: "e.event.resize.br";
+ }
+ program {
+ signal: "elm,state,unmaximized"; source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.client";
+ target: "frame";
+ target: "focus_clip";
+ target: "bottom";
+ target: "e.event.resize.bl";
+ target: "e.event.resize.b";
+ target: "e.event.resize.br";
+ }
+ program {
+ signal: "mouse,down,*"; source: "e.event.lose";
+ action: STATE_SET "selected" 0.0;
+ target: "close1";
+ target: "close2";
+ }
+ program {
+ signal: "mouse,up,*"; source: "e.event.close";
+ action: STATE_SET "default" 0.0;
+ target: "close1";
+ target: "close2";
+ }
+
+ program {
+ signal: "mouse,down,1"; source: "e.event.titlebar";
+ action: SIGNAL_EMIT "elm,action,move,start" "elm";
+ }
+ program {
+ signal: "mouse,up,1"; source: "e.event.titlebar";
+ action: SIGNAL_EMIT "elm,action,move,stop" "elm";
+ }
+ program {
+ signal: "mouse,clicked,1"; source: "e.event.close";
+ action: SIGNAL_EMIT "elm,action,close" "elm";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.t";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.t";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.t";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.t";
+ }
+ program { name: "resize_t_down";
+ signal: "mouse,down,1"; source: "e.event.resize.t";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.t";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.b";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.b";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.b";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.b";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.b";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.b";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.l";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.l";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.l";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.l";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.l";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.l";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.r";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.r";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.r";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.r";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.r";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.r";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.tl";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tl";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.tl";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tl";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.tl";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tl";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.tr";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tr";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.tr";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tr";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.tr";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tr";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.bl";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.bl";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.bl";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.bl";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.bl";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.bl";
+ }
+ program {
+ signal: "mouse,in"; source: "e.event.resize.br";
+ action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.br";
+ }
+ program {
+ signal: "mouse,out"; source: "e.event.resize.br";
+ action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.br";
+ }
+ program {
+ signal: "mouse,down,1"; source: "e.event.resize.br";
+ action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.br";
+ }
+ }
+}