[Check,Radio] Implementation of press bg.
authorAmit Kamboj <amit.kamboj@samsung.com>
Fri, 19 Apr 2013 13:22:19 +0000 (18:52 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 23 Apr 2013 08:44:48 +0000 (17:44 +0900)
Change-Id: I5b03618de4a92cbc821ec05e831f51cde87777ba

themes/images/tizen-hd/Controls/Check_box/00_check_press.png [new file with mode: 0644]
themes/images/tizen-hd/Controls/Radio_button/00_button_radio_press_bg.png [new file with mode: 0644]
themes/widgets/check.edc
themes/widgets/radio.edc

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 (file)
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 (file)
index 0000000..e0bae65
Binary files /dev/null and b/themes/images/tizen-hd/Controls/Radio_button/00_button_radio_press_bg.png differ
index 67f0110..1fb5aca 100644 (file)
@@ -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; \
             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"; \
                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; \
          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"; \
index 7fab1b5..d57153c 100644 (file)
@@ -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"; \
                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"; \