summaryrefslogtreecommitdiff
path: root/viewer/theme/email-viewer-theme.edc
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/theme/email-viewer-theme.edc')
-rwxr-xr-xviewer/theme/email-viewer-theme.edc1760
1 files changed, 1760 insertions, 0 deletions
diff --git a/viewer/theme/email-viewer-theme.edc b/viewer/theme/email-viewer-theme.edc
new file mode 100755
index 0000000..a3e50e2
--- /dev/null
+++ b/viewer/theme/email-viewer-theme.edc
@@ -0,0 +1,1760 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "email-viewer-theme-macro.edc"
+
+collections {
+//#include "email-viewer-button.edc"
+
+ group {
+ name: "layout.email.web_view";
+
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ //color: 246 245 237 255;
+ color: 255 255 255 255;
+ }
+ }
+
+ part {
+ name: "web_body";
+ type: SWALLOW;
+ scale: 1;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.0;
+ fixed: 0 0;
+ aspect: 0.0 0.0;
+ aspect_preference: VERTICAL;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
+ }
+ }
+
+ group {
+ name: "layout.email.no_content";
+
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ color: 239 239 239 255;
+ }
+ }
+
+ part {
+ name: "btn";
+ type: SWALLOW;
+ scale: 1;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.0;
+ fixed: 0 0;
+ //rel1 { relative: 0.05 0.85; }
+ //rel2 { relative: 0.95 0.95; }
+ rel1 { relative: 0.05 0.05; }
+ rel2 { relative: 0.95 0.1; }
+ }
+ }
+/*
+ part {
+ name: "noc";
+ type: SWALLOW;
+ scale: 1;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.0;
+ fixed: 0 0;
+ //rel1 { relative: 0.0 0.0; }
+ //rel2 { relative: 1.0 0.8; }
+ rel1 { relative: 0.0 0.25; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ }
+*/
+ }
+ }
+
+ group { name: "layout.email.partial_download_btn";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SCALE(80.0);
+ color: 239 239 239 255;
+ }
+ }
+ part { name: "button";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 15/450 1/5;
+ rel2.relative: 435/450 4/5;
+ }
+ }
+ }
+ }
+
+ group
+ {
+ name: "layout.email.meeting_req_btn";
+
+ parts
+ {
+ part
+ {
+ name: "rect";
+ type: RECT;
+ mouse_events: 0;
+
+ description
+ {
+ min: 0 SCALE(60.0);
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+
+ part
+ {
+ name: "swl_accept_btn";
+ type: SWALLOW;
+ mouse_events: 1;
+
+ description
+ {
+ state: "default" 0.0;
+
+ rel1
+ {
+ to: "rect";
+ relative: 0.01 0.0;
+ }
+ rel2
+ {
+ to: "rect";
+ relative: 0.33 1.0;
+ }
+ }
+ }
+
+ part
+ {
+ name: "swl_tentative_btn";
+ type: SWALLOW;
+ mouse_events: 1;
+
+ description
+ {
+ state: "default" 0.0;
+
+ rel1
+ {
+ to: "rect";
+ relative: 0.33 0.0;
+ }
+ rel2
+ {
+ to: "rect";
+ relative: 0.66 1.0;
+ }
+ }
+ }
+
+ part
+ {
+ name: "swl_decline_btn";
+ type: SWALLOW;
+ mouse_events: 1;
+
+ description
+ {
+ state: "default" 0.0;
+
+ rel1
+ {
+ to: "rect";
+ relative: 0.66 0.0;
+ }
+ rel2
+ {
+ to: "rect";
+ relative: 0.99 1.0;
+ }
+ }
+ }
+ }
+ }
+
+ group {
+ name: "layout.email.detail_subject";
+
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ image: "M02_button_expand_closed.png" COMP;
+ image: "M02_button_expand_closed_press.png" COMP;
+ image: "M02_button_expand_opened.png" COMP;
+ image: "M02_button_expand_opened_press.png" COMP;
+ image: "M02_inbox_top_line.png" COMP;
+ image: "M02_button_expand.png" COMP;
+ image: "M02_button_expand_press.png" COMP;
+ }
+
+ parts
+ {
+ BEAT_GENLIST_PART_BASE( SCALE(160.0) )
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_TOP( SCALE(26.0) )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( SCALE(10.0) )
+ BEAT_GENLIST_PART_PADDING_LEFT( SCALE(16.0) )
+ BEAT_GENLIST_PART_PADDING_RIGHT( SCALE(16.0) )
+
+ part
+ {
+ name: "elm.topline";
+ clip_to: "disclip";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SCALE(10.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "elm.padding.top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ offset: 0 SCALE(10.0);
+ to: "elm.padding.top";
+ }
+ image.normal: "M02_inbox_top_line.png";
+ }
+ }
+
+ part
+ {
+ name: "elm.text";
+ clip_to: "disclip";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SCALE(40.0);
+ fixed: 0 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: -1*SCALE(80.0) 0;
+ to_x: "elm.padding.right";
+ to_y: "elm.padding.top";
+ }
+ color: 0 0 0 255;
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: 225 225 225 255;
+ }
+ }
+
+ part
+ {
+ name: "elm.subbox";
+ clip_to: "disclip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCALE(48.0);
+ fixed: 1 0;
+ visible: 0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.left";
+ to_y: "elm.text";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ to_y: "elm.padding.bottom";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.text.sub";
+ clip_to: "disclip";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+
+ rel1 {
+ relative: 0.0 0.0;
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1*SCALE(160.0) 0;
+ to: "elm.subbox";
+ }
+
+ color: 100 100 100 255;
+ text {
+ font: "SLP:style=Regular";
+ size: SCALE(36.0);
+ min: 0 1;
+ align: 0.0 0.5;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: 225 225 225 255;
+ }
+ }
+
+ part
+ {
+ name: "elm.icon.attach";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(32.0) SCALE(32.0);
+ max: SCALE(32.0) SCALE(32.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ visible: 1;
+
+ rel1 {
+ relative: 1.0 0.0;
+ offset: -1*SCALE(152.0) SCALE(8.0);
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1*SCALE(120.0) -1*SCALE(8.0);
+ to: "elm.subbox";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.icon.sign";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(32.0) SCALE(32.0);
+ max: SCALE(32.0) SCALE(32.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ visible: 1;
+
+ rel1 {
+ relative: 1.0 0.0;
+ offset: -1*SCALE(152.0) SCALE(8.0);
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1*SCALE(120.0) -1*SCALE(8.0);
+ to: "elm.subbox";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.icon.encrypt";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(32.0) SCALE(32.0);
+ max: SCALE(32.0) SCALE(32.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ visible: 1;
+
+ rel1 {
+ relative: 1.0 0.0;
+ offset: -1*SCALE(112.0) SCALE(8.0);
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1*SCALE(80.0) -1*SCALE(8.0);
+ to: "elm.subbox";
+ }
+ }
+ }
+
+ part
+ {
+ name: "touch_favorite";
+ type: RECT;
+ clip_to: "disclip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ visible: 1;
+
+ rel1 {
+ relative: 1.0 0.0;
+ offset: -1*SCALE(72.0) SCALE(8.0);
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 -1*SCALE(8.0);
+ to: "elm.subbox";
+ }
+ color: 0 0 0 0;
+ }
+ }
+
+ part
+ {
+ name: "elm.icon.favorite";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ visible: 1;
+
+ rel1 {
+ relative: 1.0 0.0;
+ offset: -1*SCALE(72.0) SCALE(8.0);
+ to: "elm.subbox";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 -1*SCALE(8.0);
+ to: "elm.subbox";
+ }
+ }
+ }
+
+ part
+ {
+ name: "touch_arrow";
+ type: RECT;
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SCALE(74.0) SCALE(74.0);
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to_x: "elm.text";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ to_y: "elm.text";
+ }
+ color: 0 0 0 0;
+ }
+ }
+
+ part
+ {
+ name: "arrow";
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 0.5 0.5;
+ aspect: 1.0 1.0;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "touch_arrow";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "touch_arrow";
+ }
+ image.normal: "M02_button_expand_opened.png";
+ }
+ description {
+ state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_opened_press.png";
+ }
+ description {
+ state: "active" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand.png";
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "active" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_press.png";
+ }
+ }
+
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ programs {
+ // signal: elm,state,%s,active
+ // a "check" item named %s went active
+ // signal: elm,state,%s,passive
+ // a "check" item named %s went passive
+ // default is passive
+ program {
+ name: "go_active";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "selected" 0.0;
+ target: "bg_image";
+ target: "elm.text";
+ }
+ program {
+ name: "go_passive";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg_image";
+ target: "elm.text";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "go_disabled";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "go_enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "toggle_favorite";
+ signal: "mouse,up,1";
+ source: "touch_favorite";
+ action: SIGNAL_EMIT "elm,action,toggle" "elm";
+ }
+ program {
+ name: "expand";
+ signal: "mouse,up,1";
+ source: "touch_arrow";
+ action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
+ }
+ program {
+ name: "arrow_down";
+ signal: "mouse,down,1";
+ source: "touch_arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl)
+ if (vl == 0.0)
+ set_state(PART:"arrow", st, 1.0);
+ else
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
+ program {
+ name: "go_expanded";
+ signal: "elm,state,expanded";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "arrow";
+ }
+ program {
+ name: "go_contracted";
+ signal: "elm,state,contracted";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "arrow";
+ }
+ program
+ {
+ name: "hide_arrow";
+ signal: "elm,state,arrow_hidden";
+ source: "elm";
+ action: STATE_SET "hide" 0.0;
+ target: "arrow";
+ }
+ }
+ }
+
+ group {
+ name: "layout.email.to_cc";
+
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ }
+ parts
+ {
+ BEAT_GENLIST_PART_BASE( 0 )
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_LEFT( 1 )
+ BEAT_GENLIST_PART_PADDING_RIGHT( 1 )
+ BEAT_GENLIST_PART_PADDING_TOP( 1 )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( 1 )
+
+ part {
+ name: "elm.icon";
+ clip_to: "disclip";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 1 1;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0 0;
+ to_x: "elm.padding.right";
+ to_y: "elm.padding.bottom";
+ }
+ }
+ }
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ programs {
+ program { name: "go_active";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "selected" 0.0;
+ target: "bg_image";
+ }
+ program { name: "go_passive";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg_image";
+ transition: LINEAR 0.1;
+ }
+ program { name: "go_disabled";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disclip";
+ }
+ program { name: "go_enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disclip";
+ }
+ }
+ }
+
+ group {
+ name: "layout.email.attachment_downloading";
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ }
+
+ parts {
+
+ BEAT_GENLIST_PART_BASE( SCALE(120.0) )
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_TOP( SCALE(5.0) )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( SCALE(5.0) )
+ BEAT_GENLIST_PART_PADDING_LEFT( SCALE(10.0) )
+ BEAT_GENLIST_PART_PADDING_RIGHT( SCALE(10.0) )
+
+ part {
+ name: "elm.icon.1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(160.0) SCALE(80.0);
+ max: SCALE(160.0) SCALE(80.0);
+ fixed: 1 1;
+ align: 1.0 0.5;
+ visible: 1;
+
+ rel1.to_x: "elm.padding.right";
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.padding.cancel.left";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(30.0) 0;
+ fixed: 1 1;
+ visible: 0;
+ rel1.to: "elm.icon.1";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "elm.icon.1";
+ }
+ }
+ }
+
+ part { name: "elm.text.1";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCALE(20.0);
+ fixed: 0 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.cancel.left";
+ to_y: "elm.padding.top";
+ }
+ color: GENLIST_PART_TEXT_COLOR_INC;
+ /*text {
+ font: "SLP:style=Regular";
+ size: 18;
+ min: 0 1;
+ align: 0.0 0.5;
+ }*/
+ }
+ }
+
+ part { name: "elm.icon.2";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCALE(30.0);
+ fixed: 0 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.text.1";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.cancel.left";
+ to_y: "elm.padding.top";
+ }
+ }
+ }
+
+ part { name: "elm.text.2";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(235.0) SCALE(20.0);
+ max: SCALE(235.0) SCALE(20.0);
+ fixed: 1 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.icon.2";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.cancel.left";
+ to_y: "elm.padding.bottom";
+ }
+ color: GENLIST_PART_TEXT_COLOR_INC;
+ /*text {
+ font: "SLP:style=Regular";
+ size: 18;
+ min: 0 1;
+ align: 0.0 0.5;
+ }*/
+ }
+ }
+
+ part { name: "elm.text.3";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(235.0) SCALE(20.0);
+ max: SCALE(235.0) SCALE(20.0);
+ fixed: 1 1;
+ align: 1 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.icon.2";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.cancel.left";
+ to_y: "elm.padding.bottom";
+ }
+ color: GENLIST_PART_TEXT_COLOR_INC;
+ /*text {
+ font: "SLP:style=Regular";
+ size: 18;
+ min: 0 1;
+ align: 1.0 0.5;
+ }*/
+ }
+ }
+
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ }
+
+ group
+ {
+ name: "layout.email.attachment_item";
+
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ image: "M02_button_download.png" COMP;
+ image: "M02_button_download_press.png" COMP;
+ }
+
+ parts
+ {
+ BEAT_GENLIST_PART_BASE( SCALE(120.0) )
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_TOP( SCALE(20.0) )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( SCALE(20.0) )
+ BEAT_GENLIST_PART_PADDING_LEFT( SCALE(20.0) )
+ BEAT_GENLIST_PART_PADDING_RIGHT( SCALE(20.0) )
+
+ part
+ {
+ name: "elm.icon";
+ clip_to: "disclip";
+ type: SWALLOW;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ color: 136 136 136 255;
+
+ rel1
+ {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.top";
+ }
+ rel2
+ {
+ relative: 1.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.bottom";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.padding.icon.right";
+ type: RECT;
+ scale: 1;
+
+ description
+ {
+ state: "default" 0.0;
+ min: SCALE(10.0) 0;
+ fixed: 1 0;
+ visible: 0;
+
+ rel1
+ {
+ relative: 1.0 0.0;
+ to_x: "elm.icon";
+ }
+ rel2.to_x: "elm.icon";
+ align: 0.0 0.0;
+ }
+ }
+
+ part
+ {
+ name: "elm.text.rect";
+ clip_to: "disclip";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+
+ description
+ {
+ state: "default" 0.0;
+ align: 0 0.5;
+ color: 0 0 0 0;
+
+ rel1
+ {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.icon.right";
+ to_y: "elm.padding.top";
+ }
+ rel2
+ {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.down.left";
+ to_y: "elm.padding.bottom";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.text";
+ clip_to: "disclip";
+ type: TEXT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+
+ description
+ {
+ state: "default" 0.0;
+ align: 0 0.5;
+ color: 0 0 0 255;
+
+ rel1
+ {
+ relative: 0.0 0.0;
+ to: "elm.text.rect";
+ }
+ rel2
+ {
+ relative: 1.0 1.0;
+ to: "elm.text.rect";
+ }
+ text
+ {
+ font: "SLP:style=Medium";
+ size: 35;
+ min: 0 0;
+ max: 1 0;
+ align: 0.0 0.5;
+ }
+ }
+
+ description
+ {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+
+ part
+ {
+ name: "elm.event.rect";
+ clip_to: "disclip";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+
+ description
+ {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+
+ rel1
+ {
+ relative: 0.0 0.0;
+ to: "base";
+ }
+ rel2
+ {
+ relative: 1.0 1.0;
+ to: "base";
+ }
+ visible: 1;
+ }
+ }
+
+ part
+ {
+ name: "down";
+ clip_to: "disclip";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ mouse_events: 1;
+ scale: 1;
+
+ description
+ {
+ state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 1.0 0.5;
+ aspect: 1.0 1.0; // needed?
+
+ rel1.to_x: "elm.padding.right";
+ rel2
+ {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ }
+ color: 0 0 0 0;
+ }
+ }
+
+ part
+ {
+ name: "elm.padding.down.left";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(10.0) 0;
+ fixed: 1 0;
+ visible: 0;
+ align: 1.0 0.5;
+ rel1.to: "down";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "down";
+ }
+ }
+ }
+
+ part {
+ name: "down_image";
+ type: IMAGE;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "down"; }
+ rel2 { relative: 1.0 1.0; to: "down"; }
+ image.normal: "M02_button_download.png";
+ }
+ description {
+ state: "default" 1.0;
+ rel1 { relative: 0.0 0.0; to: "down"; }
+ rel2 { relative: 1.0 1.0; to: "down"; }
+ image.normal: "M02_button_download_press.png";
+ }
+ }
+
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ programs {
+ program {
+ name: "download_btn_down";
+ signal: "mouse,down,1";
+ source: "down";
+ action: STATE_SET "default" 1.0;
+ target: "down_image";
+ }
+ program {
+ name: "download_btn_up";
+ signal: "mouse,up,1";
+ source: "down";
+ action: STATE_SET "default" 0.0;
+ target: "down_image";
+ }
+ program {
+ name: "download_btn_clicked";
+ signal: "mouse,clicked,1";
+ source: "down";
+ action: SIGNAL_EMIT "elm,action,download" "elm";
+ }
+ program {
+ name: "go_active";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "selected" 0.0;
+ target: "bg_image";
+ }
+ program {
+ name: "go_passive";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg_image";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "go_disabled";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "go_enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "elm.event.rect_clicked";
+ signal: "mouse,clicked,1";
+ source: "elm.event.rect";
+ action: SIGNAL_EMIT "clicked" "";
+ }
+ program {
+ name: "elm.event.rect_pressed";
+ signal: "pressed";
+ source: "elm.event.rect";
+ action: STATE_SET "pressed" 0.0;
+ target: "base";
+ target: "elm.text";
+ }
+
+ program {
+ name: "elm.event.rect_unpressed";
+ signal: "unpressed";
+ source: "elm.event.rect";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ target: "elm.text";
+ }
+ }
+ }
+
+ group {
+ name: "layout.email.attachment_head";
+
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ image: "M02_button_expand_closed.png" COMP;
+ image: "M02_button_expand_closed_press.png" COMP;
+ image: "M02_button_expand_opened.png" COMP;
+ image: "M02_button_expand_opened_press.png" COMP;
+ image: "M02_email_icon_attach.png" COMP;
+ image: "M02_button_expand.png" COMP;
+ image: "M02_button_expand_press.png" COMP;
+ }
+
+ parts
+ {
+ BEAT_GENLIST_PART_BASE( SCALE(120.0) )
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_TOP( SCALE(20.0) )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( SCALE(10.0) )
+ BEAT_GENLIST_PART_PADDING_LEFT( SCALE(20.0) )
+ BEAT_GENLIST_PART_PADDING_RIGHT( SCALE(20.0) )
+
+ part {
+ name: "elm.icon";
+ clip_to: "disclip";
+ type: IMAGE;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ min: SCALE(40.0) SCALE(40.0);
+ max: SCALE(40.0) SCALE(40.0);
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "elm.padding.left";
+ }
+ rel2 {
+ offset: 0 0;
+ to_x: "elm.padding.left";
+ }
+ image.normal: "M02_email_icon_attach.png";
+ }
+ }
+ part {
+ name: "elm.padding.icon.right";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(13.0) 0;
+ fixed: 1 0;
+ visible: 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "elm.icon";
+ }
+ rel2.to_x: "elm.icon";
+ align: 0.0 0.0;
+ }
+ }
+
+ part
+ {
+ name: "touch_arrow";
+ type: RECT;
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(74.0) SCALE(74.0);
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "arrow";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "arrow";
+ }
+ color: 0 0 0 0;
+ }
+ }
+ part
+ {
+ name: "arrow";
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(64.0) SCALE(64.0);
+ max: SCALE(64.0) SCALE(64.0);
+ fixed: 1 1;
+ align: 1.0 0.5;
+ aspect: 1.0 1.0; // needed?
+ rel1.to_x: "elm.padding.right";
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ }
+ image.normal: "M02_button_expand_opened.png";
+ }
+ description { state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_opened_press.png";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand.png";
+ }
+ description { state: "active" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_press.png";
+ }
+ }
+ part
+ {
+ name: "elm.padding.arrow.left";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCALE(5.0) 0;
+ fixed: 1 0;
+ visible: 0;
+ align: 1.0 0.5;
+ rel1.to: "arrow";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "arrow";
+ }
+ }
+ }
+
+ part
+ {
+ name: "elm.text";
+ clip_to: "disclip";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SCALE(30.0);
+ fixed: 0 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.icon.right";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.arrow.left";
+ to_y: "elm.padding.top";
+ }
+ color: 0 0 0 255;
+ /*text {
+ font: "SLP:style=Roman";
+ size: 26;
+ min: 0 1;
+ align: 0.0 0.5;
+ }*/
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: 225 225 225 255;
+ }
+ }
+
+ part
+ {
+ name: "elm.text.sub";
+ clip_to: "disclip";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.icon.right";
+ to_y: "elm.text";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.arrow.left";
+ to_y: "elm.padding.bottom";
+ }
+ color: 0 0 0 255;
+ text {
+ font: "SLP:style=Medium";
+ size: SCALE(32.0);
+ min: 0 1;
+ align: 0.0 0.5;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: 225 225 225 255;
+ }
+ }
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ programs {
+ // signal: elm,state,%s,active
+ // a "check" item named %s went active
+ // signal: elm,state,%s,passive
+ // a "check" item named %s went passive
+ // default is passive
+ program {
+ name: "go_active";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "selected" 0.0;
+ target: "bg_image";
+ target: "elm.text";
+ }
+ program {
+ name: "go_passive";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg_image";
+ target: "elm.text";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "go_disabled";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "go_enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "expand";
+ signal: "mouse,up,1";
+ source: "touch_arrow";
+ action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
+ }
+ program {
+ name: "arrow_down";
+ signal: "mouse,down,1";
+ source: "touch_arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl)
+ if (vl == 0.0)
+ set_state(PART:"arrow", st, 1.0);
+ else
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
+ program {
+ name: "go_expanded";
+ signal: "elm,state,expanded";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "arrow";
+ }
+ program {
+ name: "go_contracted";
+ signal: "elm,state,contracted";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "arrow";
+ }
+ program {
+ name: "save_all";
+ signal: "mouse,up,1";
+ source: "elm.icon";
+ action: SIGNAL_EMIT "att,icon,save,all" "";
+ }
+ }
+ }
+
+ /*group {
+ name: "layout.email.subject_nbeat";
+
+ images {
+ image: "00_list_bar_press_1x80.png" COMP;
+ image: "M02_button_expand_closed.png" COMP;
+ image: "M02_button_expand_closed_press.png" COMP;
+ image: "M02_button_expand_opened.png" COMP;
+ image: "M02_button_expand_opened_press.png" COMP;
+ }
+
+ styles {
+ style { name: "genlist_textblock_sub_style";
+ base: "font=SLP:style=Regular font_size=24 color=#6C6C6C wrap=char text_class=list_item";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ style { name: "genlist_textblock_sub_selected_style";
+ base: "font=SLP:style=Regular font_size=24 color=#FFFFFF wrap=char text_class=list_item";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 249 249 249 255;
+ }
+ }
+ BEAT_GENLIST_PART_BG_IMAGE
+ BEAT_GENLIST_PART_BOTTOM_LINE
+ BEAT_GENLIST_PART_PADDING_TOP( 10 )
+ BEAT_GENLIST_PART_PADDING_BOTTOM( 10 )
+ BEAT_GENLIST_PART_PADDING_LEFT( 20 )
+ BEAT_GENLIST_PART_PADDING_RIGHT( 10 )
+ BEAT_GENLIST_PART_DIALOGUE_ITEM
+
+ part
+ {
+ name: "touch_arrow";
+ type: RECT;
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 70 80;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "arrow";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "arrow";
+ }
+ color: 0 0 0 0;
+ }
+ }
+ part
+ {
+ name: "arrow";
+ clip_to: "disclip";
+ ignore_flags: ON_HOLD;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 40 40;
+ max: 40 40;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ aspect: 1.0 1.0; // needed?
+ rel1.to_x: "elm.padding.right";
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.right";
+ }
+ image.normal: "M02_button_expand_closed.png";
+ }
+ description { state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_closed_press.png";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_opened.png";
+ }
+ description { state: "active" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "M02_button_expand_opened_press.png";
+ }
+ }
+
+ part
+ {
+ name: "elm.padding.arrow.left";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 5 0;
+ fixed: 1 0;
+ visible: 0;
+ align: 1.0 0.5;
+ rel1.to: "arrow";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "arrow";
+ }
+ }
+ }
+
+ part { name: "elm.text.1";
+ clip_to: "disclip";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.padding.top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.padding.arrow.left";
+ to_y: "elm.padding.top";
+ }
+ text {
+ style: "genlist_textblock_sub_style";
+ min: 0 1;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ text.style: "genlist_textblock_sub_selected_style";
+ }
+ }
+
+ part { name: "elm.text.2";
+ clip_to: "disclip";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 38;
+ fixed: 0 1;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "elm.padding.left";
+ to_y: "elm.text.1";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to_x: "elm.padding.arrow.left";
+ to_y: "elm.padding.bottom";
+ }
+ color: GENLIST_PART_TEXT_COLOR_INC;
+ text {
+ font: "SLP:style=Regular";
+ size: 20;
+ min: 0 1;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
+ }
+ }
+
+ BEAT_GENLIST_PART_DISCLIP
+ }
+ programs {
+ // signal: elm,state,%s,active
+ // a "check" item named %s went active
+ // signal: elm,state,%s,passive
+ // a "check" item named %s went passive
+ // default is passive
+ program { name: "go_active";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "selected" 0.0;
+ target: "bg_image";
+ target: "elm.text.1";
+ target: "elm.text.2";
+ }
+ program { name: "go_passive";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg_image";
+ target: "elm.text.1";
+ target: "elm.text.2";
+ transition: LINEAR 0.1;
+ }
+ program { name: "go_disabled";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disclip";
+ }
+ program { name: "go_enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disclip";
+ }
+ program {
+ name: "expand";
+ signal: "mouse,up,1";
+ source: "touch_arrow";
+ action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
+ }
+ program {
+ name: "arrow_down";
+ signal: "mouse,down,1";
+ source: "touch_arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl)
+ if (vl == 0.0)
+ set_state(PART:"arrow", st, 1.0);
+ else
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
+ program {
+ name: "go_expanded";
+ signal: "elm,state,expanded";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "arrow";
+ }
+ program {
+ name: "go_contracted";
+ signal: "elm,state,contracted";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "arrow";
+ }
+ }
+ }*/
+
+}