summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangHyeon Lee <sh10233.lee@samsung.com>2017-03-29 08:26:07 (GMT)
committerSangHyeon Lee <sh10233.lee@samsung.com>2017-04-03 05:24:16 (GMT)
commit856c5b7ca3c11a81df87d267cd289c130a39d5f3 (patch)
treeaab0eaebfe22b61bcc6d68db24b813e708fcdfa4
parent7d8516e83f610d4426e36a167271253f7a2d3f79 (diff)
downloadefl-theme-tizen-mobile-856c5b7ca3c11a81df87d267cd289c130a39d5f3.zip
efl-theme-tizen-mobile-856c5b7ca3c11a81df87d267cd289c130a39d5f3.tar.gz
efl-theme-tizen-mobile-856c5b7ca3c11a81df87d267cd289c130a39d5f3.tar.bz2
genlist: add bg states and sound play program when enabled in full stylerefs/changes/68/121868/2
Change-Id: I0706529c3acbca0bc637fb9ff09bc535dcde8dce Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
-rw-r--r--mobile/color_classes.edc2
-rw-r--r--mobile/widgets/genlist.edc34
2 files changed, 33 insertions, 3 deletions
diff --git a/mobile/color_classes.edc b/mobile/color_classes.edc
index f2394a7..1d7b120 100644
--- a/mobile/color_classes.edc
+++ b/mobile/color_classes.edc
@@ -1122,7 +1122,7 @@ color_classes {
color: 0 0 0 0;
}
color_class { "genlist_item/full/bg_pressed";
- color: 0 0 0 10;
+ color: 0 0 0 0;
}
color_class { "genlist_item/full/bg_disabled";
color: 0 0 0 0;
diff --git a/mobile/widgets/genlist.edc b/mobile/widgets/genlist.edc
index 791f596..aa28705 100644
--- a/mobile/widgets/genlist.edc
+++ b/mobile/widgets/genlist.edc
@@ -1580,6 +1580,10 @@ group { "elm/genlist/item/full/default";
data.item: "banded_bg_area" "elm.swallow.bg";
data.item: "contents" "elm.swallow.content";
+ script {
+ public sound_play = 0;
+ }
+
parts {
spacer { "base"; scale;
desc { "default";
@@ -1597,10 +1601,10 @@ group { "elm/genlist/item/full/default";
color_class: "genlist_item/full/bg";
}
desc { "pressed"; inherit: "default";
- color_class: "genlist_item/full/bg";
+ color_class: "genlist_item/full/bg_pressed";
}
desc { "disabled"; inherit: "default";
- color_class: "genlist_item/full/bg";
+ color_class: "genlist_item/full/bg_disabled";
}
}
swallow { "elm.swallow.content"; scale;
@@ -1636,6 +1640,32 @@ group { "elm/genlist/item/full/default";
}
}
programs {
+ program { "enable_sound";
+ signal: "elm,state,sound,enabled";
+ source: "elm";
+ script {
+ set_int(sound_play, 1);
+ }
+ }
+ program { "disable_sound";
+ signal: "elm,state,sound,disabled";
+ source: "elm";
+ script {
+ set_int(sound_play, 0);
+ }
+ }
+ // play sound problem by click event
+ program { "play_sound";
+ signal: "elm,state,clicked";
+ source: "elm";
+ script {
+ if (get_int(sound_play) == 1)
+ run_program(PROGRAM:"touch_sound");
+ }
+ }
+ program { "touch_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
program {
signal: "elm,state,elm.swallow.bg,visible";
source: "elm";