From 3685d624a5bd626a0d3ef52ef02a9ba54908fd44 Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Fri, 17 May 2013 18:09:52 +0530 Subject: [PATCH] [Colorselector] Added sound of colorselector clicked. Change-Id: I6aefa9baceb6722ac10e308866de7fb75070e42b Conflicts: themes/widgets/colorselector.edc --- themes/widgets/colorselector.edc | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/themes/widgets/colorselector.edc b/themes/widgets/colorselector.edc index ec1bf24..0995a77 100644 --- a/themes/widgets/colorselector.edc +++ b/themes/widgets/colorselector.edc @@ -15,7 +15,12 @@ * limitations under the License. */ - + sounds { + sample { + name: "touch_sound" AS_IS; + source: "S_Touch_30ms.wav"; + } + } group { name: "elm/colorselector/palette/default"; @@ -667,6 +672,17 @@ group { visible: 1; } } + part { name: "over1"; + type: RECT; + scale: 1; + repeat_events: 1; + description { + state: "default" 0.0; + rel1.to: "color_bg"; + rel2.to: "color_bg"; + color: 0 0 0 0; + } + } } programs { program { name: "item_focus"; @@ -681,6 +697,11 @@ group { action: STATE_SET "default" 0.0; target: "focus_image"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "over1"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } -- 2.7.4