summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2017-12-08 14:51:51 +0900
committerSungtaek Hong <sth253.hong@samsung.com>2017-12-08 16:02:24 +0900
commite29b9e5371923f74b2be0a30d5441ca6948151e3 (patch)
treeac3473f77662c12b2b7452e8eae30cd8983b5d69 /data
parente2dee2c92b6d497217dec542d4d5441892bb29da (diff)
multibuttonentry: Add theme for legacy multibuttonentry.
Summary: I accidentally deleted it. This should be maintained. Reviewers: jpeg, taxi2se Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5615
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/Makefile.am1
-rw-r--r--data/elementary/themes/default.edc1
-rw-r--r--data/elementary/themes/edc/efl/multibuttonentry.edc8
-rw-r--r--data/elementary/themes/edc/elm/multibuttonentry.edc328
4 files changed, 334 insertions, 4 deletions
diff --git a/data/elementary/themes/Makefile.am b/data/elementary/themes/Makefile.am
index 8facbde810..4bc6ec9987 100644
--- a/data/elementary/themes/Makefile.am
+++ b/data/elementary/themes/Makefile.am
@@ -127,6 +127,7 @@ elementary/themes/edc/elm/layout.edc \
127elementary/themes/edc/elm/list.edc \ 127elementary/themes/edc/elm/list.edc \
128elementary/themes/edc/elm/map.edc \ 128elementary/themes/edc/elm/map.edc \
129elementary/themes/edc/elm/menu.edc \ 129elementary/themes/edc/elm/menu.edc \
130elementary/themes/edc/elm/multibuttonentry.edc \
130elementary/themes/edc/elm/naviframe.edc \ 131elementary/themes/edc/elm/naviframe.edc \
131elementary/themes/edc/elm/notify.edc \ 132elementary/themes/edc/elm/notify.edc \
132elementary/themes/edc/elm/panel.edc \ 133elementary/themes/edc/elm/panel.edc \
diff --git a/data/elementary/themes/default.edc b/data/elementary/themes/default.edc
index f33b9602b3..1bbd492217 100644
--- a/data/elementary/themes/default.edc
+++ b/data/elementary/themes/default.edc
@@ -45,6 +45,7 @@ collections {
45#include "edc/elm/slideshow.edc" 45#include "edc/elm/slideshow.edc"
46#include "edc/elm/diskselector.edc" 46#include "edc/elm/diskselector.edc"
47#include "edc/elm/ctxpopup.edc" 47#include "edc/elm/ctxpopup.edc"
48#include "edc/elm/multibuttonentry.edc"
48#include "edc/elm/dayselector.edc" 49#include "edc/elm/dayselector.edc"
49#include "edc/elm/actionslider.edc" 50#include "edc/elm/actionslider.edc"
50#include "edc/elm/photocam.edc" 51#include "edc/elm/photocam.edc"
diff --git a/data/elementary/themes/edc/efl/multibuttonentry.edc b/data/elementary/themes/edc/efl/multibuttonentry.edc
index f667128c72..5996a6c8a0 100644
--- a/data/elementary/themes/edc/efl/multibuttonentry.edc
+++ b/data/elementary/themes/edc/efl/multibuttonentry.edc
@@ -70,7 +70,7 @@ group { "efl/multibuttonentry/btn";
70 images.image: "sym_close_dark_selected.png" COMP; 70 images.image: "sym_close_dark_selected.png" COMP;
71 images.image: "win_glow.png" COMP; 71 images.image: "win_glow.png" COMP;
72 styles { 72 styles {
73 style { name: "multibuttonentry_textblock_style"; 73 style { name: "efl_multibuttonentry_textblock_style";
74 base: "font="FN" align=0.5 font_size=10 color=#ffffffff style=shadow,bottom shadow_color=#00000080 text_class=multibuttonentry_item ellipsis=1.0"; 74 base: "font="FN" align=0.5 font_size=10 color=#ffffffff style=shadow,bottom shadow_color=#00000080 text_class=multibuttonentry_item ellipsis=1.0";
75 tag: "br" "\n"; 75 tag: "br" "\n";
76 tag: "ps" "ps"; 76 tag: "ps" "ps";
@@ -166,7 +166,7 @@ group { "efl/multibuttonentry/btn";
166 scale; 166 scale;
167 desc { "default"; 167 desc { "default";
168 color_class: "multibuttonentry_item_text"; 168 color_class: "multibuttonentry_item_text";
169 text { style: "multibuttonentry_textblock_style"; 169 text { style: "efl_multibuttonentry_textblock_style";
170 min: 1 1; 170 min: 1 1;
171 ellipsis: -1; 171 ellipsis: -1;
172 text_class: "multibuttonentry_item_text"; 172 text_class: "multibuttonentry_item_text";
@@ -185,7 +185,7 @@ group { "efl/multibuttonentry/btn";
185 scale; 185 scale;
186 desc { "default"; 186 desc { "default";
187 color_class: "multibuttonentry_item_text"; 187 color_class: "multibuttonentry_item_text";
188 text { style: "multibuttonentry_textblock_style"; 188 text { style: "efl_multibuttonentry_textblock_style";
189 text_source: "elm.btn.text"; 189 text_source: "elm.btn.text";
190 min: 0 1; 190 min: 0 1;
191 align: 0.0 0.5; 191 align: 0.0 0.5;
@@ -308,7 +308,7 @@ group { "efl/multibuttonentry/btn";
308 308
309group { "efl/multibuttonentry/closedbutton"; 309group { "efl/multibuttonentry/closedbutton";
310 styles { 310 styles {
311 style { name: "textblock_style_multibuttonentry_default"; 311 style { name: "textblock_style_efl_multibuttonentry_default";
312 base: "font="FNBD" font_size=10 text_class=multibuttonentry_closed style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12 wrap=char"; 312 base: "font="FNBD" font_size=10 text_class=multibuttonentry_closed style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12 wrap=char";
313 tag: "br" "\n"; 313 tag: "br" "\n";
314 tag: "ps" "ps"; 314 tag: "ps" "ps";
diff --git a/data/elementary/themes/edc/elm/multibuttonentry.edc b/data/elementary/themes/edc/elm/multibuttonentry.edc
new file mode 100644
index 0000000000..cefb816419
--- /dev/null
+++ b/data/elementary/themes/edc/elm/multibuttonentry.edc
@@ -0,0 +1,328 @@
1group { name: "elm/multibuttonentry/base/default";
2 data.item: "horizontal_pad" 0;
3 data.item: "vertical_pad" 0;
4 data.item: "closed_height" 0;
5 parts {
6 part { name: "bg";
7 type: RECT;
8 scale: 1;
9 description { state: "default" 0.0;
10 color_class: "multibuttonentry_bg";
11 }
12 }
13 part { name: "elm.swallow.background";
14 type: SWALLOW;
15 scale: 1;
16 description { state: "default" 0.0;
17 rel1.to: "bg";
18 rel2.to: "bg";
19 }
20 }
21 part { name: "box.swallow"; type: SWALLOW;
22 description { state: "default" 0.0;
23 rel1.to: "bg";
24 rel2.to: "bg";
25 }
26 }
27 }
28}
29
30group { name: "elm/multibuttonentry/label/default";
31 parts {
32 part { name: "elm.text"; type: TEXT; mouse_events: 0;
33 effect: GLOW;
34 scale: 1;
35 description { state: "default" 0.0;
36 color: FN_COL_HIGHLIGHT;
37 color_class: "multibuttonentry_label";
38 text { font: FNBD; size: 10;
39 min: 1 1;
40 ellipsis: -1;
41 align: 0.5 0.5;
42 text_class: "multibuttonentry_label";
43 }
44 rel1.offset: 2 2;
45 rel2.offset: -5 -5;
46 }
47 }
48 }
49}
50
51group { name: "elm/multibuttonentry/guidetext/default";
52 parts {
53 part { name: "elm.text"; type: TEXT;
54 scale: 1;
55 effect: SHADOW BOTTOM;
56 description { state: "default" 0.0;
57 rel1.offset: 2 2;
58 rel2.offset: -4 -4;
59 color: FN_COL_DISABLE;
60 text { font: FNBD; size: 10;
61 min: 0 1;
62 align: 0.0 0.5;
63 }
64 }
65 }
66 }
67}
68
69group { name: "elm/multibuttonentry/btn/default";
70 images.image: "button_normal.png" COMP;
71 images.image: "button_clicked.png" COMP;
72 images.image: "sym_close_dark_normal.png" COMP;
73 images.image: "sym_close_dark_selected.png" COMP;
74 images.image: "win_glow.png" COMP;
75 styles {
76 style { name: "multibuttonentry_textblock_style";
77 base: "font="FN" align=0.5 font_size=10 color=#ffffffff style=shadow,bottom shadow_color=#00000080 text_class=multibuttonentry_item ellipsis=1.0";
78 tag: "br" "\n";
79 tag: "ps" "ps";
80 tag: "hilight" "+ font="FNBD;
81 tag: "b" "+ font="FNBD;
82 tag: "tab" "\t";
83 }
84 }
85
86 script {
87 public disabled = 0;
88 }
89
90 parts {
91 part { name: "bg"; type: RECT;
92 description { state: "default" 0.0;
93 color_class: "multibuttonentry_item_bg";
94 }
95 description { state: "pressed" 0.0;
96 color_class: "multibuttonentry_item_bg_selected";
97 }
98 }
99 part { name: "base";
100 description { state: "default" 0.0;
101 image.normal: "button_normal.png";
102 image.border: 4 4 3 5;
103 image.middle: SOLID;
104 rel1.offset: -1 0;
105 rel2.offset: 0 1;
106 fill.smooth: 0;
107 }
108 description { state: "pressed" 0.0;
109 inherit: "default" 0.0;
110 image.normal: "button_clicked.png";
111 image.border: 5 5 4 6;
112 }
113 }
114 part { name: "glow"; mouse_events: 0;
115 description { state: "default" 0.0;
116 image.normal: "win_glow.png";
117 image.border: 9 9 9 9;
118 image.middle: 0;
119 rel1.offset: -2 -3;
120 rel1.to: "base";
121 rel2.offset: 1 0;
122 rel2.to: "base";
123 fill.smooth: 0;
124 color: 255 255 255 0;
125 visible: 0;
126 }
127 description { state: "focused" 0.0;
128 inherit: "default" 0.0;
129 color: 255 255 255 255;
130 visible: 1;
131 }
132 description { state: "unfocused" 0.0;
133 inherit: "default" 0.0;
134 }
135 }
136 part { name: "close"; mouse_events: 0;
137 description { state: "default" 0.0;
138 image.normal: "sym_close_dark_normal.png";
139 rel1.to: "del";
140 rel2.to: "del";
141 min: 15 15;
142 max: 15 15;
143 fixed: 1 1;
144 }
145 description { state: "clicked" 0.0;
146 inherit: "default" 0.0;
147 image.normal: "sym_close_dark_selected.png";
148 }
149 }
150 part { name: "del"; type: RECT;
151 scale: 1;
152 description { state: "default" 0.0;
153 fixed: 1 0;
154 min: 4 4;
155 align: 1.0 0.5;
156 aspect: 1.0 1.0; aspect_preference: VERTICAL;
157 rel1.relative: 1.0 0.0;
158 rel1.to: "base";
159 rel1.offset: -6 5;
160 rel2.offset: -6 -7;
161 rel2.to: "base";
162 color: 0 0 0 0;
163 }
164 }
165 part { name: "elm.btn.text"; type: TEXTBLOCK; mouse_events: 0;
166 scale: 1;
167 description { state: "default" 0.0;
168 color_class: "multibuttonentry_item_text";
169 text { style: "multibuttonentry_textblock_style";
170 min: 1 1;
171 ellipsis: -1;
172 text_class: "multibuttonentry_item_text";
173 }
174 visible: 0;
175 rel1.offset: 5 5;
176 rel1.to: "base";
177 rel2.to_x: "del";
178 rel2.to_y: "base";
179 rel2.relative: 0.0 1.0;
180 rel2.offset: -3 -7;
181 }
182 }
183 part { name: "text"; type: TEXTBLOCK; mouse_events: 0;
184 scale: 1;
185 description { state: "default" 0.0;
186 color_class: "multibuttonentry_item_text";
187 text { style: "multibuttonentry_textblock_style";
188 text_source: "elm.btn.text";
189 min: 0 1;
190 align: 0.0 0.5;
191 text_class: "multibuttonentry_item_text";
192 }
193 align: 0.0 0.5;
194 rel1.offset: 5 5;
195 rel1.to: "base";
196 rel2.to_x: "del";
197 rel2.to_y: "base";
198 rel2.relative: 0.0 1.0;
199 rel2.offset: -3 -7;
200 }
201 description { state: "pressed" 0.0;
202 inherit: "default";
203 color_class: "multibuttonentry_item_text_pressed";
204 text {
205 text_class: "multibuttonentry_item_text_pressed";
206 }
207 }
208 description { state: "disabled" 0.0;
209 inherit: "default";
210 color_class: "multibuttonentry_item_text_disabled";
211 text {
212 text_class: "multibuttonentry_item_text_disabled";
213 }
214 }
215 }
216 }
217 programs {
218 program {
219 signal: "mouse,clicked,1"; source: "base";
220 script {
221 if (get_int(disabled) == 0) {
222 emit("clicked", "");
223 }
224 }
225 }
226 program {
227 signal: "elm,state,default"; source: "elm";
228 action: STATE_SET "default" 0.0;
229 target: "glow";
230 }
231 program {
232 signal: "elm,state,focused"; source: "elm";
233 action: STATE_SET "focused" 0.0;
234 target: "glow";
235 }
236 program {
237 signal: "elm,state,enabled"; source: "elm";
238 script {
239 set_state(PART:"text", "default", 0.0);
240 set_int(disabled , 0);
241 }
242 }
243 program {
244 signal: "elm,state,disabled"; source: "elm";
245 script {
246 new st[31];
247 new Float: vl;
248 get_state(PART:"glow", st, 30, vl);
249 if (!strcmp(st, "focused"))
250 set_state(PART:"glow", "default", 0.0);
251 set_state(PART:"text", "disabled", 0.0);
252 set_int(disabled , 1);
253 }
254 }
255 program {
256 signal: "elm,state,unfocused"; source: "elm";
257 action: STATE_SET "unfocused" 0.0;
258 target: "glow";
259 }
260 program {
261 signal: "mouse,down,1"; source: "base";
262 script {
263 if (get_int(disabled) == 0) {
264 set_state(PART:"base", "pressed", 0.0);
265 set_state(PART:"bg", "pressed", 0.0);
266 set_state(PART:"text", "pressed", 0.0);
267 }
268 }
269 }
270 program {
271 signal: "mouse,up,1"; source: "base";
272 script {
273 if (get_int(disabled) == 0) {
274 set_state(PART:"base", "default", 0.0);
275 set_state(PART:"bg", "default", 0.0);
276 set_state(PART:"text", "default", 0.0);
277 }
278 }
279 }
280 program {
281 signal: "mouse,clicked,1"; source: "del";
282 action: SIGNAL_EMIT "elm,deleted" "elm";
283 }
284 program {
285 signal: "mouse,down,1"; source: "del";
286 action: STATE_SET "clicked" 0.0;
287 target: "close";
288 }
289 program {
290 signal: "mouse,up,1"; source: "del";
291 action: STATE_SET "default" 0.0;
292 target: "close";
293 }
294 }
295}
296
297group { name: "elm/multibuttonentry/closedbutton/default";
298 styles {
299 style { name: "textblock_style_multibuttonentry_default";
300 base: "font="FNBD" font_size=10 text_class=multibuttonentry_closed style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12 wrap=char";
301 tag: "br" "\n";
302 tag: "ps" "ps";
303 tag: "hilight" "+ font="FNBD;
304 tag: "b" "+ font="FNBD;
305 tag: "tab" "\t";
306 }
307 }
308 parts {
309 part { name: "bg"; type: RECT;
310 description { state: "default" 0.0;
311 color: 0 0 0 0;
312 }
313 }
314 part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0;
315 scale: 1;
316 description { state: "default" 0.0;
317 rel1.offset: 2 2;
318 rel1.to: "bg";
319 rel2.offset: -3 -3;
320 rel2.to: "bg";
321 text { style: "textblock_style_multibuttonentry_default";
322 min: 1 1;
323 ellipsis: -1;
324 }
325 }
326 }
327 }
328}