summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/efl/frame.edc
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 17:58:30 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commitc76ec302ca357550e85b04a69fff850040af3369 (patch)
tree5677d01e4233af05f3b1c8449401060108d2fc1b /data/elementary/themes/edc/efl/frame.edc
parent5cf383ee5addab4dc8b65c2bf2aa675c89e94d1b (diff)
themes: frame - remove elm frame inheritance.
Diffstat (limited to 'data/elementary/themes/edc/efl/frame.edc')
-rw-r--r--data/elementary/themes/edc/efl/frame.edc169
1 files changed, 166 insertions, 3 deletions
diff --git a/data/elementary/themes/edc/efl/frame.edc b/data/elementary/themes/edc/efl/frame.edc
index f8b4690..729177a 100644
--- a/data/elementary/themes/edc/efl/frame.edc
+++ b/data/elementary/themes/edc/efl/frame.edc
@@ -1,3 +1,166 @@
1group { "efl/frame"; 1group { name: "efl/frame";
2 inherit: "elm/frame/base/default"; 2 images.image: "shadow_square_tiny.png" COMP;
3} 3 images.image: "vgrad_med_curved.png" COMP;
4 images.image: "bevel_out.png" COMP;
5 images.image: "holes_tiny_vert.png" COMP;
6 parts {
7 part { name: "shadow"; mouse_events: 0;
8 description { state: "default" 0.0;
9 rel1.offset: -1 0;
10 rel2.offset: 0 1;
11 image.normal: "shadow_square_tiny.png";
12 image.border: 6 6 6 6;
13 fill.smooth: 0;
14 }
15 }
16 part { name: "base"; type: RECT;
17 description { state: "default" 0.0;
18 rel1.relative: 0.0 1.0;
19 rel1.offset: 2 0;
20 rel1.to_y: "top";
21 rel2.offset: -3 -3;
22 color: 64 64 64 255;
23 }
24 }
25 part { name: "top";
26 description { state: "default" 0.0;
27 image.normal: "vgrad_med_curved.png";
28 rel1.offset: 2 2;
29 rel2.to_y: "elm.text";
30 rel2.offset: -3 -1;
31 fill.smooth: 0;
32 TILED_HORIZ(120)
33 }
34 }
35 part { name: "edge1";
36 description { state: "default" 0.0;
37 image.normal: "holes_tiny_vert.png";
38 rel1.offset: 4 0;
39 rel1.to_y: "elm.text";
40 rel2.offset: 4 -1;
41 rel2.relative: 0.0 1.0;
42 rel2.to_y: "elm.text";
43 align: 0.0 0.5;
44 FIXED_SIZE(3, 11)
45 }
46 }
47 part { name: "edge2";
48 description { state: "default" 0.0;
49 image.normal: "holes_tiny_vert.png";
50 rel1.offset: -5 0;
51 rel1.to_y: "elm.text";
52 rel1.relative: 1.0 0.0;
53 rel2.offset: -5 -1;
54 rel2.relative: 1.0 1.0;
55 rel2.to_y: "elm.text";
56 align: 1.0 0.5;
57 FIXED_SIZE(3, 11)
58 }
59 }
60 part { name: "elm.text"; type: TEXT;
61 scale: 1;
62 effect: SHADOW BOTTOM;
63 description { state: "default" 0.0;
64 color_class: "frame";
65 rel1.relative: 1.0 0.0;
66 rel1.offset: 1 2;
67 rel1.to_x: "edge1";
68 rel2.relative: 0.0 0.0;
69 rel2.offset: -3 1;
70 rel2.to_x: "edge2";
71 align: 0.0 0.0;
72 color: FN_COL_DISABLE;
73 text { font: FNBD; size: 10;
74 text_class: "frame";
75 align: 0.0 0.0;
76 min: 0 1;
77 }
78 fixed: 0 1;
79 }
80 }
81 part { name: "clip"; type: RECT;
82 description { state: "default" 0.0;
83 rel1.relative: 0.0 1.0;
84 rel1.offset: 5 0;
85 rel1.to_y: "elm.text";
86 rel2.offset: -7 -7;
87 }
88 }
89 part { name: "elm.swallow.content"; type: SWALLOW;
90 clip_to: "clip";
91 description { state: "default" 0.0;
92 align: 0.0 1.0;
93 rel1.relative: 0.0 1.0;
94 rel1.offset: 5 0;
95 rel1.to_y: "elm.text";
96 rel2.offset: -7 -7;
97 }
98 description { state: "collapsed" 0.0;
99 inherit: "default" 0.0;
100 minmul: 1.0 0.0;
101 }
102 }
103 part { name: "bevel"; mouse_events: 0;
104 description { state: "default" 0.0;
105 rel1.offset: 2 2;
106 rel2.offset: -3 -3;
107 image.normal: "bevel_out.png";
108 image.border: 1 1 1 1;
109 image.middle: 0;
110 fill.smooth: 0;
111 }
112 }
113 part { name: "event"; type: RECT; ignore_flags: ON_HOLD;
114 description { state: "default" 0.0;
115 color: 0 0 0 0;
116 rel1.to_y: "elm.text";
117 rel2.to_y: "elm.text";
118 }
119 }
120 }
121 programs {
122 program { name: "collapse";
123 action: STATE_SET "collapsed" 0.0;
124 target: "elm.swallow.content";
125 transition: ACCELERATE 0.3;
126 after: "signal";
127 }
128 program { name: "expand";
129 action: STATE_SET "default" 0.0;
130 target: "elm.swallow.content";
131 transition: DECELERATE 0.3;
132 after: "signal";
133 }
134 program {
135 signal: "mouse,up,1"; source: "event";
136 action: SIGNAL_EMIT "elm,action,click" "elm";
137 }
138 program {
139 signal: "elm,action,toggle"; source: "elm";
140 script {
141 new st[31];
142 new Float:vl;
143 get_state(PART:"elm.swallow.content", st, 30, vl);
144 if (!strcmp(st, "default"))
145 run_program(PROGRAM:"collapse");
146 else
147 run_program(PROGRAM:"expand");
148 }
149 }
150 program {
151 signal: "elm,action,switch"; source: "elm";
152 script {
153 new st[31];
154 new Float:vl;
155 get_state(PART:"elm.swallow.content", st, 30, vl);
156 if (!strcmp(st, "default"))
157 set_state(PART:"elm.swallow.content", "collapsed", 0.0);
158 else
159 set_state(PART:"elm.swallow.content", "default", 0.0);
160 }
161 }
162 program { name: "signal";
163 action: SIGNAL_EMIT "elm,anim,done" "elm";
164 }
165 }
166} \ No newline at end of file