tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / temperature.edc
1 group { name: "e/modules/temperature/main";
2    images.image: "therm_content.png" COMP;
3    images.image: "therm_shadow.png" COMP;
4    images.image: "therm_shine.png" COMP;
5    min: 16 16;
6    max: 128 128;
7    script {
8     public message(Msg_Type:type, id, ...) {
9        if ((type == MSG_FLOAT) && (id == 1)) {
10           new Float:val;
11           val = getfarg(2);
12           set_drag(PART:"temp_top", 0.0, val);
13        }
14     }
15    }
16    parts {
17       part { name: "shadow";
18          description { state: "default" 0.0;
19             aspect: 0.5 0.5; aspect_preference: BOTH;
20             align: 0.5 0.5;
21             max: 80 160;
22             image.normal: "therm_shadow.png";
23          }
24       }
25       part { name: "temp";
26          clip_to: "temp_clip";
27          description { state: "default" 0.0;
28             rel1.to: "shadow";
29             rel2.to: "shadow";
30             image.normal: "therm_content.png";
31          }
32       }
33       part { name: "overlay";
34          description { state: "default" 0.0;
35             rel1.to: "shadow";
36             rel2.to: "shadow";
37             image.normal: "therm_shine.png";
38          }
39       }
40       part { name: "e.text.reading"; type: TEXT;
41          scale: 1;
42          effect: SHADOW BOTTOM;
43          clip_to: "fade_clip";
44          description { state: "default" 0.0;
45             color_class: "module_label_invisible";
46             color3: 255 255 255 255;
47             text { font: FN; size: 10;
48                min: 1 1;
49                ellipsis: -1;
50                text_class: "module_small";
51             }
52          }
53          description { state: "visible" 0.0;
54             inherit: "default" 0.0;
55             color_class: "module_label";
56             color3: 255 255 255 255;
57          }
58       }
59       part { name: "fade_clip"; type: RECT;
60          description { state: "default" 0.0;
61             color: 255 255 255 255;
62          }
63          description { state: "faded" 0.0;
64             color: 255 255 255 128;
65          }
66       }
67       part { name: "temp_clip"; type: RECT;
68          clip_to: "fade_clip";
69          description { state: "default" 0.0;
70             rel1.to_y: "temp_top";
71          }
72       }
73       part { name: "temp_top"; type: SPACER;
74          dragable.x: 0 0 0;
75          dragable.y: -1 1 0;
76          dragable.confine: "temp_limit";
77          description { state: "default" 0.0;
78          }
79       }
80       part { name: "temp_limit"; type: SPACER;
81          description { state: "default" 0.0;
82             rel1.relative: 0.0 0.1;
83             rel2.relative: 1.0 0.9;
84          }
85       }
86       part { name: "over"; type: RECT;
87          description { state: "default" 0.0;
88             color: 0 0 0 0;
89          }
90       }
91    }
92    programs {
93       program {
94          signal: "mouse,in"; source: "over";
95          action: STATE_SET "visible" 0.0;
96          transition: LINEAR 0.3;
97          target: "e.text.reading";
98       }
99       program {
100          signal: "mouse,out"; source: "over";
101          action: STATE_SET "default" 0.0;
102          transition: LINEAR 1.0;
103          target: "e.text.reading";
104       }
105       program {
106          signal: "e,state,known"; source: "e";
107          action: STATE_SET "default" 0.0;
108          target: "fade_clip";
109       }
110       program {
111          signal: "e,state,unknown"; source: "e";
112          action: STATE_SET "faded" 0.0;
113          target: "fade_clip";
114       }
115    }
116 }
117
118