/* * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #define SOUND_PATH "../sounds/" #define IMAGE_RECT 629 #define IMAGE_FADE_DURATION 0.2 #if defined(_CONTACTS_LITE_ENABLE) #defined IMAGE_BUTTON_WIDTH_HEIGHT_INC 32 32 #defined IMAGE_LANDSCAPE_BUTTON_WIDTH_HEIGHT_INC 37 37 #else #defined IMAGE_BUTTON_WIDTH_HEIGHT_INC 64 64 #defined IMAGE_LANDSCAPE_BUTTON_WIDTH_HEIGHT_INC 74 74 #endif #define GENLIST_DESCRIPTION_FADE \ description { state: "fadeout" 0.0; \ inherit: "default" 0.0; \ color: 255 255 255 10; \ } \ description { state: "fadein" 0.0; \ inherit: "default" 0.0; \ } #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \ part { name: NAME; \ scale: 1; \ type: IMAGE; \ DESCRIPION \ GENLIST_DESCRIPTION_FADE \ } #define GENLIST_PART_FOCUS \ GENLIST_PART_IMAGE( "focus_part", \ mouse_events: 0; \ description { state: "default" 0.0; \ visible: 0; \ image { \ normal: IMAGE_PATH"00_focus_01.png"; \ border: 7 7 7 7; \ } \ } \ description { state: "focused" 0.0; \ inherit: "default" 0.0; \ visible: 1; \ } \ ) #define GENLIST_PROGRAM_FOCUS \ program { name: "focused"; \ signal: "elm,action,focus_highlight,show"; \ source: "elm"; \ action: STATE_SET "focused" 0.0; \ target: "focus_part"; \ } \ program { name: "unfocused"; \ signal: "elm,action,focus_highlight,hide"; \ source: "elm"; \ action: STATE_SET "default" 0.0; \ target: "focus_part"; \ } images { image: IMAGE_PATH"C02_edit_default_blue.png" COMP; image: IMAGE_PATH"C01-4_circle_add_button.png" COMP; image: IMAGE_PATH"C02_edit_default_blue_h.png" COMP; image: IMAGE_PATH"C02_circle_add_button_h.png" COMP; image: IMAGE_PATH"00_focus_01.png" COMP; } collections { base_scale: 2.6; sounds { sample { name: "touch_sound" AS_IS; source: SOUND_PATH"Tizen_Touch.wav"; } } group { name: "elm/genlist/item/image_layout/default"; alias: "dialogue/image_layout"; data.item: "selectraise" "on"; data.item: "stacking" "above"; data.item: "contents" "elm.icon"; parts { part { name: "base"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; min: 90 90; max: 90 90; color: 0 0 0 0; } } part { name: "elm.icon"; type: SWALLOW; mouse_events: 1; clip_to: "disclip"; scale: 1; description { state: "default" 0.0; align: 0 0; min: 90 90; max: 90 90; fixed: 1 1; rel1 { relative: 0.0 0.0; to: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } } } part { name: "disclip"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } visible: 1; } description { state: "remove,fade,out" 0.0; inherit: "default" 0.0; color: 255 255 255 100; rel1 { relative: 0.25 0.25; to: "base";} rel2 { relative: 0.75 0.75; to: "base";} visible: 0; } } part { name: "press.bg"; type: RECT; repeat_events: 1; scale: 1; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; to: "base";} rel2 { relative: 1.0 1.0; to: "base";} } description { state: "press" 0.0; inherit: "default" 0.0; visible: 1; color: 255 255 255 127; } } } programs{ program { name: "set,image"; signal: "set,image"; source: "elm.icon"; action: STATE_SET "default" 0.0; target: "elm.icon"; target: "disclip"; transition: ACCELERATE 0.7; } program { name: "remove,fade,out"; signal: "remove,fade,out"; source: "elm.icon"; action: STATE_SET "remove,fade,out" 0.0; target: "elm.icon"; target: "disclip"; transition: ACCELERATE IMAGE_FADE_DURATION; } program { name: "play_sound"; signal: "play_sound"; source: "elm.icon4"; action: PLAY_SAMPLE "touch_sound" 1.0; } program { name: "press"; signal: "press,bg"; source: "press,bg"; action: STATE_SET "press" 0.0; target: "press.bg"; } program { name: "unpress"; signal: "unpress,bg"; source: "press,bg"; action: STATE_SET "default" 0.0; target: "press.bg"; } } } }