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