From: Amit Kamboj Date: Fri, 19 Apr 2013 13:22:19 +0000 (+0530) Subject: [Check,Radio] Implementation of press bg. X-Git-Tag: 2.1b_release~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4215c7aa6671eb4b8067634ccb593c0cc68e0964;p=platform%2Fcore%2Fuifw%2Fefl-theme-tizen.git [Check,Radio] Implementation of press bg. Change-Id: I5b03618de4a92cbc821ec05e831f51cde87777ba --- diff --git a/themes/images/tizen-hd/Controls/Check_box/00_check_press.png b/themes/images/tizen-hd/Controls/Check_box/00_check_press.png new file mode 100644 index 0000000..9065f67 Binary files /dev/null and b/themes/images/tizen-hd/Controls/Check_box/00_check_press.png differ diff --git a/themes/images/tizen-hd/Controls/Radio_button/00_button_radio_press_bg.png b/themes/images/tizen-hd/Controls/Radio_button/00_button_radio_press_bg.png new file mode 100644 index 0000000..e0bae65 Binary files /dev/null and b/themes/images/tizen-hd/Controls/Radio_button/00_button_radio_press_bg.png differ diff --git a/themes/widgets/check.edc b/themes/widgets/check.edc index 67f0110..1fb5aca 100644 --- a/themes/widgets/check.edc +++ b/themes/widgets/check.edc @@ -32,6 +32,8 @@ image: "00_check_dim_bg.png" COMP; \ image: "00_check_dim.png" COMP; \ image: "00_check_Activated.png" COMP; \ + image: "00_check_press_bg.png" COMP; \ + image: "00_check_press.png" COMP; \ } \ script { \ public check_state = CHECK_STATE_DEFAULT; \ @@ -64,6 +66,10 @@ description { state: "visible" 0.0; \ inherit: "default" 0.0; \ } \ + description { state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + image.normal: "00_check_press_bg.png"; \ + } \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ image.normal: "00_check_dim_bg.png"; \ @@ -91,6 +97,12 @@ image.normal: "00_check_dim.png"; \ color: 255 255 255 255; \ } \ + description { state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + image.normal: "00_check_press.png"; \ + color: 255 255 255 255; \ + } \ } \ part { name: "sequence_clip"; \ type: RECT; \ @@ -237,6 +249,20 @@ program { name: "touch_sound"; \ action: PLAY_SAMPLE "touch_sound" 1.0; \ } \ + program { name: "bg_normal"; \ + signal: "mouse,up,1"; \ + source: "events2"; \ + action: STATE_SET "default" 0.0; \ + target: "bg"; \ + target: "check"; \ + } \ + program { name: "pressed"; \ + signal: "mouse,down,1"; \ + source: "events2"; \ + action: STATE_SET "pressed" 0.0; \ + target: "bg"; \ + target: "check"; \ + } \ program { name: "mouse,out"; \ signal: "mouse,out"; \ source: "events2"; \ diff --git a/themes/widgets/radio.edc b/themes/widgets/radio.edc index 7fab1b5..d57153c 100644 --- a/themes/widgets/radio.edc +++ b/themes/widgets/radio.edc @@ -42,6 +42,7 @@ image: "00_button_radio_Activated.png" COMP; \ image: "00_button_radio_bg.png" COMP; \ image: "00_button_radio_dim_bg.png" COMP; \ + image: "00_button_radio_press_bg.png" COMP; \ } \ parts { \ part { name: "back_bg"; \ @@ -70,6 +71,10 @@ inherit: "default" 0.0; \ image.normal: "00_button_radio_dim_bg.png"; \ } \ + description { state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + image.normal: "00_button_radio_press_bg.png"; \ + } \ } \ part { name: "radio"; \ clip_to: "opacity_clip"; \