diff options
author | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
commit | 3ad3455551be0d7859ecb02290376206d5e66498 (patch) | |
tree | 497917e12b4d7f458dff9765d9b53f64c4e03fc3 /libraries/elementary/data/themes/widgets/radio.edc | |
parent | Update EFL to latest beta. (diff) | |
download | SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.zip SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.gz SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.bz2 SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.xz |
And actually include new files, plus elementary libraries.
Diffstat (limited to 'libraries/elementary/data/themes/widgets/radio.edc')
-rw-r--r-- | libraries/elementary/data/themes/widgets/radio.edc | 215 |
1 files changed, 215 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/radio.edc b/libraries/elementary/data/themes/widgets/radio.edc new file mode 100644 index 0000000..59f93fd --- /dev/null +++ b/libraries/elementary/data/themes/widgets/radio.edc | |||
@@ -0,0 +1,215 @@ | |||
1 | group { name: "elm/radio/base/default"; | ||
2 | images { | ||
3 | image: "radio_base.png" COMP; | ||
4 | image: "radio.png" COMP; | ||
5 | image: "radio2.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "bg"; | ||
9 | mouse_events: 0; | ||
10 | scale: 1; | ||
11 | description { state: "default" 0.0; | ||
12 | rel1.offset: 1 1; | ||
13 | rel2.relative: 0.0 1.0; | ||
14 | rel2.offset: 1 -2; | ||
15 | align: 0.0 0.5; | ||
16 | min: 16 16; | ||
17 | max: 16 16; | ||
18 | aspect: 1.0 1.0; | ||
19 | aspect_preference: VERTICAL; | ||
20 | image.normal: "radio_base.png"; | ||
21 | } | ||
22 | } | ||
23 | part { name: "radio"; | ||
24 | mouse_events: 0; | ||
25 | scale: 1; | ||
26 | description { state: "default" 0.0; | ||
27 | rel1.to: "bg"; | ||
28 | rel2.to: "bg"; | ||
29 | visible: 0; | ||
30 | image.normal: "radio.png"; | ||
31 | } | ||
32 | description { state: "visible" 0.0; | ||
33 | inherit: "default" 0.0; | ||
34 | visible: 1; | ||
35 | } | ||
36 | } | ||
37 | part { name: "elm.swallow.content"; | ||
38 | type: SWALLOW; | ||
39 | description { state: "default" 0.0; | ||
40 | fixed: 1 0; | ||
41 | visible: 0; | ||
42 | align: 0.0 0.5; | ||
43 | color: 0 0 0 0; | ||
44 | rel1.to_x: "bg"; | ||
45 | rel1.relative: 1.0 0.0; | ||
46 | rel1.offset: 1 1; | ||
47 | rel2.to_x: "bg"; | ||
48 | rel2.relative: 1.0 1.0; | ||
49 | rel2.offset: 2 -2; | ||
50 | } | ||
51 | description { state: "visible" 0.0; | ||
52 | inherit: "default" 0.0; | ||
53 | visible: 1; | ||
54 | color: 255 255 255 255; | ||
55 | aspect: 1.0 1.0; | ||
56 | } | ||
57 | description { state: "disabled" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | color: 128 128 128 128; | ||
60 | } | ||
61 | description { state: "disabled_visible" 0.0; | ||
62 | inherit: "default" 0.0; | ||
63 | color: 128 128 128 128; | ||
64 | visible: 1; | ||
65 | aspect: 1.0 1.0; | ||
66 | } | ||
67 | } | ||
68 | part { name: "elm.text"; | ||
69 | type: TEXT; | ||
70 | mouse_events: 0; | ||
71 | scale: 1; | ||
72 | description { state: "default" 0.0; | ||
73 | visible: 0; | ||
74 | rel1.to_x: "elm.swallow.content"; | ||
75 | rel1.relative: 1.0 0.0; | ||
76 | rel1.offset: 1 1; | ||
77 | rel2.relative: 1.0 1.0; | ||
78 | rel2.offset: -2 -2; | ||
79 | color: 0 0 0 255; | ||
80 | text { | ||
81 | font: "Sans,Edje-Vera"; | ||
82 | size: 10; | ||
83 | min: 0 0; | ||
84 | align: -1.0 0.5; | ||
85 | } | ||
86 | } | ||
87 | description { state: "visible" 0.0; | ||
88 | inherit: "default" 0.0; | ||
89 | visible: 1; | ||
90 | text.min: 1 1; | ||
91 | } | ||
92 | description { state: "disabled" 0.0; | ||
93 | inherit: "default" 0.0; | ||
94 | color: 0 0 0 128; | ||
95 | color3: 0 0 0 0; | ||
96 | } | ||
97 | description { state: "disabled_visible" 0.0; | ||
98 | inherit: "default" 0.0; | ||
99 | color: 0 0 0 128; | ||
100 | color3: 0 0 0 0; | ||
101 | visible: 1; | ||
102 | text.min: 1 1; | ||
103 | } | ||
104 | } | ||
105 | part { name: "events"; | ||
106 | type: RECT; | ||
107 | ignore_flags: ON_HOLD; | ||
108 | description { state: "default" 0.0; | ||
109 | color: 0 0 0 0; | ||
110 | } | ||
111 | } | ||
112 | part { name: "disabler"; | ||
113 | type: RECT; | ||
114 | description { state: "default" 0.0; | ||
115 | color: 0 0 0 0; | ||
116 | visible: 0; | ||
117 | } | ||
118 | description { state: "disabled" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 1; | ||
121 | } | ||
122 | } | ||
123 | } | ||
124 | programs { | ||
125 | program { name: "click"; | ||
126 | signal: "mouse,up,1"; | ||
127 | source: "events"; | ||
128 | action: SIGNAL_EMIT "elm,action,radio,toggle" ""; | ||
129 | } | ||
130 | program { name: "radio_on"; | ||
131 | signal: "elm,state,radio,on"; | ||
132 | source: "elm"; | ||
133 | action: STATE_SET "visible" 0.0; | ||
134 | target: "radio"; | ||
135 | } | ||
136 | program { name: "radio_off"; | ||
137 | signal: "elm,state,radio,off"; | ||
138 | source: "elm"; | ||
139 | action: STATE_SET "default" 0.0; | ||
140 | target: "radio"; | ||
141 | } | ||
142 | program { name: "text_show"; | ||
143 | signal: "elm,state,text,visible"; | ||
144 | source: "elm"; | ||
145 | action: STATE_SET "visible" 0.0; | ||
146 | target: "elm.text"; | ||
147 | } | ||
148 | program { name: "text_hide"; | ||
149 | signal: "elm,state,text,hidden"; | ||
150 | source: "elm"; | ||
151 | action: STATE_SET "default" 0.0; | ||
152 | target: "elm.text"; | ||
153 | } | ||
154 | program { name: "icon_show"; | ||
155 | signal: "elm,state,icon,visible"; | ||
156 | source: "elm"; | ||
157 | action: STATE_SET "visible" 0.0; | ||
158 | target: "elm.swallow.content"; | ||
159 | } | ||
160 | program { name: "icon_hide"; | ||
161 | signal: "elm,state,icon,hidden"; | ||
162 | source: "elm"; | ||
163 | action: STATE_SET "default" 0.0; | ||
164 | target: "elm.swallow.content"; | ||
165 | } | ||
166 | program { name: "disable"; | ||
167 | signal: "elm,state,disabled"; | ||
168 | source: "elm"; | ||
169 | action: STATE_SET "disabled" 0.0; | ||
170 | target: "disabler"; | ||
171 | after: "disable_text"; | ||
172 | } | ||
173 | program { name: "disable_text"; | ||
174 | script { | ||
175 | new st[31]; | ||
176 | new Float:vl; | ||
177 | get_state(PART:"elm.text", st, 30, vl); | ||
178 | if (!strcmp(st, "visible")) | ||
179 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
180 | else | ||
181 | set_state(PART:"elm.text", "disabled", 0.0); | ||
182 | |||
183 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
184 | if (!strcmp(st, "visible")) | ||
185 | set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); | ||
186 | else | ||
187 | set_state(PART:"elm.swallow.content", "disabled", 0.0); | ||
188 | } | ||
189 | } | ||
190 | program { name: "enable"; | ||
191 | signal: "elm,state,enabled"; | ||
192 | source: "elm"; | ||
193 | action: STATE_SET "default" 0.0; | ||
194 | target: "disabler"; | ||
195 | after: "enable_text"; | ||
196 | } | ||
197 | program { name: "enable_text"; | ||
198 | script { | ||
199 | new st[31]; | ||
200 | new Float:vl; | ||
201 | get_state(PART:"elm.text", st, 30, vl); | ||
202 | if (!strcmp(st, "disabled_visible")) | ||
203 | set_state(PART:"elm.text", "visible", 0.0); | ||
204 | else | ||
205 | set_state(PART:"elm.text", "default", 0.0); | ||
206 | |||
207 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
208 | if (!strcmp(st, "visible")) | ||
209 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
210 | else | ||
211 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | } | ||