Apply latest codes migration
[apps/core/preloaded/message-app.git] / viewer / theme / msg_viewer.edc
index 9de78ad..b71e4d6 100755 (executable)
@@ -1,65 +1,4 @@
-#define MAIN_W 720
-#define BODY_PADDING_MIN_H 34
-#define BODY_PADDING_MID_MIN_H 16
-#define SUBJECT_MIN_H 50
-#define SUBJECT_BG_H 12
-#define AUDIO_PANEL_H 80
-#define PAGE_INDEX_MIN_W 96
-#define DETAIL_PADDING_V_MIN 20
-#define DETAIL_PADDING_H_MIN 20
-
-//colors
-#define COLOR_SUBJECT_BG 216 226 232 255
-#define COLOR_SUBJECT_INDEX 128 128 128 255 //winset guide font 'index list'
-#define COLOR_DETAIL_INFO_TEXT 108 168 199 255
-#define COLOR_PROGRESS_START_TEXT 255 255 255 255
-#define COLOR_PROGRESS_END_TEXT 142 142 142 255
-
-//play controllbar attributes
-#define PLAY_CTRBAR_MIN_H 218
-#define PLAY_CTRBAR_TOP_PADDING_MIN_H 50
-#define PLAY_CTRBAR_PROGRESSBAR_PADDING_MIN_H 30
-#define PLAY_CTRBAR_MIDDLE_PADDING_MIN_H 41
-#define PLAY_CTRBAR_BOTTOM_PADDING_MIN_H 17
-
-#define PLAY_CTRBAR_PROGRESS_BAR_W 486
-#define PLAY_CTRBAR_PROGRESS_PADDING_W 20
-
-#define PLAY_CTRBAR_VOL_BUTTON_W 104
-#define PLAY_CTRBAR_VOL_BUTTON_PADDING_W 30
-
-#define PLAY_CTRBAR_NAVI_BUTTON_W 122
-#define PLAY_CTRBAR_NAVI_BUTTON_PADDING_W 22
-
-#define PLAY_CTRBAR_BUTTON_VOLUME_START_X 20
-#define PLAY_CTRBAR_BUTTON_PREV_START_X (PLAY_CTRBAR_BUTTON_VOLUME_START_X+PLAY_CTRBAR_VOL_BUTTON_W+PLAY_CTRBAR_VOL_BUTTON_PADDING_W)
-#define PLAY_CTRBAR_BUTTON_PLAY_START_X (PLAY_CTRBAR_BUTTON_PREV_START_X+PLAY_CTRBAR_NAVI_BUTTON_W+PLAY_CTRBAR_NAVI_BUTTON_PADDING_W)
-#define PLAY_CTRBAR_BUTTON_NEXT_START_X (PLAY_CTRBAR_BUTTON_PLAY_START_X+PLAY_CTRBAR_NAVI_BUTTON_W+PLAY_CTRBAR_NAVI_BUTTON_PADDING_W)
-
-#define PLAY_VOLUMEBAR_H       112
-
-//edc images
-#define PLAYER_BG "M01_player_bg.png"
-#define VOL_BTN "M01_controller_icon_volume.png"
-#define VOL_BTN_PRESS "M01_controller_icon_volume_press.png"
-#define PREV_BTN "M01_play_btn_previous.png"
-#define PREV_BTN_PRESS "M01_play_btn_previous_press.png"
-#define PREV_BTN_DIM "M01_Play_btn_previous_dim.png"
-#define PLAY_BTN "M01_Play_btn__play.png"
-#define PLAY_BTN_PRESS "M01_Play_btn__play_press.png"
-#define PAUSE_BTN "M01_play_btn_pause.png"
-#define PAUSE_BTN_PRESS "M01_play_btn_pause_press.png"
-#define NEXT_BTN "M01_play_btn_next.png"
-#define NEXT_BTN_PRESS "M01_play_btn_next_press.png"
-#define NEXT_BTN_DIM "M01_Play_btn_next_dim.png"
-#define PROGRESS_BAR "M01_player_progress_bar.png"
-#define PROGRESS_BG "M01_player_progress_bg.png"
-
-#define LOCK_ICON "M01_icon_locked.png"
-#define SUBJECT_INDEX_BG "M01_subject_bg.png"
-
-#define TITLE_LIST_BG "M01_popup_bubble_bg.png"
-#define AUDIO_ICON "myfile_icon_music.png"
+#include "msg_viewer_defines.edc"
 
 collections {
        group {
@@ -817,7 +756,6 @@ collections {
                name: "subject/pageindex";
                images {
                        image: LOCK_ICON COMP;
-                       image: SUBJECT_INDEX_BG COMP;
                }
                parts {
                        part {
@@ -826,7 +764,7 @@ collections {
                                scale: 1;
                                description {
                                        state: "default" 0.0;
-                                       min: 0 SUBJECT_MIN_H+SUBJECT_BG_H;
+                                       min: 0 SUBJECT_MIN_H;
                                }
                        }
                        part {
@@ -841,22 +779,6 @@ collections {
                                }
                        }
                        part {
-                               name: "rect/bg/image";
-                               type: IMAGE;
-                               scale: 1;
-                               description {
-                                       state: "default" 0.0;
-                                       visible: 1;
-                                       min: 0 SUBJECT_BG_H;
-                                       align: 0.5 1.0;
-                                       rel1{to:"rect"; relative:0.0 1.0;}
-                                       rel2{to:"rect"; relative:1.0 1.0;}
-                                       image {
-                                               normal: SUBJECT_INDEX_BG;
-                                       }
-                               }
-                       }
-                       part {
                                name: "subject/text";
                                type: TEXT;
                                scale: 1;
@@ -868,8 +790,8 @@ collections {
                                        align: 0.0 0.5;
                                        color: COLOR_SUBJECT_INDEX;
                                        text {
-                                               font: "SLP:style=Bold";
-                                               text_class: "slp_medium";
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
                                                size: 32;
                                                align: 0.0 0.5;
                                        }
@@ -888,9 +810,10 @@ collections {
                                        rel2{to:"rect"; relative:1.0 1.0;}
                                        color: COLOR_SUBJECT_INDEX;
                                        text {
-                                               font: "SLP:style=Bold";
-                                               text_class: "slp_medium";
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
                                                size: 32;
+                                               align: 0.5 0.5;
                                        }
                                }
                        }
@@ -963,8 +886,8 @@ collections {
                                        align: 0.0 0.5;
                                        color: COLOR_SUBJECT_INDEX;
                                        text {
-                                               font: "SLP:style=Bold";
-                                               text_class: "slp_medium";
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
                                                size: 36;
                                                align: 0.0 0.5;
                                        }
@@ -1314,17 +1237,6 @@ collections {
                                }
                        }
                        part {
-                               name: "msg/detail/bg";
-                               type: SWALLOW;
-                               scale: 1;
-                               description {
-                                       state: "default" 0.0;
-                                       color: 0 0 0 0;
-                                       rel1{to: "rect"; relative: 0.0 0.0;}
-                                       rel2{to: "rect"; relative: 1.0 1.0;}
-                               }
-                       }
-                       part {
                                name: "rect/padding/top";
                                type: RECT;
                                scale: 1;
@@ -1498,4 +1410,173 @@ collections {
                        }
                }
        }
+
+       group {
+               name: "help_page_save_all";
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               scale: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       min: 0 100;
+                                       color: 235 233 225 255;
+                               }
+                       }
+
+                       PART_PADDING_LEFT("pad.left", 26, "bg");
+                       PART_PADDING_RIGHT("pad.right", 26, "bg");
+
+                       part {
+                               name: "item.filename.rect";
+                               type: RECT;
+                               mouse_events: 0;
+                               scale: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       align: 0.0 0.5;
+                                       rel1 { relative: 1.0 0.0; to_x: "pad.left"; to_y: "bg"; }
+                                       rel2 { relative: 0.0 1.0; to_x: "pad.filename.right"; to_y: "bg"; }
+                                       color: 0 0 0 0;
+                               }
+                       }
+                       PART_TEXT("item.filename.text", "item.filename.rect", "", "Tizen:style=Regular", "tizen", 34, 0.0, 0.5, 0, 0, 0, 255)
+                       PART_H_PIXEL_RECT("pad.filename.right", 12, 1.0, 0.0, "item.save.rect")
+
+                       part {
+                               name: "item.save.rect";
+                               type: RECT;
+                               scale: 1;
+                               mouse_events: 0;
+                               description {
+                                       state: "default" 0.0;
+                                       visible: 1;
+                                       fixed: 1 1;
+                                       min: 72 72;
+                                       rel1 { relative: 0.0 0.0; to_x: "pad.right"; to_y: "bg"; }
+                                       rel2 { relative: 0.0 1.0; to_x: "pad.right"; to_y: "bg"; }
+                                       align: 1.0 0.5;
+                                       color: 0 0 0 0;
+                               }
+                       }
+                       PART_SWALLOW("item.save.icon", "item.save.rect")
+
+                       PART_RECT("over", 0.0, 0.0, "bg", "bg", 0.0, 1.0, "item.save.rect", "item.save.rect")
+                       PART_EVENT_RECT("over_event", "over")
+
+                       PART_BOTTOM_LINE_DOUBLE("line.bottom", "bg")
+               }
+       }
+
+       group {
+               name: "help_page_item";
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               scale: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       min: 0 100;
+                                       color: 235 233 225 255;
+                               }
+                       }
+
+                       PART_PADDING_LEFT("pad.left", 26, "bg");
+                       PART_PADDING_RIGHT("pad.right", 26, "bg");
+
+                       part {
+                               name: "item.thumbnail.rect";
+                               type: RECT;
+                               scale: 1;
+                               mouse_events: 0;
+                               description {
+                                       state: "default" 0.0;
+                                       visible: 1;
+                                       fixed: 1 1;
+                                       min: 74 74;
+                                       max: 74 74;
+                                       rel1 { relative: 1.0 0.0; to_x: "pad.left"; to_y: "bg"; }
+                                       rel2 { relative: 1.0 1.0; to_x: "pad.left"; to_y: "bg"; }
+                                       align: 0.0 0.5;
+                                       color: 0 0 0 0;
+                               }
+                       }
+
+                       PART_PADDING_TOP("thumbnail.icon.line.top", 1, "item.thumbnail.rect")
+                       PART_PADDING_LEFT("thumbnail.icon.line.left", 1, "item.thumbnail.rect")
+                       PART_PADDING_RIGHT("thumbnail.icon.line.right", 1, "item.thumbnail.rect")
+                       PART_PADDING_BOTTOM("thumbnail.icon.line.bottom", 1, "item.thumbnail.rect")
+
+                       PART_SWALLOW("item.thumbnail.icon", "item.thumbnail.rect")
+                       PART_H_PIXEL_RECT("pad.thumbnail.icon.right", 16, 0.0, 1.0, "item.thumbnail.icon")
+
+                       part {
+                               name: "item.filename.rect";
+                               type: RECT;
+                               mouse_events: 0;
+                               scale: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       align: 0.0 0.5;
+                                       rel1 { relative: 1.0 0.0; to_x: "pad.thumbnail.icon.right"; to_y: "bg"; }
+                                       rel2 { relative: 0.0 1.0; to_x: "pad.filename.right"; to_y: "bg"; }
+                                       color: 0 0 0 0;
+                               }
+                       }
+                       PART_TEXT("item.filename.text", "item.filename.rect", "", "Tizen:style=Regular", "tizen", 34, 0.0, 0.5, 0, 0, 0, 255)
+                       PART_H_PIXEL_RECT("pad.filename.right", 12, 1.0, 0.0, "item.filesize.rect")
+
+                       part {
+                               name: "item.filesize.rect";
+                               type: RECT;
+                               mouse_events: 0;
+                               scale: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       min: 120 0;
+                                       max: 120 0;
+                                       align: 1.0 0.5;
+                                       rel1 { relative: 0.0 0.0; to_x: "pad.filesize.right"; to_y: "bg"; }
+                                       rel2 { relative: 0.0 1.0; to_x: "pad.filesize.right"; to_y: "bg"; }
+                                       color: 0 0 0 0;
+                               }
+                       }
+                       PART_TEXT("item.filesize.text", "item.filesize.rect", "", "Tizen:style=Regular", "tizen", 28, 1.0, 0.5, 102, 102, 102, 255)
+                       PART_H_PIXEL_RECT("pad.filesize.right", 10, 1.0, 0.0, "item.save.icon")
+
+                       part {
+                               name: "item.save.rect";
+                               type: RECT;
+                               scale: 1;
+                               mouse_events: 0;
+                               description {
+                                       state: "default" 0.0;
+                                       visible: 1;
+                                       fixed: 1 1;
+                                       min: 72 72;
+                                       rel1 { relative: 0.0 0.0; to_x: "pad.right"; to_y: "bg"; }
+                                       rel2 { relative: 0.0 1.0; to_x: "pad.right"; to_y: "bg"; }
+                                       align: 1.0 0.5;
+                                       color: 0 0 0 0;
+                               }
+                       }
+                       PART_SWALLOW("item.save.icon", "item.save.rect")
+
+                       PART_RECT("over", 0.0, 0.0, "bg", "bg", 0.0, 1.0, "item.save.rect", "item.save.rect")
+                       PART_EVENT_RECT("over_event", "over")
+
+                       PART_BOTTOM_LINE_DOUBLE("line.bottom", "bg")
+               }
+
+               programs {
+                       program {
+                               name: "mouse_clicked";
+                               signal: "mouse,clicked,1";
+                               source: "over_event";
+                               action: SIGNAL_EMIT "clicked" "";
+                       }
+               }
+       }
 }