rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=69572f31959d81baca3a26368d93dea3a5e7c602
commit 69572f31959d81baca3a26368d93dea3a5e7c602 Author: Andrii Kroitor <[email protected]> Date: Wed Jun 15 18:24:35 2016 +0300 genlist: add default/changed states to property item style --- data/themes/default/widgets/genlist_property.edc | 38 ++++++++++++++++++++++++ data/themes/tizen/widgets/genlist_property.edc | 38 ++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/data/themes/default/widgets/genlist_property.edc b/data/themes/default/widgets/genlist_property.edc index 58d480a..0cd3ef6 100644 --- a/data/themes/default/widgets/genlist_property.edc +++ b/data/themes/default/widgets/genlist_property.edc @@ -272,6 +272,7 @@ group { name: "elm/genlist/item/1swallow/property"; item: "contents" "swallow.icon swallow.action1"; item: "stacking" "above"; item: "selectraise" "on"; + item: "states" "default changed"; } parts { part { name: "elm.swallow.pad"; @@ -325,6 +326,10 @@ group { name: "elm/genlist/item/1swallow/property"; align: 0.0 0.0; } } + description { state: "changed" 0.0; + inherit: "default" 0.0; + text.font: FN_B; + } } part { name: "text.action1.name"; type: TEXT; @@ -365,6 +370,20 @@ group { name: "elm/genlist/item/1swallow/property"; } } } + programs { + program { name: "state,default"; + signal: "elm,state,default,active"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "text.item.name"; + } + program { name: "state,changed"; + signal: "elm,state,changed,active"; + source: "elm"; + action: STATE_SET "changed" 0.00; + target: "text.item.name"; + } + } } group { name: "elm/genlist/item/2swallow/property"; @@ -374,6 +393,7 @@ group { name: "elm/genlist/item/2swallow/property"; item: "contents" "swallow.icon swallow.action1 swallow.action2"; item: "stacking" "above"; item: "selectraise" "on"; + item: "states" "default changed"; } parts { part { name: "elm.swallow.pad"; @@ -427,6 +447,10 @@ group { name: "elm/genlist/item/2swallow/property"; align: 0.0 0.0; } } + description { state: "changed" 0.0; + inherit: "default" 0.0; + text.font: FN_B; + } } part { name: "text.action1.name"; type: TEXT; @@ -545,4 +569,18 @@ group { name: "elm/genlist/item/2swallow/property"; } } } + programs { + program { name: "state,default"; + signal: "elm,state,default,active"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "text.item.name"; + } + program { name: "state,changed"; + signal: "elm,state,changed,active"; + source: "elm"; + action: STATE_SET "changed" 0.00; + target: "text.item.name"; + } + } } diff --git a/data/themes/tizen/widgets/genlist_property.edc b/data/themes/tizen/widgets/genlist_property.edc index 559d665..8b4abfb 100644 --- a/data/themes/tizen/widgets/genlist_property.edc +++ b/data/themes/tizen/widgets/genlist_property.edc @@ -183,6 +183,7 @@ group { name: "elm/genlist/item/1swallow/property"; item: "contents" "swallow.icon swallow.action1"; item: "stacking" "above"; item: "selectraise" "on"; + item: "states" "default changed"; } parts { part { name: "elm.swallow.pad"; @@ -239,6 +240,10 @@ group { name: "elm/genlist/item/1swallow/property"; to_x: "text.action1.name"; } } + description { state: "changed" 0.0; + inherit: "default" 0.0; + text.font: FN_B; + } } part { name: "text.action1.name"; type: TEXT; @@ -280,6 +285,20 @@ group { name: "elm/genlist/item/1swallow/property"; } } } + programs { + program { name: "state,default"; + signal: "elm,state,default,active"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "text.item.name"; + } + program { name: "state,changed"; + signal: "elm,state,changed,active"; + source: "elm"; + action: STATE_SET "changed" 0.00; + target: "text.item.name"; + } + } } group { name: "elm/genlist/item/2swallow/property"; @@ -289,6 +308,7 @@ group { name: "elm/genlist/item/2swallow/property"; item: "contents" "swallow.icon swallow.action1 swallow.action2"; item: "stacking" "above"; item: "selectraise" "on"; + item: "states" "default changed"; } parts { part { name: "elm.swallow.pad"; @@ -342,6 +362,10 @@ group { name: "elm/genlist/item/2swallow/property"; to_x: "text.action1.name"; } } + description { state: "changed" 0.0; + inherit: "default" 0.0; + text.font: FN_B; + } } part { name: "text.action1.name"; type: TEXT; @@ -456,4 +480,18 @@ group { name: "elm/genlist/item/2swallow/property"; } } } + programs { + program { name: "state,default"; + signal: "elm,state,default,active"; + source: "elm"; + action: STATE_SET "default" 0.00; + target: "text.item.name"; + } + program { name: "state,changed"; + signal: "elm,state,changed,active"; + source: "elm"; + action: STATE_SET "changed" 0.00; + target: "text.item.name"; + } + } } --
