[check & Radio] Apply Dark theme UX 0.7
authorAmit Kamboj <amit.kamboj@samsung.com>
Tue, 25 Jun 2013 09:37:59 +0000 (15:07 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 27 Jun 2013 04:58:14 +0000 (13:58 +0900)
Change-Id: I5a639b295576684fbd3cdd18bfefd26ca1aa888d

themes/widgets/check.edc
themes/widgets/radio.edc

index bfb8c57..a5a4d2f 100644 (file)
@@ -68,7 +68,6 @@
             } \
             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; \
                inherit: "visible" 0.0; \
             } \
          } \
+         part { name: "pressed_effect"; \
+            mouse_events: 0; \
+            scale: 1; \
+            description { state: "default" 0.0; \
+               rel1.to: "bg"; \
+               rel2.to: "bg"; \
+               visible: 0; \
+               image.normal: "00_check_press_bg.png"; \
+            } \
+            description { state: "pressed" 0.0; \
+               inherit: "default" 0.0; \
+               visible: 1; \
+            } \
+         } \
          part { name: "sequence_clip"; \
             type: RECT; \
             mouse_events: 0; \
             action: STATE_SET "default" 0.0; \
             target: "bg"; \
             target: "check"; \
+            target: "pressed_effect"; \
          } \
          program { name: "pressed"; \
             signal: "mouse,down,1"; \
             action: STATE_SET "pressed" 0.0; \
             target: "bg"; \
             target: "check"; \
+            target: "pressed_effect"; \
          } \
          program { name: "mouse,out"; \
             signal: "mouse,out"; \
index f937e27..525c6f5 100644 (file)
@@ -73,7 +73,6 @@
             } \
             description { state: "pressed" 0.0; \
                inherit: "default" 0.0; \
-               image.normal: "00_button_radio_press_bg.png"; \
             } \
          } \
          part { name: "radio"; \
                color: 255 255 255 255; \
             } \
          } \
+         part { name: "pressed_bg"; \
+            mouse_events: 0; \
+            scale: 1; \
+            description { state: "default" 0.0; \
+               rel1.to: "bg"; \
+               rel2.to: "bg"; \
+               image.normal: "00_button_radio_press_bg.png"; \
+               visible: 0; \
+            } \
+            description { state: "pressed" 0.0; \
+               inherit: "default" 0.0; \
+               visible: 1; \
+            } \
+         } \
          part { name: "elm.swallow.content"; \
             type: SWALLOW; \
             clip_to: "disclip"; \
                   set_state(PART:"radio", "visible", 0.0); \
                else \
                   set_state(PART:"radio", "default", 0.0); \
-               set_state(PART:"bg", "default", 0.0); \
+               set_state(PART:"pressed_bg", "default", 0.0); \
             } \
          } \
          program { name: "pressed"; \
                   set_state(PART:"radio", "pressed", 0.0); \
                else \
                   set_state(PART:"radio", "default", 0.0); \
-               set_state(PART:"bg", "pressed", 0.0); \
+               set_state(PART:"pressed_bg", "pressed", 0.0); \
             } \
          } \
          program { name: "mouse,out"; \