summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 14:26:15 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 14:54:47 -0400
commit88edbef366e1ddea5fbe271691b68c683c88b92e (patch)
treebc3bae0e3b4685aa1706674e61657a828caf1411
parent9d8e54d3938f7fa50d811dcf44dcb060ffa4eb61 (diff)
shelf: use spacer for content sizing, toggle content visibility
-rw-r--r--data/themes/edc/shelf.edc46
1 files changed, 38 insertions, 8 deletions
diff --git a/data/themes/edc/shelf.edc b/data/themes/edc/shelf.edc
index 13e84c398..f4718ceb1 100644
--- a/data/themes/edc/shelf.edc
+++ b/data/themes/edc/shelf.edc
@@ -76,7 +76,7 @@ group { name: "e/shelf/default/base"; nomouse;
76 FIXED_SIZE(14, 4) 76 FIXED_SIZE(14, 4)
77 } 77 }
78 } 78 }
79 part { name: "e.swallow.content"; type: SWALLOW; mouse; 79 spacer { "sizer";
80 description { state: "default" 0.0; 80 description { state: "default" 0.0;
81 rel1.offset: 1 0; 81 rel1.offset: 1 0;
82 rel1.relative: 1.0 0.0; 82 rel1.relative: 1.0 0.0;
@@ -94,6 +94,16 @@ group { name: "e/shelf/default/base"; nomouse;
94 rel2.relative: 1.0 0.0; 94 rel2.relative: 1.0 0.0;
95 } 95 }
96 } 96 }
97 part { name: "e.swallow.content"; type: SWALLOW; mouse;
98 desc {
99 rel.to: "sizer";
100 link.base: "e,state,visible" "e";
101 }
102 desc { "hidden"; hid;
103 rel.to: "sizer";
104 link.base: "e,state,hidden" "e";
105 }
106 }
97 part { name: "shine"; 107 part { name: "shine";
98 description { state: "default" 0.0; 108 description { state: "default" 0.0;
99 image.normal: "shine.png"; 109 image.normal: "shine.png";
@@ -112,7 +122,7 @@ group { name: "e/shelf/default/base"; nomouse;
112 signal: "e,state,orientation,"_ORIENT; source: "e"; \ 122 signal: "e,state,orientation,"_ORIENT; source: "e"; \
113 action: STATE_SET _STATE 0.0; \ 123 action: STATE_SET _STATE 0.0; \
114 target: "bg"; \ 124 target: "bg"; \
115 target: "e.swallow.content"; \ 125 target: "sizer"; \
116 target: "dots_start"; \ 126 target: "dots_start"; \
117 target: "dots_end"; \ 127 target: "dots_end"; \
118 } 128 }
@@ -160,8 +170,7 @@ group { name: "e/shelf/default/inset"; nomouse;
160 color: 255 255 255 255; 170 color: 255 255 255 255;
161 } 171 }
162 } 172 }
163 part { name: "e.swallow.content"; type: SWALLOW; mouse; 173 spacer { "sizer";
164 clip_to: "clip";
165 description { state: "default" 0.0; 174 description { state: "default" 0.0;
166 rel1.offset: 4 1; 175 rel1.offset: 4 1;
167 rel2.offset: -5 -2; 176 rel2.offset: -5 -2;
@@ -171,6 +180,17 @@ group { name: "e/shelf/default/inset"; nomouse;
171 rel2.offset: -2 -5; 180 rel2.offset: -2 -5;
172 } 181 }
173 } 182 }
183 part { name: "e.swallow.content"; type: SWALLOW; mouse;
184 clip_to: "clip";
185 desc {
186 rel.to: "sizer";
187 link.base: "e,state,visible" "e";
188 }
189 desc { "hidden"; hid;
190 rel.to: "sizer";
191 link.base: "e,state,hidden" "e";
192 }
193 }
174 part { name: "inset"; 194 part { name: "inset";
175 description { state: "default" 0.0; 195 description { state: "default" 0.0;
176 rel1.offset: 2 0; 196 rel1.offset: 2 0;
@@ -198,7 +218,7 @@ group { name: "e/shelf/default/inset"; nomouse;
198 program { \ 218 program { \
199 signal: "e,state,orientation,"_ORIENT; source: "e"; \ 219 signal: "e,state,orientation,"_ORIENT; source: "e"; \
200 action: STATE_SET _STATE 0.0; \ 220 action: STATE_SET _STATE 0.0; \
201 target: "e.swallow.content"; \ 221 target: "sizer"; \
202 target: "inset"; \ 222 target: "inset"; \
203 target: "clip"; \ 223 target: "clip"; \
204 } 224 }
@@ -322,13 +342,23 @@ group { name: "e/shelf/default/plain"; nomouse;
322 color: 255 255 255 255; 342 color: 255 255 255 255;
323 } 343 }
324 } 344 }
325 part { name: "e.swallow.content"; type: SWALLOW; mouse; 345 spacer { "sizer";
326 clip_to: "clip"; 346 desc {
327 description { state: "default" 0.0;
328 rel1.offset: 1 1; 347 rel1.offset: 1 1;
329 rel2.offset: -2 -2; 348 rel2.offset: -2 -2;
330 } 349 }
331 } 350 }
351 part { name: "e.swallow.content"; type: SWALLOW; mouse;
352 clip_to: "clip";
353 desc {
354 rel.to: "sizer";
355 link.base: "e,state,visible" "e";
356 }
357 desc { "hidden"; hid;
358 rel.to: "sizer";
359 link.base: "e,state,hidden" "e";
360 }
361 }
332 rect { "events"; repeat; mouse; 362 rect { "events"; repeat; mouse;
333 desc { color: 0 0 0 0; } 363 desc { color: 0 0 0 0; }
334 } 364 }