From b899ee891bdc2a0d459bb71c001909347f4efec9 Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Tue, 22 May 2012 20:04:10 +0530 Subject: [PATCH] [Notify] Added default style implementation for notify widget. This fixes JIRA issues: S1-3230 and S1-3277 Change-Id: Iedc7fbc27abc6609c2ef4a32492c29f80883b3a0 --- themes/tizen.edc | 1 + themes/widgets/notify.edc | 458 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 459 insertions(+) create mode 100644 themes/widgets/notify.edc diff --git a/themes/tizen.edc b/themes/tizen.edc index 6432de7..f16c73b 100644 --- a/themes/tizen.edc +++ b/themes/tizen.edc @@ -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 index 0000000..0db54b0 --- /dev/null +++ b/themes/widgets/notify.edc @@ -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"; + } + } +} + +/////////////////////////////////////////////////////////////////////////////// -- 2.7.4