APPLY_RSA
[apps/home/calculator.git] / theme / calculator_theme.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #define ENTRY_BLOCK_HANDLE_SOURCE2 "elm/entry/selection/block_handle_right"
20 #define ENTRY_BLOCK_HANDLE_SOURCE3 "elm/entry/selection/block_handle_left"
21 #define ENTRY_BLOCK_HANDLE_SOURCE2_B "elm/entry/Bselection/block_handle_right"
22 #define ENTRY_BLOCK_HANDLE_SOURCE3_B "elm/entry/Bselection/block_handle_left"
23 #define ENTRY_TEXT_COLOR_INC "#000000"
24 #define ENTRY_TEXT_COLOR_INC_B "#000000"
25 #define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000"
26 #define ENTRY_PREEDIT_BACKGROUND_COLOR_INC_B "#FFFFFF"
27 #define ENTRY_PREEDIT_TEXT_COLOR_INC "#FFFFFF"
28 #define ENTRY_PREEDIT_TEXT_COLOR_INC_B "#000000"
29 #define ENTRY_CURSOR_COLOR_INC 217 147 26 255
30 #define ENTRY_CURSOR_COLOR_INC_B 42 109 140 255
31 #define ENTRY_SELECTION_BG_COLOR 204 230 224 127
32 #define ENTRY_SELECTION_BG_COLOR_B 90 123 138 127
33
34 collections {
35         images {
36                 image: "black/copy&paste_Icon_left.png" COMP;
37             image: "black/copy&paste_Icon_left_press.png" COMP;
38             image: "black/copy&paste_Icon_right.png" COMP;
39             image: "black/copy&paste_Icon_right_press.png" COMP;
40         }
41     group {
42       name: "elm/entry/base/black";
43       alias: "elm/entry/base/char_wrap";
44       data.item: "default_font_size" "24";
45       data.item: "min_font_size" "8";
46       data.item: "max_font_size" "60";
47       styles
48         {
49            style { name: "entry_textblock_char_wrap_style_B";
50               base: "font=SLP:style=Roman text_class=slp_roman font_size=70  align=right color="ENTRY_TEXT_COLOR_INC_B" wrap=char left_margin=2 right_margin=2";
51               tag:  "br" "\n";
52               tag:  "ps" "ps";
53               tag:  "tab" "\t";
54               tag:  "em" "+ font=SLP:style=Oblique";
55               tag:  "b" "+ font=SLP:style=Bold text_class=slp_bold";
56               tag:  "link" "+ color=#800 underline=on underline_color=#8008";
57               tag:  "hilight" "+ font=SLP:style=Bold text_class=slp_bold";
58               tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC"";
59               tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC"";
60            }
61            style { name: "entry_textblock_char_wrap_disabled_style_B";
62               base: "font=SLP:style=Roman text_class=slp_roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char";
63               tag:  "br" "\n";
64               tag:  "ps" "ps";
65               tag:  "tab" "\t";
66               tag:  "em" "+ font=SLP:style=Oblique";
67               tag:  "b" "+ font=SLP:style=Bold text_class=slp_bold";
68               tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
69               tag:  "hilight" "+ font=SLP:style=Bold text_class=slp_bold";
70               tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC"";
71               tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC"";
72            }
73         }
74       data {
75          item: context_menu_orientation "horizontal";
76       }
77       parts {
78          part { name: "entry.swallow.background";
79             type: SWALLOW;
80             description { state: "default" 0.0;
81                    visible: 1;
82                    rel1 { relative: 0 0; to: "elm.text"; }
83                    rel2 { relative: 1 1; to: "elm.text"; }
84                         }
85                 }
86       }
87       parts {
88          part { name: "elm.text";
89             type: TEXTBLOCK;
90             mouse_events: 1;
91             scale: 1;
92             entry_mode: EDITABLE;
93             select_mode: BLOCK_HANDLE;
94             //cursor_mode: BEFORE;
95             multiline: 1;
96             source: "elm/entry/Bselection/default"; // selection under
97             source2: ENTRY_BLOCK_HANDLE_SOURCE2_B; // block handle
98             source3: ENTRY_BLOCK_HANDLE_SOURCE3_B; // block handle
99             source4: "elm/entry/Bcursor/default"; // cursorover
100             source5: "elm/entry/Banchor/default"; // anchor under
101 //          source6: "X"; // anchor over
102             description { state: "default" 0.0;
103                           fixed: 1 0;
104                text {
105                   style: "entry_textblock_char_wrap_style_B";
106                   min: 0 1;
107                }
108             }
109             description { state: "disabled" 0.0;
110                inherit: "default" 0.0;
111                text {
112                   style: "entry_textblock_char_wrap_disabled_style_B";
113                   min: 0 1;
114                }
115             }
116          }
117       }
118       programs {
119          program { name: "focus";
120             signal: "load";
121             source: "";
122             action: FOCUS_SET;
123             target: "elm.text";
124          }
125          program { name: "disable";
126             signal: "elm,state,disabled";
127             source: "elm";
128             action: STATE_SET "disabled" 0.0;
129             target: "elm.text";
130          }
131          program { name: "enable";
132             signal: "elm,state,enabled";
133             source: "elm";
134             action: STATE_SET "default" 0.0;
135             target: "elm.text";
136          }
137       }
138    }
139
140         group { name: "elm/entry/Bcursor/default";
141                 parts {
142                         part { name: "clip2";
143                                 type: RECT;
144                                 mouse_events: 0;
145                                 scale: 1;
146                                 description { state: "default" 0.0;
147                                         rel1.to: "clip";
148                                         rel2.to: "clip";
149                                         //color: 229 134 22 255;
150                                 visible: 0;
151                                 }
152                                 description { state: "focused" 0.0;
153                                         inherit: "default" 0.0;
154                                         visible: 1;
155                                 }
156                         }
157                         part { name: "clip";
158                                 type: RECT;
159                                 mouse_events: 0;
160                                 scale: 1;
161                                 clip_to: "clip2";
162                                 description { state: "default" 0.0;
163                                         rel1.offset: -10 0;
164                                         rel2.offset: 9 9;
165                                 }
166                                 description { state: "hidden" 0.0;
167                                         inherit: "default" 0.0;
168                                         visible: 0;
169                                 }
170                         }
171                         part { name: "base";
172                                 mouse_events: 0;
173                                 scale: 1;
174                                 clip_to: "clip";
175                                 description { state: "default" 0.0;
176                                         min: 2 2;
177                                         align: 0.5 1.0;
178                                         color: 0 0 0 0;
179                                 }
180                         }
181
182                         part { name: "glow";
183                                 type: RECT;
184                                 mouse_events: 0;
185                                 scale: 1;
186                                 clip_to: "clip2";
187                                 description { state: "default" 0.0;
188                                         min: 3 0;
189                                         fixed: 1 0;
190                                         align: 0.5 0.5;
191                                         rel1 {
192                                                 relative: 0.0  0.0;
193                                                 offset: 0 2;
194                                         }
195                                         rel2 {
196                                                 relative: 0.0  1.0;
197                                                 offset: 0 -2;
198                                         }
199                                         color: ENTRY_CURSOR_COLOR_INC_B;
200                                 }
201                                 description { state: "hidden" 0.0;
202                                         inherit: "default" 0.0;
203                                         color: 0 0 0 0;
204                                 }
205                         }
206                 }
207                 programs {
208                         program { name: "show";
209                                 action: STATE_SET "hidden" 0.0;
210                                 in: 0.6 0.0;
211                                 target: "glow";
212                                 after: "show4";
213                         }
214                         program { name: "show4";
215                                 action: STATE_SET "default" 0.0;
216                                 in: 0.6 0.0;
217                                 target: "glow";
218                                 after: "show";
219                         }
220                         program { name: "focused";
221                                 signal: "elm,action,focus";
222                                 source: "elm";
223                                 action: STATE_SET "focused" 0.0;
224                                 target: "clip2";
225                                 after: "show4";
226                         }
227                         program { name: "unfocused";
228                                 signal: "elm,action,unfocus";
229                                 source: "elm";
230                                 action: STATE_SET "default" 0.0;
231                                 target: "clip2";
232                                 after: "stop_glow";
233                         }
234                         program { name: "stop_glow";
235                                 action: ACTION_STOP;
236                                 target: "show";
237                                 target: "show4";
238                         }
239                 }
240         }
241
242
243         group { name: "elm/entry/Bselection/default";
244                 parts {
245                         part { name: "bg";
246                                 type: RECT;
247                                 scale: 1;
248                                 mouse_events: 0;
249                                 description { state: "default" 0.0;
250                                         color: ENTRY_SELECTION_BG_COLOR_B;
251                                 }
252                         }
253                 }
254         }
255 /////////////////////////////////////////////////////////////////////////
256         group { name: "elm/entry/Bselection/block_handle_left";
257                 data.item: "position" "BOTTOM";
258                 images {
259                   image: "black/copy&paste_Icon_left.png" COMP;
260                   image: "black/copy&paste_Icon_left_press.png" COMP;
261                 }
262                 parts {
263                         part { name: "bg";
264                                 type: RECT;
265                                 scale: 1;
266                                 mouse_events: 1;
267                                 description { state: "default" 0.0;
268                                         visible: 0;
269                                         fixed: 1 1;
270                                         align: 1 0;
271                                         min: 30 42;
272                                         color: 0 0 0 0;
273                                 }
274                                 description { state: "show" 0.0;
275                                         inherit: "default" 0.0;
276                                         visible: 1;
277                                 }
278                         }
279                         part { name: "handle";
280                                 mouse_events: 1;
281                                 scale: 1;
282                                 description { state: "default" 0.0;
283                                         visible: 0;
284                                         fixed: 1 1;
285                                         align: 1 0;
286                                         min: 30 42;
287                                         rel1 {
288                                                 relative: 1.1 0.0;
289                                                 offset: 0 -2;
290                                                 to: "bg";
291                                         }
292                                         rel2 {
293                                                 relative: 1.1 0.0;
294                                                 offset: 0 -2;
295                                                 to: "bg";
296                                         }
297                                         image {
298                                                 normal: "black/copy&paste_Icon_left.png";
299                                                 border: 0 0 0 0;
300                                         }
301                                         image.middle: SOLID;
302                                         fill.smooth: 0;
303                                 }
304                                 description { state: "show" 0.0;
305                                         inherit: "default" 0.0;
306                                         visible: 1;
307                                 }
308                                 description { state: "press" 0.0;
309                                         inherit: "default" 0.0;
310                                         visible: 1;
311                                         image {
312                                                 normal: "black/copy&paste_Icon_left_press.png";
313                                                 border: 0 0 0 0;
314                                         }
315                                 }
316                         }
317                 }
318                 programs {
319                         program { name: "focused";
320                                 signal: "elm,action,focus";
321                                 source: "elm";
322                                 action: STATE_SET "show" 0.0;
323                                 target: "handle";
324                                 target: "bg";
325                         }
326                         program { name: "unfocused";
327                                 signal: "elm,action,unfocus";
328                                 source: "elm";
329                                 action: STATE_SET "default" 0.0;
330                                 target: "handle";
331                                 target: "bg";
332                         }
333                         program { name: "pressed";
334                                 signal: "mouse,down,1";
335                                 source: "handle";
336                                 action: STATE_SET "press" 0.0;
337                                 target: "handle";
338                         }
339                         program { name: "unpressed";
340                                 signal: "mouse,up,1";
341                                 source: "handle";
342                                 action: STATE_SET "show" 0.0;
343                                 target: "handle";
344                         }
345                 }
346         }
347
348         group { name: "elm/entry/Bselection/block_handle_right";
349                 data.item: "position" "BOTH";
350                 images {
351                   image: "black/copy&paste_Icon_right.png" COMP;
352                   image: "black/copy&paste_Icon_right_press.png" COMP;
353                 }
354                 parts {
355 /*                      part { name: "bg";
356                                 type: RECT;
357                                 scale: 1;
358                                 mouse_events: 1;
359                                 description { state: "default" 0.0;
360                                         visible: 0;
361                                         fixed: 1 1;
362                                         align: 0.5 0.25;
363                                         min: 50 80;
364                                         color: 0 0 0 0;
365                                 }
366                                 description { state: "show" 0.0;
367                                         inherit: "default" 0.0;
368                                         visible: 1;
369                                 }
370                         }*/
371                         part { name: "handle";
372                                 mouse_events: 1;
373                                 scale: 1;
374                                 description { state: "default" 0.0;
375                                         visible: 0;
376                                         fixed: 1 1;
377                                         align: 0 0;
378                                         min: 30 42;
379                                         rel1 {
380                                                 relative: 0.0 0.0;
381                                                 offset: 0 -2;
382                                         }
383                                         rel2 {
384                                                 relative: 0.0 0.0;
385                                                 offset: 0 -2;
386                                         }
387                                         image {
388                                                 normal: "black/copy&paste_Icon_right.png";
389                                                 border: 0 0 0 0;
390                                         }
391                                         image.middle: SOLID;
392                                         fill.smooth: 0;
393                                 }
394                                 description { state: "show" 0.0;
395                                         inherit: "default" 0.0;
396                                         visible: 1;
397                                 }
398                                 description { state: "press" 0.0;
399                                         inherit: "default" 0.0;
400                                         visible: 1;
401                                         image {
402                                                 normal: "black/copy&paste_Icon_right_press.png";
403                                                 border: 0 0 0 0;
404                                         }
405                                 }
406                         }
407                 }
408                 programs {
409                         program { name: "focused";
410                                 signal: "elm,action,focus";
411                                 source: "elm";
412                                 action: STATE_SET "show" 0.0;
413                                 target: "handle";
414 //                              target: "bg";
415                         }
416                         program { name: "unfocused";
417                                 signal: "elm,action,unfocus";
418                                 source: "elm";
419                                 action: STATE_SET "default" 0.0;
420                                 target: "handle";
421 //                              target: "bg";
422                         }
423                         program { name: "pressed";
424                                 signal: "mouse,down,1";
425                                 source: "handle";
426                                 action: STATE_SET "press" 0.0;
427                                 target: "handle";
428                         }
429                         program { name: "unpressed";
430                                 signal: "mouse,up,1";
431                                 source: "handle";
432                                 action: STATE_SET "show" 0.0;
433                                 target: "handle";
434                         }
435                 }
436         }
437
438
439 /////////////////////////////////////////////////////////////////////////
440
441         group { name: "elm/entry/Banchor/default";
442                 parts {
443                         part { name: "bg";
444                                 type: RECT;
445                                 mouse_events: 0;
446                                 description { state: "default" 0.0;
447                                         color: 128 0 0 64;
448                                 }
449                         }
450                 }
451         }
452
453         group { name: "elm/entry/Bpreedit/default";
454         parts {
455             part { name: "bg";
456                 type: RECT;
457                 mouse_events: 0;
458                 description { state: "default" 0.0;
459                     color: 128 128 128 255;
460                 }
461             }
462         }
463    }
464
465 }
466
467