Task TT-75 Implement "Main page loading UI" view
[profile/tv/apps/web/browser.git] / services / SimpleUI / edc / MainLayout.edc
index 3e70303..aedfdbd 100644 (file)
@@ -1,3 +1,6 @@
+#define URI_LENGTH 1720
+#define URI_LENGTH_SHORT 1460
+#define URI_WIDTH 82
 #include "Spacer.edc"
 #define DEBUG_RECT_OVER(over_part, r, g, b)                         \
     part { name: __CONCAT("dbg_rect_at_", __stringify(__LINE__));   \
@@ -8,7 +11,7 @@ scale:1;                                                            \
         description {                                               \
             state: "default" 0.0;                                   \
             visible: 1;                                             \
-            color: r g b 128;                                       \
+            color: r g b 255;                                 \
             rel1 { to: over_part; relative: 0 0; }                  \
             rel2 { to: over_part; relative: 1 1; }                  \
         }                                                           \
@@ -27,14 +30,14 @@ collections {
                     visible: 1;
                     fixed: 1 1;
                     align: 0 0;
-                    min: 0 130;
-                    max: 99999 130;
-                    color: 18 22 34 230;
+                    min: 1920 104;
+                    max: 1920 104;
+                    color: 255 255 255 255;
                     rel1 { relative: 0.0 0.0; }
                     rel2 { relative: 1.0 0.0; }
                 }
             }
-            ADD_SPACER_OVER("left_spacer", "uri_bar_bg", 74, 130)
+            ADD_SPACER_OVER("left_spacer", "uri_bar_bg", 7, 104)
             part { name: "uri_bar_buttons_left";
                 type : SWALLOW;
                 scale: 1;
@@ -42,8 +45,8 @@ collections {
                     state: "default" 0.0;
                     visible: 1;
                     align: 0 0.5;
-                    min: 310 70;
-                    max: 310 70;
+                    min: 246 102;
+                    max: 246 102;
                     fixed: 1 1;
                     rel1 { relative: 1.0 1.0; to: "left_spacer"; }
                     rel2 { relative: 0.0 0.0; to: "left_spacer"; }
@@ -59,7 +62,7 @@ collections {
                     visible: 1;
                 }
             }
-            ADD_SPACER("left_buttons_spacer", "uri_bar_buttons_left", 39, 70)
+            ADD_SPACER("left_buttons_spacer", "uri_bar_buttons_left", 0.5, 102)
             part { name: "uri_entry";
                 type : SWALLOW;
                 scale: 1;
@@ -67,9 +70,18 @@ collections {
                     state: "default" 0.0;
                     visible: 1;
                     align: 0.0 0.5;
-                    min: 994 70;
-                    max: 994 70;
+                    min: URI_LENGTH URI_WIDTH;
+                    max: URI_LENGTH URI_WIDTH;
                     fixed: 1 1;
+                    rel1 { relative: 1.0 0.5; to: "left_spacer"; }
+                    rel2 { relative: 1.0 0.5; to: "left_spacer"; }
+                }
+                description {
+                    state: "moveright" 0.0;
+                    inherit: "default" 0.0;
+                    visible: 1;
+                    min: URI_LENGTH_SHORT URI_WIDTH;
+                    max: URI_LENGTH_SHORT URI_WIDTH;
                     rel1 { relative: 1.0 0.5; to: "left_buttons_spacer"; }
                     rel2 { relative: 1.0 0.5; to: "left_buttons_spacer"; }
                 }
@@ -84,7 +96,7 @@ collections {
                     visible: 1;
                 }
             }
-            ADD_SPACER("right_buttons_spacer", "uri_entry", 39, 70)
+            ADD_SPACER("right_buttons_spacer", "uri_entry", 26, 102)
             part { name: "uri_bar_buttons_right";
                 type : SWALLOW;
                 scale: 1;
@@ -92,8 +104,8 @@ collections {
                     state: "default" 0.0;
                     visible: 1;
                     align: 0.0 0.5;
-                    min: 390 70;
-                    max: 390 70;
+                    min: 164 102;
+                    max: 164 102;
                     fixed: 1 1;
                     rel1 { relative: 1.0 0.5; to: "right_buttons_spacer"; }
                     rel2 { relative: 1.0 0.5; to: "right_buttons_spacer"; }
@@ -109,7 +121,7 @@ collections {
                     visible: 1;
                 }
             }
-            ADD_SPACER("right_spacer", "uri_bar_buttons_right", 74, 70)
+            ADD_SPACER("right_spacer", "uri_bar_buttons_right", 74, 102)
             part { name: "web_view";
                 type : SWALLOW;
                 scale: 1;
@@ -156,8 +168,8 @@ collections {
                     visible: 1;
                     align: 0.0 0.0;
                     fixed: 0 0;
-                    min: 1936 8;
-                    max: 1936 8;
+                    min: 1920 2;
+                    max: 1920 2;
                     rel1 {
                         relative: 0.0 0.0;
                         offset: -12 -10;
@@ -198,14 +210,16 @@ collections {
                 }
             }
 
+
     part {name: "popup_bg";
         type: RECT;
         scale: 1;
+        mouse_events: 1;
         description {state: "default" 0.0;
         visible: 0;
         min: 1920 1080;
         fixed: 1 1;
-        color: 100 100 100 0;
+        color: 100 100 100 128;
         rel1 {relative: 0.0 0.0; }
                 rel2 {relative: 1.0 1.0; }
         }
@@ -219,7 +233,7 @@ collections {
              description { state: "default" 0.0;
                  visible: 0;
                  min: 0 0;
-                 max: 1920 1080;
+                 max: 700 800;
                  align: 0.5 0.5;
                  rel1 { relative: 0.0 0.0; to: "web_view";}
                  rel2 { relative: 1.0 1.0; to: "web_view";}
@@ -232,7 +246,20 @@ collections {
              }
          }
     }
+}
     programs {
+    program { name: "shiftright_uribar";
+        signal: "shiftright_uri";
+        source: "ui";
+        action: STATE_SET "moveright" 0.0;
+        target: "uri_entry";
+    }
+    program { name: "shiftback_uribar";
+        signal: "shiftback_uri";
+        source: "ui";
+        action: STATE_SET "default" 0.0;
+        target: "uri_entry";
+    }
     program { name: "hide_progress";
         signal: "hide_progressbar_bg";
         source: "ui";
@@ -261,3 +288,4 @@ collections {
         }
     }
 }
+}