From: Enlightenment S. <no-...@en...> - 2010-11-17 18:30:33
|
Log: detour-elm : finish genlist and add list Author: watchwolf Date: 2010-11-17 10:30:26 -0800 (Wed, 17 Nov 2010) New Revision: 54647 Modified: trunk/THEMES/detour-elm/main.edc Modified: trunk/THEMES/detour-elm/main.edc =================================================================== --- trunk/THEMES/detour-elm/main.edc 2010-11-17 18:25:42 UTC (rev 54646) +++ trunk/THEMES/detour-elm/main.edc 2010-11-17 18:30:26 UTC (rev 54647) @@ -11,6 +11,28 @@ #include "images.edc" /* Includes both icons and regular images */ } + +styles + { + style { name: "genlist_style"; + base: "font=DejaVuSans font_size=10 align=left valign=0.5 color=#000"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font=DejaVuSans-Bold"; + tag: "b" "+ font=DejaVuSans-Bold"; + tag: "tab" "\t"; + } + style { name: "genlist_selected_style"; + base: "font=DejaVuSans font_size=10 align=left valign=0.5 color=#fff"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font=DejaVuSans-Bold"; + tag: "b" "+ font=DejaVuSans-Bold"; + tag: "tab" "\t"; + } + } + + collections { /////////////////////////////////////////////////////////////////////////////// group { @@ -5284,6 +5306,252 @@ } } + + group { name: "elm/genlist/item/default_style/default"; + alias: "elm/genlist/item_odd/default_style/default"; + alias: "elm/genlist/item_compress/default_style/default"; + alias: "elm/genlist/item_compress_odd/default_style/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "labels" "elm.text"; + data.item: "icons" "elm.swallow.icon elm.swallow.end"; + data.item: "treesize" "20"; + parts { + part { name: "bg_item"; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 200; + image { + normal: "images/win_background.png"; + } + fill { + smooth: 1; + } + } + } + part { name: "separator"; // separator group + mouse_events: 0; + description { state: "default" 0.0; + min: 2 2; + max: 99999 2; + fixed: 1 1; + rel1.relative: 0.0 1.0; + image { + normal: "images/separator_h.png"; + } + fill { + smooth: 0; + } + } + } + part { name: "mouse_over"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: -5 0; + } + rel2 { + relative: 1.0 1.0; + offset: 5 0; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 100; + } + } + part { name: "bg"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: -5 0; + } + rel2 { + relative: 1.0 1.0; + offset: 5 0; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.pad"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { + relative: 0.0 0.0; + offset: 4 4; + } + rel2 { + relative: 0.0 1.0; + offset: 4 -5; + } + } + } + part { name: "elm.swallow.icon"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { + to_x: "elm.swallow.pad"; + relative: 1.0 0.0; + offset: -1 4; + } + rel2 { + to_x: "elm.swallow.pad"; + relative: 1.0 1.0; + offset: -1 -5; + } + } + } + part { name: "elm.swallow.end"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + align: 1.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + relative: 1.0 0.0; + offset: -5 4; + } + rel2 { + relative: 1.0 1.0; + offset: -5 -5; + } + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + fixed: 0 1; + align: 0.0 0.5; + rel1 { + to_x: "elm.swallow.icon"; + relative: 1.0 0.5; + offset: 0 4; + } + rel2 { + to_x: "elm.swallow.end"; + relative: 0.0 0.5; + offset: -1 -5; + } + text { + style: "genlist_style"; + min: 0 1; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + text { + style: "genlist_selected_style"; + } + } + } + part { + name: "event"; + type: RECT; + repeat_events: 1; + description { + min: 0 40; + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "disclip"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + color: 255 255 255 64; + } + } + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg"; + target: "elm.text"; + transition: SINUSOIDAL 0.2; + } + program { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + target: "elm.text"; + transition: LINEAR 0.1; + transition: DECELERATE 0.6; + } + program { + name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { + name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "mouse_in"; + signal: "mouse,in"; + source: "event"; + action: STATE_SET "selected" 0.0; + target: "mouse_over"; + } + program { + name: "mouse_out"; + signal: "mouse,out"; + source: "event"; + action: STATE_SET "default" 0.0; + target: "mouse_over"; + } + } + } + + group { name: "elm/genlist/tree/default/default"; alias: "elm/genlist/tree_odd/default/default"; alias: "elm/genlist/tree_compress/default/default"; @@ -5402,11 +5670,11 @@ relative: 1.0 1.0; offset: -1 -5; } - image.normal: "images/arrow_down.png"; + image.normal: "images/arrow_right.png"; } description { state: "active" 0.0; inherit: "default" 0.0; - image.normal: "images/arrow_right.png"; + image.normal: "images/arrow_down.png"; } } part { name: "elm.swallow.icon"; @@ -5577,7 +5845,462 @@ } } + + + + //////////////////////////////////////////// + group { name: "elm/list/item/default"; + alias: "elm/list/item_odd/default"; + alias: "elm/list/item_compress/default"; + alias: "elm/list/item_compress_odd/default"; + data.item: "stacking" "above"; + parts { + part { name: "bg_item"; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 200; + image { + normal: "images/win_background.png"; + } + fill { + smooth: 1; + } + } + } + part { name: "separator"; // separator group + mouse_events: 0; + description { state: "default" 0.0; + min: 2 2; + max: 99999 2; + fixed: 1 1; + rel1.relative: 0.0 1.0; + image { + normal: "images/separator_h.png"; + } + fill { + smooth: 0; + } + } + } + part { name: "mouse_over"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: -5 0; + } + rel2 { + relative: 1.0 1.0; + offset: 5 0; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 100; + } + } + part { name: "bg"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: -5 0; + } + rel2 { + relative: 1.0 1.0; + offset: 5 0; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.icon"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { + relative: 0.0 0.0; + offset: 5 4; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -5; + } + } + } + part { name: "elm.swallow.end"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: -5 4; + } + rel2 { + relative: 1.0 1.0; + offset: -5 -5; + } + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXT; + effect: SOFT_SHADOW; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + fixed: 1 1; + rel1 { + to_x: "elm.swallow.icon"; + relative: 1.0 0.0; + offset: 0 4; + } + rel2 { + to_x: "elm.swallow.end"; + relative: 0.0 1.0; + offset: -1 -5; + } + color: 0 0 0 255; + color3: 0 0 0 0; + text { + font: "DejaVuSans"; + size: 10; + min: 1 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 224 224 224 255; + color: 255 255 255 255; + } + } + part { + name: "event"; + type: RECT; + repeat_events: 1; + description { + min: 0 40; + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "disclip"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + color: 255 255 255 64; + } + } + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg"; + target: "elm.text"; + transition: SINUSOIDAL 0.2; + } + program { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + target: "elm.text"; + transition: LINEAR 0.1; + transition: DECELERATE 0.6; + } + program { + name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { + name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "mouse_in"; + signal: "mouse,in"; + source: "event"; + action: STATE_SET "selected" 0.0; + target: "mouse_over"; + } + program { + name: "mouse_out"; + signal: "mouse,out"; + source: "event"; + action: STATE_SET "default" 0.0; + target: "mouse_over"; + } + } + } + //////////////////////////////////////////// + group { name: "elm/list/h_item/default"; + alias: "elm/list/h_item_odd/default"; + alias: "elm/list/h_item_compress/default"; + alias: "elm/list/h_item_compress_odd/default"; + data.item: "stacking" "above"; + parts { + part { name: "bg_item"; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 200; + image { + normal: "images/win_background.png"; + } + fill { + smooth: 1; + } + } + } + part { name: "separator"; // separator group + mouse_events: 0; + description { state: "default" 0.0; + min: 2 2; + max: 2 99999; + fixed: 1 1; + rel1.relative: 1.0 0.0; + image { + normal: "images/separator_v.png"; + } + fill { + smooth: 0; + } + } + } + part { name: "mouse_over"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: 0 -5; + } + rel2 { + relative: 1.0 1.0; + offset: 0 5; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 100; + } + } + part { name: "bg"; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: 0 -5; + } + rel2 { + relative: 1.0 1.0; + offset: 0 5; + } + image { + normal: "images/menu_im2.png"; + border: 5 5 5 5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.icon"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 0.0; + rel1 { + relative: 0.0 0.0; + offset: 4 5; + } + rel2 { + relative: 1.0 0.0; + offset: -5 -1; + } + } + } + part { name: "elm.swallow.end"; + clip_to: "disclip"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 1.0; + rel1 { + relative: 0.0 1.0; + offset: 4 -5; + } + rel2 { + relative: 1.0 1.0; + offset: -5 -5; + } + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXT; + effect: SOFT_SHADOW; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + fixed: 1 1; + rel1 { + to_x: "elm.swallow.icon"; + relative: 0.0 1.0; + offset: 4 0; + } + rel2 { + to_x: "elm.swallow.end"; + relative: 1.0 0.0; + offset: -5 -1; + } + color: 0 0 0 255; + color3: 0 0 0 0; + text { + font: "DejaVuSans"; + size: 10; + min: 1 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 224 224 224 255; + color: 255 255 255 255; + } + } + part { + name: "event"; + type: RECT; + repeat_events: 1; + description { + min: 40 0; + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "disclip"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + color: 255 255 255 64; + } + } + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg"; + target: "elm.text"; + transition: SINUSOIDAL 0.2; + } + program { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + target: "elm.text"; + transition: LINEAR 0.1; + transition: DECELERATE 0.6; + } + program { + name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { + name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "mouse_in"; + signal: "mouse,in"; + source: "event"; + action: STATE_SET "selected" 0.0; + target: "mouse_over"; + } + program { + name: "mouse_out"; + signal: "mouse,out"; + source: "event"; + action: STATE_SET "default" 0.0; + target: "mouse_over"; + } + } + } + + + + } |