tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / entry.edc
1 group { name: "e/widgets/entry/scrollframe";
2    images.image: "inset_shadow.png" COMP;
3    images.image: "bevel_in.png" COMP;
4    parts {
5       part { name: "bg"; type: RECT;
6          description { state: "default" 0.0;
7             rel1.to: "inset";
8             rel1.offset: 1 1;
9             rel2.to: "inset";
10             rel2.offset: -2 -2;
11             color: 48 48 48 255;
12          }
13       }
14       part { name: "clipper"; type: RECT;
15          description { state: "default" 0.0;
16             rel1.to: "bg";
17             rel2.to: "bg";
18          }
19       }
20       part { name: "e.swallow.content"; type: SWALLOW;
21          mouse_events: 1;
22          clip_to: "clipper";
23          description { state: "default" 0.0;
24             rel1.offset: 3 3;
25             rel2.offset: -4 -4;
26          }
27       }
28       part { name: "shadow"; mouse_events: 0; repeat_events: 1;
29          description { state: "default" 0.0;
30             image.normal: "inset_shadow.png";
31             image.border: 5 5 7 3;
32             image.middle: 0;
33             rel1.to: "bg";
34             rel2.to: "bg";
35             fill.smooth: 0;
36             color: 255 255 255 128;
37          }
38       }
39       part { name: "inset"; mouse_events: 0; repeat_events: 1;
40          description { state: "default" 0.0;
41             image.normal: "bevel_in.png";
42             image.border: 1 1 1 1;
43             image.middle: 0;
44             rel1.offset: 0 0;
45             rel2.offset: -1 -1;
46             fill.smooth: 0;
47          }
48       }
49    }
50 }
51
52 group { name: "e/widgets/entry/text";
53       styles {
54          style { name: "entry_textblock_style";
55             base: "font="FN" font_size=10 color=#ffffffff style=shadow,bottom shadow_color=#00000080 text_class=entry color_classs=entry_text";
56          }
57          style { name: "entry_textblock_disabled_style";
58             base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 text_class=entry color_class=entry_text_disabled";
59          }
60       }
61    parts {
62       part { name: "e.text.text"; type: TEXTBLOCK;
63          scale: 1;
64          entry_mode: EDITABLE;
65          select_mode: DEFAULT;
66          cursor_mode: BEFORE;
67          multiline: 0;
68          source: "e/widgets/entry/selection"; // selection under
69          source4: "e/widgets/entry/cursor"; // cursorover
70          description { state: "default" 0.0;
71             color_class: "entry_text";
72             align: 0.0 0.5;
73             text {
74                style: "entry_textblock_style";
75                min: 1 1;
76                ellipsis: -1;
77                align: 0.0 0.5;
78             }
79          }
80          description { state: "disabled" 0.0;
81             inherit: "default" 0.0;
82             text.style: "entry_textblock_disabled_style";
83             color_class: "entry_text_disabled";
84          }
85       }
86    }
87    programs {
88       program { name: "focus";
89          signal: "load";
90          source: "";
91          action: FOCUS_SET;
92          target: "e.text.text";
93       }
94       program {
95          signal: "e,state,disabled"; source: "e";
96          action: STATE_SET "disabled" 0.0;
97          target: "e.text.text";
98       }
99       program {
100          signal: "e,state,enabled"; source: "e";
101          action: STATE_SET "default" 0.0;
102          target: "e.text.text";
103       }
104 //      program {
105 //         signal: "e,state,noedit"; source: "e";
106 //      }
107 //      program {
108 //         signal: "e,state,edit"; source: "e";
109 //      }
110    }
111 }
112
113 group { name: "e/widgets/entry/password";
114    inherit: "e/widgets/entry/text";
115    parts {
116       part { name: "e.text.text";
117          entry_mode: PASSWORD;
118          description { state: "default" 0.0;
119             text.repch: "*";
120          }
121       }
122    }
123 }
124
125 group { name: "e/widgets/entry/cursor";
126    min: 1 0;
127    images.image: "white_bar_vert_glow.png" COMP;
128    parts {
129       part { name: "cursor"; mouse_events: 0;
130          description { state: "default" 0.0;
131             rel1.offset: -4 -4;
132             rel2.offset: 3 3;
133             image.normal: "white_bar_vert_glow.png";
134             image.border: 4 4 4 4;
135             fill.smooth: 0;
136             color: 255 255 255 0;
137             min: 9 10;
138          }
139          description { state: "visible" 0.0;
140             inherit: "default" 0.0;
141             color: 255 255 255 255;
142          }
143       }
144    }
145    programs {
146       program {
147          signal: "e,action,show,cursor"; source: "e";
148          action: ACTION_STOP;
149          target: "cursor_show";
150          target: "cursor_hide";
151          target: "cursor_show_timer";
152          target: "cursor_hide_timer";
153          after: "cursor_show";
154       }
155       program {
156          name: "on_cursor_hide";
157          signal: "e,action,hide,cursor";
158          source: "e";
159          action: ACTION_STOP;
160          target: "cursor_show";
161          target: "cursor_hide";
162          target: "cursor_show_timer";
163          target: "cursor_hide_timer";
164          after: "cursor_hide_stop";
165       }
166       program {
167          name: "cursor_hide_stop";
168          action: STATE_SET "default" 0.0;
169          target: "cursor";
170       }
171       program { name: "cursor_show";
172          action: STATE_SET "visible" 0.0;
173          target: "cursor";
174          after: "cursor_show_timer";
175       }
176       program { name: "cursor_hide";
177          action: STATE_SET "default" 0.0;
178          target: "cursor";
179          transition: SINUSOIDAL 0.2;
180          after: "cursor_hide_timer";
181       }
182       program { name: "cursor_show_timer";
183          in: 0.5 0.0;
184          after: "cursor_hide";
185       }
186       program { name: "cursor_hide_timer";
187          in: 0.2 0.0;
188          after: "cursor_show";
189       }
190    }
191 }
192
193 group { name: "e/widgets/entry/selection";
194 //   data.item: "on_foreground" "1";
195    parts {
196       part { name: "selection"; type: RECT; mouse_events: 0;
197          description { state: "default" 0.0;
198             color: 51 153 255 255;
199          }
200       }
201    }
202 }