summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2017-12-06 17:32:45 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-06 18:02:46 +0900
commit12d40c0433d5cd0404975c190e1d26e0e680bc00 (patch)
tree09f4cc8360df7a2a4c070ed0d3dec88c4ba07b2f
parent431c99e52688e8a3a5d8dd5e5f8d3ab5d5594c70 (diff)
efl_ui_clock: Apply lazy edc.
Summary: Apply laze edc for efl widget. Test Plan: elementary_test -> Efl.Ui.Clock sample. Reviewers: jpeg, taxi2se, Jaehyun_Cho Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5606
-rw-r--r--data/elementary/themes/edc/efl/uiclock.edc138
1 files changed, 71 insertions, 67 deletions
diff --git a/data/elementary/themes/edc/efl/uiclock.edc b/data/elementary/themes/edc/efl/uiclock.edc
index e0b0586f04..ac37fdc793 100644
--- a/data/elementary/themes/edc/efl/uiclock.edc
+++ b/data/elementary/themes/edc/efl/uiclock.edc
@@ -1,10 +1,9 @@
1#define DATETIME_FIELD(_pos) \ 1#define DATETIME_FIELD(_pos) \
2 part { \ 2 swallow { "field"#_pos; \
3 name: "field"#_pos; type: SWALLOW; \ 3 scale; \
4 scale: 1; \
5 clip_to: "clip"; \ 4 clip_to: "clip"; \
6 description { state: "default" 0.0; \ 5 desc { "default"; \
7 visible: 0; \ 6 hid; \
8 min: 0 0; \ 7 min: 0 0; \
9 align: 0.0 0.5; \ 8 align: 0.0 0.5; \
10 fixed: 1 1; \ 9 fixed: 1 1; \
@@ -13,32 +12,33 @@
13 rel2.relative: 1.0 1.0; \ 12 rel2.relative: 1.0 1.0; \
14 rel2.to: "separator"#_pos; \ 13 rel2.to: "separator"#_pos; \
15 } \ 14 } \
16 description { state: "enable" 0.0; \ 15 desc { "enable"; \
17 inherit: "default" 0.0; \ 16 inherit: "default"; \
18 visible: 1; \ 17 vis; \
19 min: 8 10; \ 18 min: 8 10; \
20 } \ 19 } \
21 } \ 20 } \
22 programs{ \ 21 programs{ \
23 program { name: "field_"#_pos"enabled"; \ 22 program { "field_"#_pos"enabled"; \
24 signal: "field"#_pos",enable"; source: "elm"; \ 23 signal: "field"#_pos",enable"; \
25 action: STATE_SET "enable" 0.0; \ 24 source: "elm"; \
25 action: STATE_SET "enable"; \
26 target: "field"#_pos; \ 26 target: "field"#_pos; \
27 } \ 27 } \
28 program { name: "field_"#_pos"disabled"; \ 28 program { "field_"#_pos"disabled"; \
29 signal: "field"#_pos",disable"; source: "elm"; \ 29 signal: "field"#_pos",disable"; \
30 action: STATE_SET "default" 0.0; \ 30 source: "elm"; \
31 action: STATE_SET "default"; \
31 target: "field"#_pos; \ 32 target: "field"#_pos; \
32 } \ 33 } \
33 } 34 }
34#define DATETIME_SEPARATOR(_pos, _after) \ 35#define DATETIME_SEPARATOR(_pos, _after) \
35 part { \ 36 text { "separator"#_pos; \
36 name: "separator"#_pos; type: TEXT; \ 37 scale; \
37 scale: 1; \
38 effect: SHADOW BOTTOM; \ 38 effect: SHADOW BOTTOM; \
39 clip_to: "disclip"; \ 39 clip_to: "disclip"; \
40 description { state: "default" 0.0; \ 40 desc { "default"; \
41 visible: 0; \ 41 hid; \
42 min: 0 0; \ 42 min: 0 0; \
43 align: 0.0 0.5; \ 43 align: 0.0 0.5; \
44 fixed: 1 0; \ 44 fixed: 1 0; \
@@ -59,19 +59,18 @@
59 text_class: "datetime_separator_text"; \ 59 text_class: "datetime_separator_text"; \
60 } \ 60 } \
61 } \ 61 } \
62 description { state: "enable" 0.0; \ 62 desc { "enable"; \
63 inherit: "default" 0.0; \ 63 inherit: "default"; \
64 visible: 1; \ 64 vis; \
65 min: 8 10; \ 65 min: 8 10; \
66 } \ 66 } \
67 } \ 67 } \
68 part { \ 68 text { "separator"#_pos"d"; \
69 name: "separator"#_pos"d"; type: TEXT; \ 69 scale; \
70 scale: 1; \
71 effect: SHADOW BOTTOM; \ 70 effect: SHADOW BOTTOM; \
72 clip_to: "disclip2"; \ 71 clip_to: "disclip2"; \
73 description { state: "default" 0.0; \ 72 desc { "default"; \
74 visible: 0; \ 73 hid; \
75 rel1.to: "separator"#_pos; \ 74 rel1.to: "separator"#_pos; \
76 rel2.to: "separator"#_pos; \ 75 rel2.to: "separator"#_pos; \
77 color_class: "datetime_separator_text_disabled"; \ 76 color_class: "datetime_separator_text_disabled"; \
@@ -81,21 +80,23 @@
81 text_class: "datetime_separator_text_disabled"; \ 80 text_class: "datetime_separator_text_disabled"; \
82 } \ 81 } \
83 } \ 82 } \
84 description { state: "enable" 0.0; \ 83 desc { "enable"; \
85 inherit: "default" 0.0; \ 84 inherit: "default"; \
86 visible: 1; \ 85 vis; \
87 } \ 86 } \
88 } \ 87 } \
89 programs { \ 88 programs { \
90 program { \ 89 program { \
91 signal: "field"#_after",enable"; source: "elm"; \ 90 signal: "field"#_after",enable"; \
92 action: STATE_SET "enable" 0.0; \ 91 source: "elm"; \
92 action: STATE_SET "enable"; \
93 target: "separator"#_pos; \ 93 target: "separator"#_pos; \
94 target: "separator"#_pos"d"; \ 94 target: "separator"#_pos"d"; \
95 } \ 95 } \
96 program { \ 96 program { \
97 signal: "field"#_after",disable"; source: "elm"; \ 97 signal: "field"#_after",disable"; \
98 action: STATE_SET "default" 0.0; \ 98 source: "elm"; \
99 action: STATE_SET "default"; \
99 target: "separator"#_pos; \ 100 target: "separator"#_pos; \
100 target: "separator"#_pos"d"; \ 101 target: "separator"#_pos"d"; \
101 } \ 102 } \
@@ -103,43 +104,43 @@
103 104
104group { "efl/uiclock"; 105group { "efl/uiclock";
105 parts { 106 parts {
106 part { name: "bg"; type: RECT; 107 rect { "bg";
107 description { state: "default" 0.0; 108 desc { "default";
108 color_class: "datetime_bg"; 109 color_class: "datetime_bg";
109 } 110 }
110 } 111 }
111 part { name: "clip"; type: RECT; 112 rect { "clip";
112 description { state: "default" 0.0; 113 desc { "default";
113 rel1.to: "separator0"; 114 rel1.to: "separator0";
114 rel2.to: "separator7"; 115 rel2.to: "separator7";
115 } 116 }
116 } 117 }
117 part { name: "disclip"; type: RECT; 118 rect { "disclip";
118 clip_to: "clip"; 119 clip_to: "clip";
119 description { state: "default" 0.0; 120 desc { "default";
120 rel1.to: "separator0"; 121 rel1.to: "separator0";
121 rel2.to: "separator7"; 122 rel2.to: "separator7";
122 } 123 }
123 description { state: "disabled" 0.0; 124 desc { "disabled";
124 inherit: "default" 0.0; 125 inherit: "default";
125 visible: 0; 126 hid;
126 } 127 }
127 } 128 }
128 part { name: "disclip2"; type: RECT; 129 rect { "disclip2";;
129 clip_to: "clip"; 130 clip_to: "clip";
130 description { state: "default" 0.0; 131 desc { "default";
131 rel1.to: "separator0"; 132 rel1.to: "separator0";
132 rel2.to: "separator7"; 133 rel2.to: "separator7";
133 visible: 0; 134 hid;
134 } 135 }
135 description { state: "disabled" 0.0; 136 desc { "disabled";
136 inherit: "default" 0.0; 137 inherit: "default";
137 visible: 1; 138 vis;
138 } 139 }
139 } 140 }
140 part { name: "separator0"; type: SPACER; 141 spacer { "separator0";;
141 scale: 1; 142 scale;
142 description { state: "default" 0.0; 143 desc { "default";
143 min: 8 10; 144 min: 8 10;
144 align: 0.0 0.5; 145 align: 0.0 0.5;
145 fixed: 1 0; 146 fixed: 1 0;
@@ -162,42 +163,45 @@ group { "efl/uiclock";
162 DATETIME_SEPARATOR(7,6) 163 DATETIME_SEPARATOR(7,6)
163 DATETIME_FIELD(7) 164 DATETIME_FIELD(7)
164 DATETIME_SEPARATOR(8,7) 165 DATETIME_SEPARATOR(8,7)
165 part { name: "separator9"; type: SPACER; 166 spacer { "separator9";;
166 description { state: "default" 0.0; 167 desc { "default";
167 rel1.to: "separator7"; 168 rel1.to: "separator7";
168 rel1.relative: 1.0 0.0; 169 rel1.relative: 1.0 0.0;
169 min: 8 10; 170 min: 8 10;
170 } 171 }
171 } 172 }
172 part { name: "discover"; type: RECT; 173 rect { "discover";;
173 description { state: "default" 0.0; 174 desc { "default";
174 rel1.to: "separator0"; 175 rel1.to: "separator0";
175 rel2.to: "separator7"; 176 rel2.to: "separator7";
176 visible: 0; 177 hid;
177 color: 0 0 0 0; 178 color: 0 0 0 0;
178 } 179 }
179 description { state: "disabled" 0.0; 180 desc { "disabled";
180 inherit: "default" 0.0; 181 inherit: "default";
181 visible: 1; 182 vis;
182 } 183 }
183 } 184 }
184 part { name: "elm.access"; type: RECT; repeat_events: 1; 185 rect { "elm.access";
185 description { state: "default" 0.0; 186 repeat;
187 desc { "default";
186 color: 0 0 0 0; 188 color: 0 0 0 0;
187 } 189 }
188 } 190 }
189 } 191 }
190 programs { 192 programs {
191 program { 193 program {
192 signal: "elm,state,disabled"; source: "elm"; 194 signal: "elm,state,disabled";
193 action: STATE_SET "disabled" 0.0; 195 source: "elm";
196 action: STATE_SET "disabled";
194 target: "disclip"; 197 target: "disclip";
195 target: "disclip2"; 198 target: "disclip2";
196 target: "discover"; 199 target: "discover";
197 } 200 }
198 program { 201 program {
199 signal: "elm,state,enabled"; source: "elm"; 202 signal: "elm,state,enabled";
200 action: STATE_SET "default" 0.0; 203 source: "elm";
204 action: STATE_SET "default";
201 target: "disclip"; 205 target: "disclip";
202 target: "disclip2"; 206 target: "disclip2";
203 target: "discover"; 207 target: "discover";