Displaying UrlHistoryList refactoring (moving class, focus chain).
[profile/tv/apps/web/browser.git] / services / WebPageUI / edc / UrlHistoryList.edc
1 #define LIST_OFFSET_X 255
2 #define LIST_OFFSET_Y 104
3 #define URI_INPUTBOX_LENGTH 1720
4 #define URI_INPUTBOX_LENGTH_SHORT 1460
5 #define HISTORY_ITEM_W URI_INPUTBOX_LENGTH
6 #define HISTORY_ITEM_H 82
7 #define HISTORY_ITEMS_VISIBLE_MAX 5
8 /*
9   has to be a multiple of item's height.
10 */
11 #define LIST_MAX_H HISTORY_ITEM_H*HISTORY_ITEMS_VISIBLE_MAX
12
13 collections {
14     group {
15         name: "url_history_list";
16         parts
17         {
18             part {
19                 name: "list_swallow";
20                 type: SWALLOW;
21                 description {
22                     color: 255 0 0 150;
23                     min: URI_INPUTBOX_LENGTH_SHORT LIST_MAX_H;
24                     max: -1 -1;
25                     visible: 1;
26                     align: 0.0 0.0;
27                     rel1 {
28                         relative: 0 0;
29                         offset: LIST_OFFSET_X LIST_OFFSET_Y;
30                     }
31                     rel2 {
32                         relative: 1.0 0.5;
33                     }
34                 }
35             }
36         }
37     }
38
39     group {
40         name: "elm/genlist/item/url_historylist_grid_item/default";
41         data.item: "contents" "matched_url";
42         parts {
43             part {
44                 name: "bg";
45                 type: RECT;
46                 mouse_events: 1;
47                 description {
48                     state: "default" 0.0;
49                     min: URI_INPUTBOX_LENGTH HISTORY_ITEM_H;
50                     max: -1 -1;
51                     visible: 1;
52                     color: 255 255 255 255;
53                     align: 0.0 0.0;
54                 }
55                 description {
56                     state: "focused" 0.0;
57                     inherit: "default" 0.0;
58                     color: 0 119 246 255;
59                 }
60             }
61             part {
62                 name: "matched_url";
63                 type: SWALLOW;
64                 scale: 1;
65                 description {
66                     state: "default" 0.0;
67                     fixed: 0 1;
68                     visible: 1;
69                     align: 0.0 0.0;
70                     rel1 {
71                         to: "bg";
72                         relative: 0.0 0.0;
73                         offset: 48 0;
74                     }
75                     rel2 {
76                         to: "bg";
77                         relative: 1.0  1.0;
78                     }
79
80                 }
81             }
82         }
83         programs {
84             program {
85                 name: "focused";
86                 signal: "mouse,in";
87                 source: "matched_url";
88                 action: STATE_SET "focused" 0.0;
89                 target: "bg";
90             }
91             program {
92                 name: "selected";
93                 signal: "mouse,out";
94                 source: "matched_url";
95                 action: STATE_SET "default" 0.0;
96                 target: "bg";
97             }
98         }
99     }
100
101     group {
102         name: "elm/genlist/item/url_historylist_grid_item_space/default";
103         parts {
104             part {
105                 name: "bg";
106                 type: RECT;
107                 mouse_events: 1;
108                 description {
109                     state: "default" 0.0;
110                     visible: 0;
111                     min: URI_INPUTBOX_LENGTH HISTORY_ITEM_H;
112                     max: -1 -1;
113                     visible: 1;
114                     color: 255 255 255 0;
115                     align: 0.0 0.0;
116                 }
117             }
118         }
119     }
120 }