summaryrefslogtreecommitdiff
path: root/layout/mp-play-progress.edc
diff options
context:
space:
mode:
Diffstat (limited to 'layout/mp-play-progress.edc')
-rwxr-xr-xlayout/mp-play-progress.edc314
1 files changed, 314 insertions, 0 deletions
diff --git a/layout/mp-play-progress.edc b/layout/mp-play-progress.edc
new file mode 100755
index 0000000..527bb4f
--- /dev/null
+++ b/layout/mp-play-progress.edc
@@ -0,0 +1,314 @@
+/*
+ * 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.
+ */
+
+
+
+#define PROGRESS_PAD_TOP_1 21
+#define PROGRESS_PAD_TOP_2 6
+#define PROGRESS_PAD_BOTTOM 26
+#define PROGRESS_BG_ALPHA 230
+
+
+#define PROGRESS_PAD_CENTER 14
+
+#define PROGRESS_BAR_PAD_TOP 32
+#define PROGRESS_BAR_H 16
+#define PROGRESS_BAR_PAD_TIME 16
+#define PROGRESS_TIME_H 28
+#define PROGRESS_TIME_PAD_BOTTOM 21
+#define PROGRESS_BAR_PAD_LEFT 32
+#define PROGRESS_BAR_PAD_RIGHT 32
+
+#define PROGRESS_BOX_H (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H+PROGRESS_BAR_PAD_TIME+PROGRESS_TIME_H+PROGRESS_TIME_PAD_BOTTOM)
+#define PROGRESS_BOX_W 720
+
+#define PROGRESS_BAR_SY PROGRESS_BAR_PAD_TOP/PROGRESS_BOX_H
+#define PROGRESS_BAR_EY (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H)/PROGRESS_BOX_H
+#define PROGRESS_BAR_SX PROGRESS_BAR_PAD_LEFT/PROGRESS_BOX_W
+#define PROGRESS_BAR_EX (PROGRESS_BOX_W-PROGRESS_BAR_PAD_RIGHT)/PROGRESS_BOX_W
+
+#define PROGRESS_TIME_PLAYING_SY (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H + PROGRESS_BAR_PAD_TIME)/PROGRESS_BOX_H
+#define PROGRESS_TIME_PLAYING_EY (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H + PROGRESS_BAR_PAD_TIME + PROGRESS_TIME_H)/PROGRESS_BOX_H
+#define PROGRESS_TIME_PLAYING_SX PROGRESS_BAR_SX
+#define PROGRESS_TIME_PLAYING_EX 0.5*PROGRESS_BAR_EX
+
+#define PROGRESS_TIME_TOTAL_SY PROGRESS_TIME_PLAYING_SY
+#define PROGRESS_TIME_TOTAL_EY PROGRESS_TIME_PLAYING_EY
+#define PROGRESS_TIME_TOTAL_SX 0.5*PROGRESS_BAR_EX
+#define PROGRESS_TIME_TOTAL_EX PROGRESS_BAR_EX
+
+group {
+ name: "music/playing/progress_box";
+ min: MAIN_W PROGRESS_BOX_H;
+ parts {
+ part { name: "bg";
+ type : RECT;
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ color : 0 0 0 0;//PROGRESS_BG_ALPHA;
+ }
+ }
+
+
+ part { name: "progress_bar_area";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ fixed: 1 0;
+ align: 0.5 0;
+ rel1 { relative: PROGRESS_BAR_SX 0.0; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_BAR_EX (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H+PROGRESS_BAR_PAD_TIME)/PROGRESS_BOX_H; offset: -1 0; to: "bg"; }
+
+ color: 0 0 0 0;
+ }
+ }
+
+
+ part { name: "progress_bar";
+ type : SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ fixed: 1 0;
+ align: 0.5 0;
+ rel1 { relative: 0.0 0.0; to, "progress_bar_area";}
+ rel2 { relative: 1.0 1.0; to, "progress_bar_area";}
+ }
+ }
+
+ part { name: "progress_text_playing";
+ type: TEXT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 80 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: PROGRESS_TIME_PLAYING_SX PROGRESS_TIME_PLAYING_SY; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_TIME_PLAYING_EX PROGRESS_TIME_PLAYING_EY; offset: -1 0; to: "bg"; }
+ text {
+ font: FONT_STYLE_MEDIUM;
+ size: 25;
+ text: "00:00";
+ align: 0.0 0.5;
+ }
+ color: 255 255 255 255;
+ }
+ }
+
+ part {
+ name: "progress_text_total";
+ type: TEXT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 80 0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 { relative: PROGRESS_TIME_TOTAL_SX PROGRESS_TIME_TOTAL_SY; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_TIME_TOTAL_EX PROGRESS_TIME_TOTAL_EY; offset: -1 0; to: "bg"; }
+ text {
+ font: FONT_STYLE_MEDIUM;
+ size: 25;
+ text: "00:00";
+ align: 1.0 0.5;
+ }
+ color: 255 255 255 255;
+
+ }
+ }
+ }
+}
+
+group {
+ name: "music/playing/progress_box_ls";
+ min: MAIN_W PROGRESS_BOX_H;
+ parts {
+ part { name: "bg";
+ type : RECT;
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ color : 0 0 0 0;//PROGRESS_BG_ALPHA;
+ }
+ }
+
+
+ part { name: "progress_bar_area";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ fixed: 1 0;
+ align: 0.5 0;
+ rel1 { relative: PROGRESS_BAR_SX 0.0; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_BAR_EX (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H+PROGRESS_BAR_PAD_TIME)/PROGRESS_BOX_H; offset: -1 0; to: "bg"; }
+
+
+ color: 0 0 0 0;
+ }
+ }
+
+
+ part { name: "progress_bar";
+ type : SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ fixed: 1 0;
+ align: 0.5 0;
+ rel1 { relative: 0.0 0.0; to, "progress_bar_area";}
+ rel2 { relative: 1.0 1.0; to, "progress_bar_area";}
+ }
+ }
+
+ part { name: "progress_text_playing";
+ type: TEXT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 80 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: PROGRESS_TIME_PLAYING_SX PROGRESS_TIME_PLAYING_SY; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_TIME_PLAYING_EX PROGRESS_TIME_PLAYING_EY; offset: -1 0; to: "bg"; }
+ text {
+ font: FONT_STYLE_MEDIUM;
+ size: 25;
+ text: "00:00";
+ align: 0.0 0.5;
+ }
+ color: 255 255 255 255;
+ }
+ }
+
+ part {
+ name: "progress_text_total";
+ type: TEXT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 80 0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 { relative: PROGRESS_TIME_TOTAL_SX PROGRESS_TIME_TOTAL_SY; offset: 0 0; to: "bg"; }
+ rel2 { relative: PROGRESS_TIME_TOTAL_EX PROGRESS_TIME_TOTAL_EY; offset: -1 0; to: "bg"; }
+ text {
+ font: FONT_STYLE_MEDIUM;
+ size: 25;
+ text: "00:00";
+ align: 1.0 0.5;
+ }
+ color: 255 255 255 255;
+
+ }
+ }
+ }
+}
+
+group {
+ name: "music/playing/progress_box/progress_bar";
+ images {
+ image: "T02_player_progress_bg.png" COMP;
+ image: "T02_player_progress_bar.png" COMP;
+ image: "T02_player_progress_point.png" COMP;
+ }
+
+ parts {
+ part { name: "bg";
+ type : RECT;
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ color: 0 0 0 0;
+ }
+ }
+
+ part {
+ name: "progress_bg_img";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 PROGRESS_BAR_PAD_TOP/(PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_PAD_TIME+PROGRESS_BAR_H); to, "bg"; }
+ rel2 { relative: 1.0 (PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_H)/(PROGRESS_BAR_PAD_TOP+PROGRESS_BAR_PAD_TIME+PROGRESS_BAR_H); to, "bg"; }
+ image {
+ normal : "T02_player_progress_bg.png";
+ }
+ }
+ }
+
+ part {
+ name: "progress_bar";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 10 10;
+ fixed: 1 1;
+ image {
+ normal: "T02_player_progress_bar.png";
+ }
+ rel1 { relative: 0.0 0.0; to: "progress_bg_img"; }
+ rel2 { relative: 1.0 1.0; to_x: "progressbar_control"; to_y: "progress_bg_img";}
+ }
+ }
+ part {
+ name: "progressbar_control";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: PROGRESS_BAR_H PROGRESS_BAR_H;
+ fixed: 1 1;
+ align: 0 0;
+ rel1 { relative : 0.5 0.0; to:"progress_bg_img";}
+ rel2 { relative : 0.5 1.0; to:"progress_bg_img";}
+ image.normal : "T02_player_progress_point.png";
+ }
+ dragable {
+ confine: "bg";
+ x: 1 1 0;
+ y: 0 0 0;
+ }
+ }
+ }
+}
+