popup - added dim clicked effect to avoid A patent.
authorChunEon Park <chuneon.park@samsung.com>
Wed, 28 Dec 2011 11:20:56 +0000 (20:20 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Mon, 2 Jan 2012 06:02:25 +0000 (15:02 +0900)
Change-Id: I4c84326651cafd123d9dca45b71d9a375cb2d0aa

themes/inc/tizen-black-hd-inc.edc
themes/inc/tizen-black-inc.edc
themes/inc/tizen-hd-inc.edc
themes/inc/tizen-inc.edc
themes/widgets/popup.edc

index 5e9865b..abb9000 100644 (file)
 
 #define POPUP_DEFAULT_TITLE_TEXT_COLOR_INC 249 249 249 255
 #define POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC "#F9F9F9"
-#define POPUP_DIM_BG_COLOR 0 0 0 125
+#define POPUP_DIM_BG_COLOR_INC 0 0 0 125
+#define POPUP_DIM_BG_CLICKED_COLOR_INC 0 0 0 175
+#define POPUP_DIM_BG_TRANS_COLOR_INC 0 0 0 0
+#define POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC 0 0 0 50
 #define POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC 71 82 87 255
 #define POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC 249 249 249 255
 
index ab78187..838ba60 100644 (file)
 
 #define POPUP_DEFAULT_TITLE_TEXT_COLOR_INC 249 249 249 255
 #define POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC "#F9F9F9"
-#define POPUP_DIM_BG_COLOR 0 0 0 125
+#define POPUP_DIM_BG_COLOR_INC 0 0 0 125
+#define POPUP_DIM_BG_CLICKED_COLOR_INC 0 0 0 175
+#define POPUP_DIM_BG_TRANS_COLOR_INC 0 0 0 0
+#define POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC 0 0 0 50
 #define POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC 71 82 87 255
 #define POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC 249 249 249 255
 
index 9f58226..bce59f0 100644 (file)
 
 #define POPUP_DEFAULT_TITLE_TEXT_COLOR_INC 255 255 255 255
 #define POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC "#000000"
-#define POPUP_DIM_BG_COLOR 61 59 56 204
+#define POPUP_DIM_BG_COLOR_INC 61 59 56 204
+#define POPUP_DIM_BG_CLICKED_COLOR_INC 61 59 56 250
+#define POPUP_DIM_BG_TRANS_COLOR_INC 0 0 0 0
+#define POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC 0 0 0 50
 #define POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC 199 199 199 255
 #define POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC 0 0 0 255
 
index c57e31a..33e2f4c 100644 (file)
 
 #define POPUP_DEFAULT_TITLE_TEXT_COLOR_INC 255 255 255 255
 #define POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC "#000000"
-#define POPUP_DIM_BG_COLOR 61 59 56 204
+#define POPUP_DIM_BG_COLOR_INC 61 59 56 204
+#define POPUP_DIM_BG_CLICKED_COLOR_INC 61 59 56 250
+#define POPUP_DIM_BG_TRANS_COLOR_INC 0 0 0 0
+#define POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC 0 0 0 50
 #define POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC 199 199 199 255
 #define POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC 0 0 0 255
 
index 5e1b6b9..5575d58 100644 (file)
@@ -24,7 +24,10 @@ group { name: "elm/notify/block_events/popup";
          mouse_events:  1;
          repeat_events: 0;
          description { state: "default" 0.0;
-            color: POPUP_DIM_BG_COLOR;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            color: POPUP_DIM_BG_CLICKED_COLOR_INC;
          }
       }
    }
@@ -34,6 +37,22 @@ group { name: "elm/notify/block_events/popup";
          signal: "mouse,clicked,1";
          source: "block_events";
          action: SIGNAL_EMIT "elm,action,clicked" "elm";
+         after: "deeper_block_color";
+      }
+      program {
+         name: "deeper_block_color";
+         signal: "elm,state,block_events,clicked";
+         action: STATE_SET "clicked" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
+         after: "default_block_color";
+      }
+      program {
+         name: "default_block_color";
+         signal: "elm,state,block_events,default";
+         action: STATE_SET "default" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
       }
    }
 }
@@ -45,7 +64,10 @@ group { name: "elm/notify/block_events/transparent";
          mouse_events:  1;
          repeat_events: 0;
          description { state: "default" 0.0;
-            color: 0 0 0 0;
+            color: POPUP_DIM_BG_TRANS_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
          }
       }
    }
@@ -55,6 +77,22 @@ group { name: "elm/notify/block_events/transparent";
          signal: "mouse,clicked,1";
          source: "block_events";
          action: SIGNAL_EMIT "elm,action,clicked" "elm";
+         after: "deeper_block_color";
+      }
+      program {
+         name: "deeper_block_color";
+         signal: "elm,state,block_events,clicked";
+         action: STATE_SET "clicked" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
+         after: "default_block_color";
+      }
+      program {
+         name: "default_block_color";
+         signal: "elm,state,block_events,default";
+         action: STATE_SET "default" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
       }
    }
 }