[Searchbar] Added sound playing support when clicked.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / layout.edc
index e6f06df..84d901f 100644 (file)
@@ -1096,6 +1096,13 @@ group { name: "elm/layout/editfield/title";
    }
 }
 
+sounds {
+   sample {
+      name: "touch_sound" AS_IS;
+      source: "S_Touch_30ms.wav";
+   }
+}
+
 group { name: "elm/layout/searchbar/default";
    images {
       image: "00_edit_field_clear.png" COMP;
@@ -1619,6 +1626,11 @@ group { name: "elm/layout/searchbar/default";
          signal: "mouse,clicked,1";
          source: "eraser";
          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
+         after: "eraser_sound";
+      }
+      program {
+         name: "eraser_sound";
+         action: PLAY_SAMPLE "touch_sound" 1.0;
       }
      program {
          name: "bg_clicked";
@@ -1626,6 +1638,12 @@ group { name: "elm/layout/searchbar/default";
          source: "search_textfield";
          action: SIGNAL_EMIT "elm,bg,clicked" "elm";
       }
+      program {
+         name: "sound_play";
+         signal: "mouse,clicked,1";
+         source: "elm.text";
+         action: PLAY_SAMPLE "touch_sound" 1.0;
+      }
      program { name: "mouse_click";
          signal: "mouse,clicked,1";
          source: "search_icon";
@@ -2270,6 +2288,17 @@ group { name: "elm/layout/searchbar/cancel_button";
          signal: "mouse,clicked,1";
          source: "eraser";
          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
+         after: "eraser_sound";
+      }
+      program {
+         name: "eraser_sound";
+         action: PLAY_SAMPLE "touch_sound" 1.0;
+      }
+      program {
+         name: "sound_play";
+         signal: "mouse,clicked,1";
+         source: "elm.text";
+         action: PLAY_SAMPLE "touch_sound" 1.0;
       }
      program {
          name: "bg_clicked";