[Notify] Added default style implementation for notify widget. This fixes JIRA issues...
authorRajeev Ranjan <rajeev.r@samsung.com>
Tue, 22 May 2012 14:34:10 +0000 (20:04 +0530)
committerRajeev Ranjan <rajeev.r@samsung.com>
Tue, 22 May 2012 14:34:10 +0000 (20:04 +0530)
Change-Id: Iedc7fbc27abc6609c2ef4a32492c29f80883b3a0

themes/tizen.edc
themes/widgets/notify.edc [new file with mode: 0644]

index 6432de7..f16c73b 100644 (file)
@@ -73,6 +73,7 @@ collections {
 #include "widgets/multibuttonentry.edc"
 //#include "widgets/multisense_ui.edc"
 #include "widgets/naviframe.edc"
+#include "widgets/notify.edc"
 #include "widgets/panes.edc"
 #include "widgets/photocam.edc"
 #include "widgets/popup.edc"
diff --git a/themes/widgets/notify.edc b/themes/widgets/notify.edc
new file mode 100644 (file)
index 0000000..0db54b0
--- /dev/null
@@ -0,0 +1,458 @@
+group { name: "elm/notify/block_events/default";
+   parts {
+      part { name: "block_events";
+         type: RECT;
+         description { state: "default" 0.0;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            color: POPUP_DIM_BG_CLICKED_COLOR_INC;
+         }
+      }
+   }
+   programs {
+      program { name: "block_clicked";
+         signal: "mouse,clicked,1";
+         source: "block_events";
+         action: SIGNAL_EMIT "elm,action,click" "elm";
+         after: "deeper_block_color";
+      }
+      program {
+         name: "deeper_block_color";
+         action: STATE_SET "clicked" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
+         after: "default_block_color";
+      }
+      program {
+         name: "default_block_color";
+         action: STATE_SET "default" 0.0;
+         target: "block_events";
+         transition: LINEAR 0.2;
+      }
+   }
+}
+
+group { name: "elm/notify/top/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 -1.0;
+            rel2.relative: 1.0 0.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/center/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+}
+
+group { name: "elm/notify/bottom/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 1.0;
+            rel2.relative: 1.0 2.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/left/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: -1.0 0.0;
+            rel2.relative: 0.0 1.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/right/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 1.0 0.0;
+            rel2.relative: 2.0 1.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/top_left/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 -1.0;
+            rel2.relative: 1.0 0.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/top_right/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 -1.0;
+            rel2.relative: 1.0 0.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/bottom_left/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 1.0;
+            rel2.relative: 1.0 2.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+group { name: "elm/notify/bottom_right/default";
+   //this group is a design similar to the inwin group
+   parts {
+      part { name: "base";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel1.relative: 0.0 1.0;
+            rel2.relative: 1.0 2.0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 64;
+            rel1.relative: 0.0 0.0;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part { name: "pop";
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.swallow.content";
+            rel2.to: "elm.swallow.content";
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+      }
+   }
+   programs {
+      program { name: "show_3";
+         signal: "show";
+         action: STATE_SET "visible" 0.0;
+         target: "base";
+         transition: LINEAR 0.5;
+      }
+      program { name: "hide";
+         signal: "hide";
+         action: STATE_SET "default" 0.0;
+         target: "base";
+      }
+   }
+}
+
+///////////////////////////////////////////////////////////////////////////////