rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=c2561cb9744965a6bd6d9c098d1bd3dd312fa014
commit c2561cb9744965a6bd6d9c098d1bd3dd312fa014 Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Fri Feb 5 11:31:20 2016 +0200 theme: expand "elm/genlist/tree/item/default" style --- data/themes/default/widgets/genlist.edc | 344 ++++++++++++++++++++++++++++++-- 1 file changed, 329 insertions(+), 15 deletions(-) diff --git a/data/themes/default/widgets/genlist.edc b/data/themes/default/widgets/genlist.edc index 80ee07c..4a0f0dd 100644 --- a/data/themes/default/widgets/genlist.edc +++ b/data/themes/default/widgets/genlist.edc @@ -970,21 +970,140 @@ group { name: "elm/genlist/item/signal/default"; } group { name: "elm/genlist/tree/item/default"; - inherit: "elm/genlist/tree/part/default"; - - data.item: "texts" "elm.text elm.text.end"; + data { + item: "texts" "elm.text elm.text.end"; + item: "treesize" "20"; + item: "contents" "elm.swallow.icon elm.swallow.end elm.swallow.penult"; + item: "stacking" "above"; + item: "selectraise" "on"; + } parts { - part { name: "elm.text.end"; + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + rel2 { + offset: -1 -2; + } + } + description { state: "selected" 0.0; + color_class: "select_dark"; + rel2 { + offset: -1 -2; + } + } + description { state: "reorder" 0.0; + color_class: "select_dark"; + rel2 { + offset: -1 -2; + } + } + } + part { name: "separator"; + type: RECT; + description { state: "default" 0.0; + align: 0.5 1.0; + min: 0 1; + max: -1 1; + color: 68 68 68 255; + } + description { state: "hide" 0.0; + visible: 0; + align: 0.5 1.0; + min: 0 1; + max: -1 1; + color: 68 68 68 255; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + repeat_events: 1; + description { state: "default" 0.0; + align: 0.0 0.5; + min: 14 14; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + offset: 6 3; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -4; + } + } + description { state: "hide" 0.0; + visible: 0; + align: 0.0 0.5; + min: 14 14; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + offset: 6 3; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -4; + } + } + } + part { name: "elm.swallow.pad"; + type: SWALLOW; + description { state: "default" 0.0; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.swallow.icon"; + } + rel2 { + to_x: "elm.swallow.icon"; + } + } + description { state: "hide" 0.0; + visible: 0; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.swallow.icon"; + } + rel2 { + to_x: "elm.swallow.icon"; + } + } + } + part { name: "elm.text"; type: TEXT; repeat_events: 1; description { state: "default" 0.0; align: 0.0 0.5; min: 0 26; - color_class: "select"; + color_class: "main"; rel1 { relative: 1.0 0.0; offset: 6 0; - to_x: "elm.text"; + to_x: "arrow"; + } + rel2 { + relative: 0.0 1.0; + offset: -7 -1; + to_x: "elm.swallow.penult"; + } + text { + font: "PT"; + size: 12; + max: 1 0; + align: 0.0 0.5; + } + } + description { state: "hide" 0.0; + visible: 0; + min: 0 26; + color_class: "main"; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "arrow"; } rel2 { relative: 0.0 1.0; @@ -998,23 +1117,218 @@ group { name: "elm/genlist/tree/item/default"; } } } - part { name: "elm.text"; + part { name: "elm.swallow.penult"; + type: SWALLOW; description { state: "default" 0.0; - align: 0.0 0.5; - text.max: 1 0; + align: 1.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + offset: 0 3; + } + rel2 { + relative: 0.0 1.0; + offset: -7 -4; + to_x: "elm.swallow.end"; + } } } - } - parts { - part { name: "bg"; + part { name: "elm.swallow.end"; + type: SWALLOW; + description { state: "default" 0.0; + align: 1.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + relative: 1.0 0.0; + offset: 0 3; + } + rel2 { + offset: -7 -4; + } + } + description { state: "hide" 0.0; + visible: 0; + align: 1.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + rel1 { + relative: 1.0 0.0; + offset: 0 3; + } + rel2 { + offset: -7 -4; + } + } + } + part { name: "disclip"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "hide" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "arrow"; + type: IMAGE; + description { state: "default" 0.0; + align: 0.0 0.5; + max: 14 14; + color_class: "main"; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.swallow.pad"; + } + image { + normal: "icon_arrow_right.png"; + middle: DEFAULT; + } + } + description { state: "hide" 0.0; + visible: 0; + align: 0.0 0.5; + max: 14 14; + color_class: "main"; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.swallow.pad"; + } + image { + normal: "icon_arrow_right.png"; + middle: DEFAULT; + } + } description { state: "selected" 0.0; - color_class: "select_dark"; + align: 0.0 0.5; + max: 14 14; + color_class: "main"; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.swallow.pad"; + } + image { + normal: "icon_arrow_down.png"; + middle: DEFAULT; + } } - description { state: "reorder" 0.0; - color_class: "select_dark"; + } + part { name: "elm.text.end"; + type: TEXT; + repeat_events: 1; + description { state: "default" 0.0; + align: 0.0 0.5; + min: 0 26; + color_class: "select"; + rel1 { + relative: 1.0 0.0; + offset: 6 0; + to_x: "elm.text"; + } + rel2 { + relative: 0.0 1.0; + offset: -7 -1; + to_x: "elm.swallow.penult"; + } + text { + font: "PT"; + size: 12; + align: 0.0 0.5; + } } } } + programs { + program { name: "selected"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.00; + target: "bg"; + } + program { name: "unselected"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "bg"; + } + program { name: "item_hide"; + signal: "elm,state,contract_flip"; + source: "elm"; + action: STATE_SET "hide" 0.00; + target: "separator"; + target: "elm.swallow.icon"; + target: "elm.swallow.pad"; + target: "arrow"; + target: "elm.text"; + target: "elm.swallow.penult"; + target: "elm.swallow.end"; + target: "disclip"; + } + program { name: "unreorder"; + signal: "elm,state,reorder,disable"; + source: "elm"; + action: STATE_SET "selected" 0.00; + target: "bg"; + after: "selected"; + } + program { name: "reorder"; + signal: "elm,state,reorder,enabled"; + source: "elm"; + action: STATE_SET "reordered" 0.00; + target: "bg"; + } + program { name: "unreordered"; + signal: "elm,state,reorder,disabled"; + source: "elm"; + after: "go_active"; + } + program { name: "expanded_sig"; + signal: "mouse,up,1"; + source: "arrow"; + action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; + } + program { name: "arrow_expand"; + signal: "elm,state,expanded"; + source: "elm"; + action: STATE_SET "selected" 0.00; + target: "arrow"; + } + program { name: "arrow_conract"; + signal: "elm,state,contracted"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "arrow"; + } + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.00; + target: "bg"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "bg"; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.00; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "disclip"; + } + } } /* --