merge with master
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / index.edc
index 9e2e643..119d25a 100644 (file)
          }
       }
       images {
+         image: "00_fast_scroll_rollover_bg.png" COMP;
          image: "00_fast_scroll_popup_bg.png" COMP;
       }
-      data{
-         item: "min_obj_height" "32";
-         item: "min_1st_level_obj_height" "32";
-         item: "special_char" "*";
-      }
       parts {
          part { name: "clip";
             scale: 1;
@@ -63,6 +59,7 @@
             }
          }
          part { name: "elm.dragable.index.1";
+            type: RECT;
             mouse_events: 0;
             scale: 1;
             dragable {
@@ -71,6 +68,7 @@
                confine: "elm.swallow.index.0";
             }
             description { state: "default" 0.0;
+               visible: 0;
                fixed: 1 1;
                min: 20 38;
                rel1 {
                }
             }
          }
-         part { name: "elm.swallow.index.1.padding.right";
+         part { name: "index.top.padding";
             type: RECT;
             scale: 1;
-            description { state: "default" 0.0;
-               min: INDEX_LEVEL_PADDING_INC 0;
-               fixed: 1 0;
-               align: 1.0 0.0;
+            description {
+               align: 0.5 0.0;
+               min: 0 INDEX_PADDING_SIZE_INC;
+               visible: 0;
+               fixed: 0 1;
                rel1 {
-                  relative: 1.0 0.0;
-                  offset: 0 0;
+                  to_x: "elm.swallow.index.0";
+                  relative: 0.0 0.0;
                }
                rel2 {
+                  to_x: "elm.swallow.index.0";
                   relative: 1.0 0.0;
-                  offset: 0 0;
                }
-               color: 0 0 0 0;
             }
          }
-         part { name: "elm.swallow.index.1";
-            type: SWALLOW;
+         part { name: "index.bottom.padding";
+            type: RECT;
             scale: 1;
-            clip_to: "clip2";
-            description { state: "default" 0.0;
-               align: 0.5 0.5;
+            description {
+               align: 0.5 1.0;
+               min: 0 INDEX_PADDING_SIZE_INC;
+               visible: 0;
+               fixed: 0 1;
                rel1 {
-                  to_y: "elm.dragable.index.1";
-                  relative: 1.0 0.5;
-                  offset: -1 0;
+                  to_x: "elm.swallow.index.0";
+                  relative: 0.0 1.0;
                }
                rel2 {
-                  to_y: "elm.dragable.index.1";
-                  relative: 1.0 0.5;
-                  offset: -1 -1;
+                  to_x: "elm.swallow.index.0";
+                  relative: 1.0 1.0;
                }
-               color: 255 255 255 0;
             }
-            description { state: "active" 0.0;
-               inherit: "default" 0.0;
+         }
+         part { name: "bg";
+            type: IMAGE;
+            clip_to: "clip";
+            scale: 1;
+            description { state: "default" 0.0;
                rel1 {
-                  to_x: "elm.swallow.index.1.padding.right";
-                  relative: 0.0 0.5;
-                  offset: 0 0;
+                  to: "index.top.padding";
                }
                rel2 {
-                  to_x: "elm.swallow.index.1.padding.right";
-                  relative: 0.0 0.5;
-                  offset: 0 -1;
+                  to: "index.bottom.padding";
+               }
+               image {
+                  normal: "00_fast_scroll_rollover_bg.png";
                }
-               color: 255 255 255 255;
             }
          }
-        part { name: "elm.swallow.index.0";
-            type: SWALLOW;
+         part { name: "left.line";
+            type: RECT;
             clip_to: "clip";
             scale: 1;
             description { state: "default" 0.0;
-               visible: 1;
-               align: 1.0 0.5;
+               align: 0.0 0.5;
+               min: INDEX_LEFT_LINE_WIDTH_INC 0;
                fixed: 1 1;
                rel1 {
-                  relative: 1.0 0.5;
+                  to: "bg";
+                  relative: 0.0 0.0;
                }
                rel2 {
-                  relative: 1.0 0.5;
+                  to: "bg";
+                  relative: 0.0 1.0;
                }
-               color: 255 255 255 50;
-            }
-            description { state: "active" 0.0;
-               inherit: "default" 0.0;
-               color: 255 255 255 255;
+               color: INDEX_LEFT_LINE_COLOR_INC;
             }
          }
-         part { name: "button_image_padding";
-            mouse_events: 0;
-            scale: 1;
+         part { name: "elm.swallow.index.0";
+            type: SWALLOW;
             clip_to: "clip";
-            type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
-               align: 0.0 0.0;
-               min: 0 0;
-               max: 0 0;
-               fixed: 0 1;
+               visible: 1;
+               align: 1.0 0.5;
+               fixed: 1 1;
                rel1 {
-                  relative: 0.5 0.5;
-                  offset: 0 0;
+                  to_y: "index.top.padding";
+                  relative: 1.0 1.0;
                }
                rel2 {
-                  relative: 0.5 0.5;
-                  offset: 0 0;
+                  to_y: "index.bottom.padding";
+                  relative: 1.0 0.0;
                }
+               color: 255 255 255 255;
             }
          }
          part { name: "button_image";
             scale: 1;
-            clip_to: "clip";
+            clip_to: "clip2";
             description { state: "default" 0.0;
                align: 0.5 0.5;
-               min: INDEX_1ST_LEVEL_POPUP_WIDTH_INC INDEX_POPUP_HEIGHT_INC;
                fixed: 1 1;
                rel1 {
-                  to: "elm.text";
-                  relative: 0.0 0.0;
-                  offset: -10 0;
+                  to_x: "left.padding";
+                  to_y: "top.padding";
                }
                rel2 {
-                  to: "elm.text";
-                  relative: 1.067 1.083;
-                  offset: 10 0;
+                  to_x: "right.padding";
+                  to_y: "bottom.padding";
                }
                image {
                   normal: "00_fast_scroll_popup_bg.png";
                }
                image.middle: 1;
             }
-            description { state: "invisible" 0.0;
-               inherit: "default" 0.0;
+         }
+         part { name: "top.padding";
+            type: RECT;
+            scale: 1;
+            clip_to: "clip2";
+            description {
+               state: "default" 0.0;
+               align: 0.5 1.0;
+               min: 0 INDEX_POPUP_TOP_PADDING_SIZE_INC;
+               fixed: 1 1;
+               rel1 {
+                  to: "elm.text";
+                  relative: 0.0 0.0;
+               }
+               rel2 {
+                  to: "elm.text";
+                  relative: 1.0 0.0;
+               }
                visible: 0;
             }
-            description { state: "index1" 0.0;
-               inherit: "default" 0.0;
-               min: INDEX_2ND_LEVEL_POPUP_WIDTH_INC INDEX_POPUP_HEIGHT_INC;
+         }
+         part { name: "bottom.padding";
+            type: RECT;
+            scale: 1;
+            clip_to: "clip2";
+            description {
+               state: "default" 0.0;
+               align: 0.5 0.0;
+               min: 0 INDEX_POPUP_BOTTOM_PADDING_SIZE_INC;
+               fixed: 1 1;
+               rel1 {
+                  to: "elm.text";
+                  relative: 0.0 1.0;
+               }
+               rel2 {
+                  to: "elm.text";
+                  relative: 1.0 1.0;
+               }
+               visible: 0;
             }
-            description { state: "active" 0.0;
-               inherit: "default" 0.0;
-               visible: 1;
+         }
+         part { name: "left.padding";
+            type: RECT;
+            scale: 1;
+            clip_to: "clip2";
+            description {
+               state: "default" 0.0;
+               align: 1.0 0.5;
+               min: INDEX_POPUP_LEFT_PADDING_SIZE_INC 0;
+               fixed: 1 1;
+               rel1 {
+                  to: "elm.text";
+                  relative: 0.0 0.0;
+               }
+               rel2 {
+                  to: "elm.text";
+                  relative: 0.0 1.0;
+               }
+               visible: 0;
+            }
+         }
+         part { name: "right.padding";
+            type: RECT;
+            scale: 1;
+            clip_to: "clip2";
+            description {
+               state: "default" 0.0;
+               align: 0.0 0.5;
+               min: INDEX_POPUP_RIGHT_PADDING_SIZE_INC 0;
+               fixed: 1 1;
+               rel1 {
+                  to: "elm.text";
+                  relative: 1.0 0.0;
+               }
+               rel2 {
+                  to: "elm.text";
+                  relative: 1.0 1.0;
+               }
+               visible: 0;
             }
          }
          part {
             type: "TEXT";
             mouse_events: 0;
             scale: 1;
-            clip_to: "clip";
+            clip_to: "clip2";
             description {
                state: "default" 0.0;
                align: 0.5 0.5;
                fixed: 1 1;
-               min: 40 20;
-               visible: 0;
+               min: INDEX_POPUP_TEXT_WIDTH_INC INDEX_POPUP_TEXT_HEIGHT_INC;
                rel1 {
-                  to_y: "button_image_padding";
-                  relative: 0.5 1.0;
+                  relative: 0.5 0.5;
                }
                rel2 {
-                  to_y: "button_image_padding";
-                  relative: 0.5 1.0;
+                  relative: 0.5 0.5;
                }
                color: INDEX_POPUP_TEXT_COLOR_INC;
-               color3: 0 0 0 64;
                text {
                   font: "Tizen:style=Medium";
                   size: INDEX_POPUP_TEXT_SIZE_INC;
                   text_class: "tizen";
                }
             }
-            description { state: "active" 0.0;
-               inherit: "default" 0.0;
-               visible: 1;
-            }
          }
          part { name: "elm.dragable.pointer";
             type: RECT;
                color: 0 0 0 0;
             }
          }
-         part { name: "elm.swallow.event.0.bottom.padding";
-            type: RECT;
-            scale: 1;
-            description { state: "default" 0.0;
-               min: 0 SOFTKEY_H;
-               fixed: 0 1;
-               align: 0.5 1.0;
-               rel1{
-                  relative: 1.0 1.0; offset: 0 0;
-               }
-               color: 0 0 0 0;
-            }
-         }
          part { name: "elm.swallow.event.0";
             type: SWALLOW;
             scale: 1;
                   offset: -1 0;
                }
                rel2 {
-                  relative: 1.0 0.0;
+                  relative: 1.0 1.0;
                   offset: -1 -1;
-                  to_y: "elm.swallow.event.0.bottom.padding";
                }
             }
          }
-         part { name: "elm.swallow.event.1";
-            type: SWALLOW;
-            scale: 1;
+         part {
+            name: "access";
+            type: RECT;
             description { state: "default" 0.0;
-               align: 1.0 0.5;
                fixed: 1 1;
                rel1 {
-                  to: "elm.swallow.index.1";
-                  relative: 0.0 0.0;
-                  offset: -1 0;
+                  to: "elm.swallow.index.0";
+                  offset: -3 0;
                }
                rel2 {
-                  to: "elm.swallow.index.1";
-                  relative: 0.0 1.0;
-                  offset: -1 -1;
+                  to: "elm.swallow.index.0";
                }
+               color: 0 0 0 0;
+               visible: 0;
+            }
+            description { state: "active" 0.0;
+               inherit: "default" 0.0;
+               visible: 1;
             }
          }
       }
             source: "";
             script {
                run_program(PROGRAM:"initial.index0.active");
-               run_program(PROGRAM:"button.image.hidden");
                timer(2.0, "index_hide_timer", 0);
             }
          }
             signal: "elm,state,active";
             source: "elm";
             action: STATE_SET "active" 0.0;
-            transition: DECELERATE 0.3;
-            target: "elm.swallow.index.0";
             target: "clip";
             after: "disable_timer";
          }
          program { name: "initial.index0.active";
             action: STATE_SET "active" 0.0;
-            transition: DECELERATE 0.3;
-            target: "elm.swallow.index.0";
             target: "clip";
             after: "enable_timer";
          }
             source: "elm";
             action: STATE_SET "default" 0.0;
             transition: DECELERATE 0.3;
-            target: "elm.swallow.index.0";
             target: "clip";
          }
-         program { name: "index1.inactive";
-            signal: "elm,state,level,0";
-            source: "elm";
-            action: STATE_SET "default" 0.0;
-            transition: DECELERATE 0.3;
-            target: "elm.swallow.index.1";
-            target: "clip2";
-         }
-         program { name: "index1.active";
-            signal: "elm,state,level,1";
-            source: "elm";
-            action: STATE_SET "active" 0.0;
-            transition: DECELERATE 0.3;
-            target: "elm.swallow.index.1";
-            target: "clip2";
-         }
          program { name: "index.active";
             signal: "elm,indicator,state,active";
             source: "elm";
             action: STATE_SET "active" 0.0;
-            transition: DECELERATE 0.5;
             target: "clip2";
-            target: "elm.swallow.index.0";
-            target: "clip";
-            target: "elm.text";
-            target: "button_image";
          }
          program { name: "index.inactive";
             signal: "elm,indicator,state,inactive";
             source: "elm";
             action: STATE_SET "default" 0.0;
-            transition: DECELERATE 0.5;
+            transition: DECELERATE 0.3;
             target: "clip2";
          }
-         program { name: "button.image.hidden";
-            signal: "elm,state,button,image,hide";
+         program {
+            name: "access.active";
+            signal: "elm,access,state,active";
+            source: "elm";
+            action: STATE_SET "active" 0.0;
+            target: "access";
+         }
+         program {
+            name: "access.inactive";
+            signal: "elm,access,state,inactive";
             source: "elm";
-            action: STATE_SET "invisible" 0.0;
-            target: "button_image";
+            action: STATE_SET "default" 0.0;
+            target: "access";
          }
          program { name: "disable_timer";
             script {
       data.item: "selectraise" "on";
       images {
          image: "00_fast_scroll_rollover_bg_focus.png" COMP;
+         image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
       }
       parts {
          part { name: "scroll.bg";
-            type: RECT;
+            type: IMAGE;
             mouse_events: 0;
             scale: 1;
-            description {
-               state: "default" 0.0;
-               visible: 1;
+            description { state: "default" 0.0;
                rel1.to: "elm.text";
                rel2.to: "elm.text";
-               color: INDEX_SCROLL_BG_COLOR_INC;
+               image {
+                  normal: "00_fast_scroll_rollover_bg_focus.png";
+               }
+               visible: 0;
             }
-            description {
-               state: "active" 0.0;
+            description { state: "active" 0.0;
                inherit: "default" 0.0;
                visible: 1;
             }
             scale: 1;
             description {
                state: "default" 0.0;
-               visible: 1;
+               align: 0.5 1.0;
+               min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
+               fixed: 1 1;
                rel1 {
-                  relative: 0.0 1.0; offset: 0 -1;
+                  relative: 0.0 1.0;
+                  offset: 6 0;
                }
                rel2 {
                   relative: 1.0 1.0;
+                  offset: -3 0;
                }
                color: INDEX_BOTTOM_LINE_COLOR_INC;
             }
+            description {
+               state: "inactive" 0.0;
+               inherit: "default" 0.0;
+               visible: 0;
+            }
          }
-         part { name: "left.line";
+         part { name: "focus.top";
             type: RECT;
             mouse_events: 0;
             scale: 1;
             description {
                state: "default" 0.0;
-               visible: 1;
+               align: 0.5 1.0;
+               min: 0 INDEX_LEFT_LINE_WIDTH_INC;
+               fixed: 1 1;
+               visible: 0;
                rel1 {
                   relative: 0.0 0.0;
                }
                rel2 {
-                  relative: 0.0 1.0; offset: 1 0;
+                  relative: 1.0 0.0;
                }
-               color: INDEX_LEFT_LINE_COLOR_INC;
             }
+         }
+         part { name: "focus.bottom";
+            type: RECT;
+            mouse_events: 0;
+            scale: 1;
             description {
-               state: "active" 0.0;
+               state: "default" 0.0;
+               align: 0.5 0.0;
+               min: 0 INDEX_LEFT_LINE_WIDTH_INC;
+               fixed: 1 1;
+               visible: 0;
                rel1 {
-                  relative: 0.0 0.0; offset: 0 -INDEX_ITEM_HEIGHT_INC;
+                  to: "bottom.line";
+                  relative: 0.0 0.0;
                }
                rel2 {
-                  relative: 0.0 1.0; offset: 1 +INDEX_ITEM_HEIGHT_INC;
+                  to: "bottom.line";
+                  relative: 1.0 0.0;
+               }
+            }
+         }
+         part { name: "right.padding";
+            type: RECT;
+            mouse_events: 0;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               align: 1.0 0.5;
+               min: INDEX_ITEM_PADDING_SIZE_INC 0;
+               fixed: 1 1;
+               visible: 0;
+               rel1 {
+                  relative: 1.0 0.0;
+               }
+               rel2 {
+                  relative: 1.0 1.0;
                }
-               color: INDEX_SCROLL_BG_COLOR_INC;
             }
          }
          part { name: "item.bg";
                state: "default" 0.0;
                visible: 0;
                rel1 {
-                  relative: 0.0 0.0; offset: 0 -INDEX_ITEM_HEIGHT_INC;
+                  to_y: "focus.top";
                }
                rel2 {
-                  relative: 1.0 1.0; offset: 0 +INDEX_ITEM_HEIGHT_INC;
+                  to_x: "right.padding";
+                  to_y: "focus.bottom";
+                  relative: 0.0 1.0;
                }
                image {
-                  normal: "00_fast_scroll_rollover_bg_focus.png";
+                  normal: "00_fast_scroll_rollover_bg_line_focus.png";
                   border: INDEX_BG_NINEPATCH_INC;
                   border_scale: 1;
                }
             transition: DECELERATE 0.0;
             target: "elm.text";
             target: "item.bg";
-            target: "left.line";
             target: "scroll.bg";
          }
          program { name: "inactive";
             transition: DECELERATE 0.0;
             target: "elm.text";
             target: "item.bg";
-            target: "left.line";
             target: "scroll.bg";
          }
+         program {
+            signal: "elm,last,item";
+            source: "elm";
+            action: STATE_SET "inactive" 0.0;
+            target: "bottom.line";
+         }
       }
    }
    group {