summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-07-06 03:03:21 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-07-06 03:03:21 +0200
commitfa942045164f88589028fa1fa2adefa2390f7fab (patch)
tree48b43028a31cc1a321cce51d6719d66eeb663dd6
parentc306385032cc04b52a2f879ba1310cd4ccc415e6 (diff)
use group inheritence in theme, saves 59 lines
-rw-r--r--egraph.edc61
1 files changed, 2 insertions, 59 deletions
diff --git a/egraph.edc b/egraph.edc
index 399442a..24c5ce4 100644
--- a/egraph.edc
+++ b/egraph.edc
@@ -76,22 +76,13 @@ collections {
76 } 76 }
77 group { 77 group {
78 name: "vertice_group"; 78 name: "vertice_group";
79 max: 700 700; 79 inherit: "vertice_normal";
80 min: 700 700;
81 images {
82 image: "data/vertice.png" COMP;
83 }
84 parts { 80 parts {
85 part { 81 part {
86 name: "image"; 82 name: "image";
87 type: IMAGE; 83 type: IMAGE;
88 description { 84 description {
89 state: "default" 0.0; 85 state: "default" 0.0;
90 max: 15 15;
91 min: 15 15;
92 image{
93 normal: "data/vertice.png";
94 }
95 rel1.relative: 0.0 0.0; 86 rel1.relative: 0.0 0.0;
96 rel2.relative: 1.0 1.0; 87 rel2.relative: 1.0 1.0;
97 color: 160 120 40 70; 88 color: 160 120 40 70;
@@ -107,19 +98,7 @@ collections {
107 type: TEXT; 98 type: TEXT;
108 description { 99 description {
109 state: "default" 0.0; 100 state: "default" 0.0;
110 max: 50 8;
111 fixed: 1 1;
112 color: 160 120 40 70; /* yellow low */ 101 color: 160 120 40 70; /* yellow low */
113 text {
114 font: "vera";
115 size: 10;
116 min: 1 1;
117 }
118 rel1.to: "image";
119 rel1.relative: 0.5 1.0;
120 rel2.to: "image";
121 rel2.relative: 0.5 1.0;
122 rel2.offset: 0 8;
123 } 102 }
124 description { 103 description {
125 state: "active" 1.0; 104 state: "active" 1.0;
@@ -128,22 +107,6 @@ collections {
128 } 107 }
129 } 108 }
130 } 109 }
131 programs {
132 program {
133 name: "state_active";
134 signal: "become_active";
135 action: STATE_SET "active" 0.0;
136 target: "image";
137 transition: DECELERATE 0.5;
138 }
139 program {
140 name: "state_inactive";
141 signal: "become_inactive";
142 action: STATE_SET "default" 0.0;
143 target: "image";
144 transition: DECELERATE 0.5;
145 }
146 }
147 } 110 }
148 group { 111 group {
149 name: "edge_normal"; 112 name: "edge_normal";
@@ -186,24 +149,13 @@ collections {
186 } 149 }
187 group { 150 group {
188 name: "edge_group"; 151 name: "edge_group";
189 max: 700 700; 152 inherit: "edge_normal";
190 min: 700 700;
191 images {
192 image: "data/edge.png" COMP;
193 }
194 parts { 153 parts {
195 part { 154 part {
196 name: "image"; 155 name: "image";
197 type: IMAGE; 156 type: IMAGE;
198 description { 157 description {
199 state: "default" 0.0; 158 state: "default" 0.0;
200 max: 50 10;
201 min: 50 10;
202 image{
203 normal: "data/edge.png";
204 }
205 rel1.relative: 0.0 0.0;
206 rel2.relative: 1.0 1.0;
207 color: 255 120 40 70; 159 color: 255 120 40 70;
208 } 160 }
209 description { 161 description {
@@ -213,15 +165,6 @@ collections {
213 } 165 }
214 } 166 }
215 } 167 }
216 programs {
217 program {
218 name: "state_active";
219 signal: "become_active";
220 action: STATE_SET "active" 0.0;
221 target: "image";
222 transition: DECELERATE 0.5;
223 }
224 }
225 } 168 }
226 group { 169 group {
227 name: "blob"; 170 name: "blob";