Changeset View
Changeset View
Standalone View
Standalone View
data/elementary/themes/edc/elm/calendar.edc
1 | #define CIT_STYLES\ | 1 | #define CIT_STYLES\ | ||
---|---|---|---|---|---|
2 | style { name: "calendar_date_style";\ | 2 | style { name: "calendar_date_style";\ | ||
3 | base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text color_class=calendar_day_text";\ | 3 | base: "font="FN" font_size=10 color=#A0A0A0 style=shadow,bottom align=center text_class=calendar_weekday_text color_class=calendar_weekday_text";\ | ||
4 | }\ | 4 | }\ | ||
5 | style { name: "calendar_date_holiday_style";\ | 5 | style { name: "calendar_date_holiday_style";\ | ||
6 | base: "font="FN" font_size=10 color=#808080 style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text_holiday color_class=calendar_day_text_holiday";\ | 6 | base: "font="FN" font_size=10 color=#808080 style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text_holiday color_class=calendar_day_text_holiday";\ | ||
7 | }\ | 7 | }\ | ||
8 | style { name: "calendar_date_today_style";\ | 8 | style { name: "calendar_date_today_style";\ | ||
9 | base: "font="FN" font_size=10 color=#3399ff style=glow glow_color=#3399ff18 align=center text_class=calendar_day_text_today color_class=calendar_day_text_today";\ | 9 | base: "font="FN" font_size=10 color=#ffffff align=center text_class=calendar_day_text_today";\ | ||
10 | }\ | 10 | }\ | ||
11 | style { name: "calendar_date_disabled_style";\ | 11 | style { name: "calendar_date_weekend_style";\ | ||
12 | base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffffc0 align=center text_class=calendar_day_text_disabled text_class=calendar_day_text_disabled";\ | 12 | base: "font="FN" font_size=10 align=center";\ | ||
13 | }\ | | |||
14 | style { name: "calendar_date_weekend1_style";\ | | |||
15 | base: "font="FN" font_size=10 color=#2020C0 style=shadow,bottom shadow_color=#ffffffc0 align=center text_class=calendar_day_text_weekend1 color_class=calendar_day_text_weekend1";\ | | |||
16 | }\ | | |||
17 | style { name: "calendar_date_weekend2_style";\ | | |||
18 | base: "font="FN" font_size=10 color=#C02020 style=shadow,bottom shadow_color=#ffffffc0 align=center text_class=calendar_day_text_weekend2 color_class=calendar_day_text_weekend2";\ | | |||
19 | }\ | 13 | }\ | ||
20 | 14 | | |||
15 | // This function creates the two buttons to move back and forward in the calendar | ||||
21 | #define CAL_SPIN(_sufix, _text, _relative)\ | 16 | #define CAL_SPIN(_sufix, _text, _relative)\ | ||
22 | part { name: "left_bt"#_sufix; type: SPACER;\ | 17 | part { name: "left_bt"#_sufix; type: SPACER;\ | ||
23 | scale: 1;\ | 18 | scale: 1;\ | ||
24 | description { state: "default" 0.0;\ | 19 | description { state: "default" 0.0;\ | ||
25 | fixed: 1 1;\ | 20 | fixed: 1 1;\ | ||
26 | rel1 { to: #_relative;\ | 21 | rel1 { to: #_relative;\ | ||
27 | offset: 0 0;\ | 22 | offset: 0 0;\ | ||
28 | }\ | 23 | }\ | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 62 | part { name: "elm,calendar,button"#_sufix",right";\ | |||
74 | }\ | 69 | }\ | ||
75 | description { state: "rtl" 0.0;\ | 70 | description { state: "rtl" 0.0;\ | ||
76 | inherit: "default" 0.0;\ | 71 | inherit: "default" 0.0;\ | ||
77 | rel1.to: "left_bt"#_sufix;\ | 72 | rel1.to: "left_bt"#_sufix;\ | ||
78 | rel2.to: "left_bt"#_sufix;\ | 73 | rel2.to: "left_bt"#_sufix;\ | ||
79 | }\ | 74 | }\ | ||
80 | }\ | 75 | }\ | ||
81 | part { name: #_text; type: TEXT; mouse_events: 0;\ | 76 | part { name: #_text; type: TEXT; mouse_events: 0;\ | ||
82 | effect: SHADOW BOTTOM; \ | | |||
83 | scale: 1;\ | 77 | scale: 1;\ | ||
84 | description { state: "default" 0.0;\ | 78 | description { state: "default" 0.0;\ | ||
85 | fixed: 1 1;\ | 79 | fixed: 0 1;\ | ||
86 | rel1 { relative: 1.0 0.0;\ | 80 | rel1 { relative: 1.0 0.0;\ | ||
87 | to: "left_bt"#_sufix;\ | 81 | to: "left_bt"#_sufix;\ | ||
88 | }\ | 82 | }\ | ||
89 | rel2 { relative: 0.0 1.0;\ | 83 | rel2 { relative: 0.0 1.0;\ | ||
90 | to: "right_bt"#_sufix;\ | 84 | to: "right_bt"#_sufix;\ | ||
91 | }\ | 85 | }\ | ||
92 | text { font: FNBD; size: 10;\ | 86 | text { font: FNBD; size: 10;\ | ||
87 | text: "000000000000";\ | ||||
93 | min: 0 1;\ | 88 | min: 0 1;\ | ||
94 | text_class: "calendar_"#_text; \ | 89 | align: 0.0 0.5;\ | ||
90 | text_class: "module_normal"; \ | ||||
95 | }\ | 91 | }\ | ||
96 | color_class: "calendar_"#_text; \ | 92 | color_class: "calendar_"#_text; \ | ||
97 | }\ | 93 | }\ | ||
98 | } | 94 | } | ||
99 | 95 | | |||
96 | // No idea what it does yet | ||||
100 | #define CH(_pos) \ | 97 | #define CH(_pos) \ | ||
101 | part { name: "ch_"#_pos"_base"; type: SPACER; \ | 98 | part { name: "ch_"#_pos"_base"; type: SPACER; \ | ||
102 | description { state: "default" 0.0; \ | 99 | description { state: "default" 0.0; \ | ||
103 | rel1 { \ | 100 | rel1 { \ | ||
104 | relative: (_pos % 7 / 7) 0.0; \ | 101 | relative: (_pos % 7 / 7) 0.0; \ | ||
105 | to: "header"; \ | 102 | to: "header"; \ | ||
106 | } \ | 103 | } \ | ||
107 | rel2 { \ | 104 | rel2 { \ | ||
108 | relative: (_pos % 7 / 7 + 1 / 7) 1.0; \ | 105 | relative: (_pos % 7 / 7 + 1 / 7) 1.0; \ | ||
109 | to: "header"; \ | 106 | to: "header"; \ | ||
110 | } \ | 107 | } \ | ||
111 | } \ | 108 | } \ | ||
112 | } \ | 109 | } \ | ||
113 | part { name: "elm.ch_"#_pos".text"; type: TEXT; mouse_events: 0; \ | 110 | part { name: "elm.ch_"#_pos".text"; type: TEXT; mouse_events: 0; \ | ||
114 | effect: SHADOW BOTTOM; \ | 111 | effect: SHADOW BOTTOM; \ | ||
115 | scale: 1; \ | 112 | scale: 1; \ | ||
116 | clip_to: "ch_"#_pos"_clipper"; \ | 113 | clip_to: "ch_"#_pos"_clipper"; \ | ||
117 | description { state: "default" 0.0; \ | 114 | description { state: "default" 0.0; \ | ||
115 | color_class: "calendar_weekday_text"; \ | ||||
118 | rel1.to: "ch_"#_pos"_base"; \ | 116 | rel1.to: "ch_"#_pos"_base"; \ | ||
119 | rel2.to: "ch_"#_pos"_base"; \ | 117 | rel2.to: "ch_"#_pos"_base"; \ | ||
120 | text { font: FN; size: 8; \ | 118 | text { font: FN; size: 8; \ | ||
119 | text: "WWe"; \ | ||||
121 | min: 1 1; \ | 120 | min: 1 1; \ | ||
122 | ellipsis: -1; \ | 121 | ellipsis: -1; \ | ||
123 | text_class: "calendar_weekday_text"; \ | 122 | align: 0.5 0.5; \ | ||
123 | text_class: "module_small"; \ | ||||
124 | } \ | 124 | } \ | ||
125 | color_class: "calendar_weekday_text"; \ | 125 | } \ | ||
126 | description { state: "weekend" 0.0; \ | ||||
127 | inherit: "default" 0.0; \ | ||||
128 | color_class: "calendar_weekend_text"; \ | ||||
126 | } \ | 129 | } \ | ||
127 | } \ | 130 | } \ | ||
128 | part { name: "ch_"#_pos"_clipper"; type: RECT; \ | 131 | part { name: "ch_"#_pos"_clipper"; type: RECT; \ | ||
129 | description { state: "default" 0.0; \ | 132 | description { state: "default" 0.0; \ | ||
130 | rel1.to: "ch_"#_pos"_base"; \ | 133 | rel1.to: "ch_"#_pos"_base"; \ | ||
131 | rel2.to: "ch_"#_pos"_base"; \ | 134 | rel2.to: "ch_"#_pos"_base"; \ | ||
132 | } \ | 135 | } \ | ||
133 | } | 136 | } | ||
134 | 137 | | |||
138 | #define CH_PROG(_pos) \ | ||||
139 | program { \ | ||||
140 | signal: "calendar,ch_"#_pos",weekday"; source: "elm"; \ | ||||
141 | action: STATE_SET "default" 0.0; \ | ||||
142 | target: "elm.ch_"#_pos".text"; \ | ||||
143 | } \ | ||||
144 | program { \ | ||||
145 | signal: "calendar,ch_"#_pos",weekend"; source: "elm"; \ | ||||
146 | action: STATE_SET "weekend" 0.0; \ | ||||
147 | target: "elm.ch_"#_pos".text"; \ | ||||
148 | } | ||||
149 | | ||||
135 | #define CIT(_pos) \ | 150 | #define CIT(_pos) \ | ||
136 | part { name: "cit_"#_pos"_rect"; type: SPACER; \ | 151 | part { name: "cit_"#_pos"_rect"; type: SPACER; \ | ||
137 | description { state: "default" 0.0; \ | 152 | description { state: "default" 0.0; \ | ||
138 | rel1 { \ | 153 | rel1 { \ | ||
139 | relative: (_pos % 7 / 7) \ | 154 | relative: (_pos % 7 / 7) \ | ||
140 | (_pos / 7 / 6 - _pos % 7 / 7 / 6); \ | 155 | (_pos / 7 / 6 - _pos % 7 / 7 / 6); \ | ||
141 | to: "base"; \ | 156 | to: "base"; \ | ||
157 | offset: 2 2; \ | ||||
142 | } \ | 158 | } \ | ||
143 | rel2 { \ | 159 | rel2 { \ | ||
144 | relative: (_pos % 7 / 7 + 1 / 7) \ | 160 | relative: (_pos % 7 / 7 + 1 / 7) \ | ||
145 | (_pos / 7 / 6 + 1 / 6 - _pos % 7 / 7 / 6); \ | 161 | (_pos / 7 / 6 + 1 / 6 - _pos % 7 / 7 / 6); \ | ||
146 | to: "base"; \ | 162 | to: "base"; \ | ||
163 | offset: -3 -3; \ | ||||
147 | } \ | 164 | } \ | ||
148 | } \ | 165 | } \ | ||
149 | } \ | 166 | } \ | ||
150 | part { name: "cit_"#_pos"_event"; type: RECT; repeat_events: 1; \ | 167 | part { name: "cit_"#_pos"_event"; type: RECT; repeat_events: 1; \ | ||
151 | description { state: "default" 0.0; \ | 168 | description { state: "default" 0.0; \ | ||
152 | rel1.to: "cit_"#_pos"_rect"; \ | 169 | rel1.to: "cit_"#_pos"_rect"; \ | ||
153 | rel2.to: "cit_"#_pos"_rect"; \ | 170 | rel2.to: "cit_"#_pos"_rect"; \ | ||
154 | color: 0 0 0 0; \ | 171 | color: 0 0 0 0; \ | ||
155 | } \ | 172 | } \ | ||
156 | } \ | 173 | } \ | ||
157 | part { name: "cit_"#_pos"_pat"; mouse_events: 0; \ | 174 | part { name: "cit_"#_pos"_pat"; mouse_events: 0; \ | ||
158 | description { state: "default" 0.0; \ | 175 | description { state: "default" 0.0; \ | ||
159 | rel1.to: "cit_"#_pos"_selected"; \ | 176 | rel1.to: "cit_"#_pos"_selected"; \ | ||
160 | rel1.offset: 1 1; \ | 177 | rel1.offset: 1 1; \ | ||
161 | rel2.to: "cit_"#_pos"_selected"; \ | 178 | rel2.to: "cit_"#_pos"_selected"; \ | ||
162 | rel2.offset: -2 -2; \ | 179 | rel2.offset: -2 -2; \ | ||
163 | image.normal: "diagonal_stripes.png"; \ | 180 | image.normal: "blue_rect.png"; \ | ||
164 | color: 51 153 255 25; \ | 181 | color_class: "calendar_selected_text"; \ | ||
165 | TILED_PATTERN(240, 240) \ | | |||
166 | visible: 0; \ | 182 | visible: 0; \ | ||
167 | } \ | 183 | } \ | ||
168 | description { state: "selected" 0.0; \ | 184 | description { state: "selected" 0.0; \ | ||
169 | inherit: "default" 0.0; \ | 185 | inherit: "default" 0.0; \ | ||
170 | visible: 1; \ | 186 | visible: 1; \ | ||
171 | } \ | 187 | } \ | ||
172 | } \ | 188 | } \ | ||
173 | part { name: "cit_"#_pos"_selected"; mouse_events: 0; \ | 189 | part { name: "cit_"#_pos"_selected"; mouse_events: 0; \ | ||
174 | description { state: "default" 0.0; \ | 190 | description { state: "default" 0.0; \ | ||
175 | rel1.to: "cit_"#_pos"_rect"; \ | 191 | rel1.to: "cit_"#_pos"_rect"; \ | ||
176 | rel2.to: "cit_"#_pos"_rect"; \ | 192 | rel2.to: "cit_"#_pos"_rect"; \ | ||
177 | image.normal: "outline.png"; \ | 193 | image.normal: "outline.png"; \ | ||
178 | image.border: 4 4 4 4; \ | 194 | image.border: 4 4 4 4; \ | ||
179 | color: 51 153 255 255; \ | 195 | color_class: "calendar_weekend_text"; \ | ||
180 | visible: 0; \ | 196 | visible: 0; \ | ||
181 | } \ | 197 | } \ | ||
182 | description { state: "selected" 0.0; \ | 198 | description { state: "selected" 0.0; \ | ||
183 | inherit: "default" 0.0; \ | 199 | inherit: "default" 0.0; \ | ||
184 | visible: 1; \ | 200 | visible: 1; \ | ||
185 | } \ | 201 | } \ | ||
186 | } \ | 202 | } \ | ||
187 | part { name: "cit_"#_pos"_selected2"; mouse_events: 0; \ | 203 | part { name: "cit_"#_pos"_selected2"; mouse_events: 0; \ | ||
188 | description { state: "default" 0.0; \ | 204 | description { state: "default" 0.0; \ | ||
189 | rel1.to: "cit_"#_pos"_rect"; \ | 205 | rel1.to: "cit_"#_pos"_rect"; \ | ||
190 | rel2.to: "cit_"#_pos"_rect"; \ | 206 | rel2.to: "cit_"#_pos"_rect"; \ | ||
191 | image.normal: "outline.png"; \ | 207 | image.normal: "outline.png"; \ | ||
192 | image.border: 4 4 4 4; \ | 208 | image.border: 4 4 4 4; \ | ||
193 | color: 51 153 255 255; \ | 209 | color_class: "calendar_weekend_text"; \ | ||
194 | visible: 0; \ | 210 | visible: 0; \ | ||
195 | } \ | 211 | } \ | ||
196 | description { state: "highlighted" 0.0; \ | 212 | description { state: "highlighted" 0.0; \ | ||
197 | inherit: "default" 0.0; \ | 213 | inherit: "default" 0.0; \ | ||
198 | visible: 1; \ | 214 | visible: 1; \ | ||
199 | } \ | 215 | } \ | ||
200 | } \ | 216 | } \ | ||
201 | part { name: "cit_"#_pos"_glow"; mouse_events: 0; \ | 217 | part { name: "cit_"#_pos"_glow"; mouse_events: 0; \ | ||
202 | description { state: "default" 0.0; \ | 218 | description { state: "default" 0.0; \ | ||
203 | rel1.to: "cit_"#_pos"_rect"; \ | 219 | rel1.to: "cit_"#_pos"_rect"; \ | ||
204 | rel2.to: "cit_"#_pos"_rect"; \ | 220 | rel2.to: "cit_"#_pos"_rect"; \ | ||
205 | image.normal: "box_glow.png"; \ | 221 | image.normal: "box_glow.png"; \ | ||
206 | image.border: 12 12 12 12; \ | 222 | image.border: 12 12 12 12; \ | ||
207 | image.middle: 0; \ | 223 | image.middle: 0; \ | ||
208 | fill.smooth: 0; \ | 224 | fill.smooth: 0; \ | ||
209 | visible: 0; \ | 225 | visible: 0; \ | ||
210 | } \ | 226 | } \ | ||
211 | description { state: "focused" 0.0; \ | 227 | description { state: "focused" 0.0; \ | ||
212 | inherit: "default" 0.0; \ | 228 | inherit: "default" 0.0; \ | ||
213 | visible: 1; \ | 229 | visible: 1; \ | ||
214 | } \ | 230 | } \ | ||
215 | } \ | 231 | } \ | ||
232 | part { name: "elm.cit_"#_pos".access"; type: RECT; repeat_events: 1; \ | ||||
233 | description { state: "default" 0.0; \ | ||||
234 | rel1.to: "cit_"#_pos"_event"; \ | ||||
235 | rel2.to: "cit_"#_pos"_event"; \ | ||||
236 | color_class: "calendar_today_background"; \ | ||||
237 | visible: 0; \ | ||||
238 | } \ | ||||
239 | description { state: "today" 0.0; \ | ||||
240 | inherit: "default" 0.0; \ | ||||
241 | visible: 1; \ | ||||
242 | } \ | ||||
243 | } \ | ||||
216 | part { name: "elm.cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \ | 244 | part { name: "elm.cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \ | ||
217 | scale: 1; \ | 245 | scale: 1; \ | ||
218 | description { state: "default" 0.0; \ | 246 | description { state: "default" 0.0; \ | ||
219 | rel1.to: "cit_"#_pos"_rect"; \ | 247 | rel1.to: "elm.cit_"#_pos".access"; \ | ||
220 | rel2.to: "cit_"#_pos"_rect"; \ | 248 | rel2.to: "elm.cit_"#_pos".access"; \ | ||
221 | text.style: "calendar_date_style"; \ | 249 | text.style: "calendar_date_style"; \ | ||
222 | text.min: 1 1; \ | 250 | text.min: 1 1; \ | ||
223 | text.ellipsis: -1; \ | 251 | text.ellipsis: -1; \ | ||
224 | } \ | 252 | } \ | ||
225 | description { state: "holiday" 0.0; \ | 253 | description { state: "holiday" 0.0; \ | ||
226 | inherit: "default" 0.0; \ | 254 | inherit: "default" 0.0; \ | ||
227 | text.style: "calendar_date_holiday_style"; \ | 255 | text.style: "calendar_date_holiday_style"; \ | ||
228 | } \ | 256 | } \ | ||
229 | description { state: "today" 0.0; \ | 257 | description { state: "today" 0.0; \ | ||
230 | inherit: "default" 0.0; \ | 258 | inherit: "default" 0.0; \ | ||
259 | color_class: "calendar_day_text_today"; \ | ||||
231 | text.style: "calendar_date_today_style"; \ | 260 | text.style: "calendar_date_today_style"; \ | ||
232 | } \ | 261 | } \ | ||
233 | description { state: "disabled" 0.0; \ | 262 | description { state: "disabled" 0.0; \ | ||
234 | inherit: "default" 0.0; \ | 263 | inherit: "default" 0.0; \ | ||
235 | text.style: "calendar_date_disabled_style"; \ | 264 | color_class: "calendar_day_text_disabled"; \ | ||
236 | } \ | 265 | } \ | ||
237 | description { state: "weekend/day1" 0.0; \ | 266 | description { state: "weekend" 0.0; \ | ||
238 | inherit: "default" 0.0; \ | 267 | inherit: "default" 0.0; \ | ||
239 | text.style: "calendar_date_weekend1_style"; \ | 268 | color_class: "calendar_day_text_weekend"; \ | ||
240 | } \ | | |||
241 | description { state: "weekend/day2" 0.0; \ | | |||
242 | inherit: "default" 0.0; \ | | |||
243 | text.style: "calendar_date_weekend2_style"; \ | | |||
244 | } \ | 269 | } \ | ||
245 | } \ | 270 | } \ | ||
246 | part { name: "cit_"#_pos"_check"; mouse_events: 0; \ | 271 | part { name: "cit_"#_pos"_check"; mouse_events: 0; \ | ||
247 | scale: 1; \ | 272 | scale: 1; \ | ||
248 | description { state: "default" 0.0; \ | 273 | description { state: "default" 0.0; \ | ||
249 | fixed: 1 1; \ | 274 | fixed: 1 1; \ | ||
250 | rel1 { \ | 275 | rel1 { \ | ||
251 | to: "cit_"#_pos"_rect"; \ | 276 | to: "cit_"#_pos"_rect"; \ | ||
252 | relative: 0.6 0.5; \ | 277 | relative: 0.6 0.5; \ | ||
253 | } \ | 278 | } \ | ||
254 | rel2 { \ | 279 | rel2 { \ | ||
255 | to: "cit_"#_pos"_rect"; \ | 280 | to: "cit_"#_pos"_rect"; \ | ||
256 | relative: 0.6 0.5; \ | 281 | relative: 0.6 0.5; \ | ||
257 | } \ | 282 | } \ | ||
258 | min: 16 16; \ | 283 | min: 16 16; \ | ||
259 | max: 16 16; \ | 284 | max: 16 16; \ | ||
260 | aspect: 1 1; \ | 285 | aspect: 1 1; \ | ||
261 | align: 0.0 1.0;\ | 286 | align: 0.0 1.0;\ | ||
262 | image.normal: "icon_border_remember.png"; \ | 287 | image.normal: "icon_check_flat_1.png"; \ | ||
263 | color_class: "calendar_day_checked"; \ | 288 | color_class: "calendar_day_checked"; \ | ||
264 | visible: 0; \ | 289 | visible: 0; \ | ||
265 | } \ | 290 | } \ | ||
266 | description { state: "visible" 0.0; \ | 291 | description { state: "visible" 0.0; \ | ||
267 | inherit: "default" 0.0; \ | 292 | inherit: "default" 0.0; \ | ||
268 | visible: 1; \ | 293 | visible: 1; \ | ||
269 | } \ | 294 | } \ | ||
270 | } \ | 295 | } \ | ||
271 | part { name: "elm.cit_"#_pos".access"; type: RECT; repeat_events: 1; \ | | |||
272 | description { state: "default" 0.0; \ | | |||
273 | rel1.to: "cit_"#_pos"_event"; \ | | |||
274 | rel2.to: "cit_"#_pos"_event"; \ | | |||
275 | color: 0 0 0 0; \ | | |||
276 | } \ | | |||
277 | } \ | | |||
278 | programs { \ | 296 | programs { \ | ||
279 | program { \ | 297 | program { \ | ||
280 | name: "cit_"#_pos"_go_active"; \ | 298 | name: "cit_"#_pos"_go_active"; \ | ||
281 | signal: "cit_"#_pos",selected"; \ | 299 | signal: "cit_"#_pos",selected"; \ | ||
282 | source: "elm"; \ | 300 | source: "elm"; \ | ||
283 | action: STATE_SET "selected" 0.0; \ | 301 | action: STATE_SET "selected" 0.0; \ | ||
284 | target: "cit_"#_pos"_pat"; \ | 302 | target: "cit_"#_pos"_pat"; \ | ||
285 | target: "cit_"#_pos"_selected"; \ | 303 | target: "cit_"#_pos"_selected"; \ | ||
Show All 25 Lines | 328 | script { \ | |||
311 | set_int(item_focus_enabled, 0); \ | 329 | set_int(item_focus_enabled, 0); \ | ||
312 | set_state(PART:"cit_"#_pos"_glow", "default", 0.0); \ | 330 | set_state(PART:"cit_"#_pos"_glow", "default", 0.0); \ | ||
313 | } \ | 331 | } \ | ||
314 | } \ | 332 | } \ | ||
315 | program { \ | 333 | program { \ | ||
316 | name: "cit_"#_pos"_is_today"; \ | 334 | name: "cit_"#_pos"_is_today"; \ | ||
317 | signal: "cit_"#_pos",today"; \ | 335 | signal: "cit_"#_pos",today"; \ | ||
318 | source: "elm"; \ | 336 | source: "elm"; \ | ||
319 | action: STATE_SET "today" 0.0; \ | 337 | script { \ | ||
320 | target: "elm.cit_"#_pos".text"; \ | 338 | set_int(item_focus_enabled, 0); \ | ||
339 | set_state(PART:"elm.cit_"#_pos".access", "today", 0.0); \ | ||||
340 | set_state(PART:"elm.cit_"#_pos".text", "today", 0.0); \ | ||||
341 | } \ | ||||
321 | } \ | 342 | } \ | ||
322 | program { \ | 343 | program { \ | ||
323 | name: "cit_"#_pos"_not_today"; \ | 344 | name: "cit_"#_pos"_not_today"; \ | ||
324 | signal: "cit_"#_pos",not_today"; \ | 345 | signal: "cit_"#_pos",not_today"; \ | ||
325 | source: "elm"; \ | 346 | source: "elm"; \ | ||
326 | action: STATE_SET "default" 0.0; \ | 347 | action: STATE_SET "default" 0.0; \ | ||
327 | target: "elm.cit_"#_pos".text"; \ | 348 | target: "elm.cit_"#_pos".text"; \ | ||
328 | } \ | 349 | } \ | ||
Show All 35 Lines | 383 | program { \ | |||
364 | signal: "mouse,clicked,1"; \ | 385 | signal: "mouse,clicked,1"; \ | ||
365 | source: "cit_"#_pos"_event"; \ | 386 | source: "cit_"#_pos"_event"; \ | ||
366 | action: SIGNAL_EMIT "elm,action,selected" #_pos; \ | 387 | action: SIGNAL_EMIT "elm,action,selected" #_pos; \ | ||
367 | } \ | 388 | } \ | ||
368 | program { \ | 389 | program { \ | ||
369 | name: "cit_"#_pos"_clear"; \ | 390 | name: "cit_"#_pos"_clear"; \ | ||
370 | signal: "cit_"#_pos",clear"; \ | 391 | signal: "cit_"#_pos",clear"; \ | ||
371 | source: "elm"; \ | 392 | source: "elm"; \ | ||
372 | action: STATE_SET "default" 0.0; \ | 393 | script: { \ | ||
373 | target: "cit_"#_pos"_check"; \ | 394 | set_state(PART:"cit_"#_pos"_check", "default", 0.0); \ | ||
395 | set_state(PART:"elm.cit_"#_pos".access", "default", 0.0); \ | ||||
396 | } \ | ||||
374 | after: "cit_"#_pos"_weekends_clear"; \ | 397 | after: "cit_"#_pos"_weekends_clear"; \ | ||
375 | after: "cit_"#_pos"_holiday_clear"; \ | 398 | after: "cit_"#_pos"_holiday_clear"; \ | ||
376 | } \ | 399 | } \ | ||
377 | program { \ | 400 | program { \ | ||
378 | name: "cit_"#_pos"_weekends_clear"; \ | 401 | name: "cit_"#_pos"_weekends_clear"; \ | ||
379 | script { \ | 402 | script { \ | ||
380 | new st[31]; \ | 403 | new st[31]; \ | ||
381 | new Float:vl; \ | 404 | new Float:vl; \ | ||
382 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | 405 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | ||
383 | if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \ | 406 | if (!strcmp(st, "weekend")) \ | ||
384 | set_state(PART:"elm.cit_"#_pos".text", "default", 0.0); \ | 407 | set_state(PART:"elm.cit_"#_pos".text", "default", 0.0); \ | ||
385 | } \ | 408 | } \ | ||
386 | } \ | 409 | } \ | ||
387 | program { \ | 410 | program { \ | ||
388 | name: "cit_"#_pos"_holiday_clear"; \ | 411 | name: "cit_"#_pos"_holiday_clear"; \ | ||
389 | script { \ | 412 | script { \ | ||
390 | new st[31]; \ | 413 | new st[31]; \ | ||
391 | new Float:vl; \ | 414 | new Float:vl; \ | ||
Show All 17 Lines | 431 | script { \ | |||
409 | new st[31]; \ | 432 | new st[31]; \ | ||
410 | new Float:vl; \ | 433 | new Float:vl; \ | ||
411 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | 434 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | ||
412 | if (strcmp(st, "today")) \ | 435 | if (strcmp(st, "today")) \ | ||
413 | set_state(PART:"elm.cit_"#_pos".text", "holiday", 0.0); \ | 436 | set_state(PART:"elm.cit_"#_pos".text", "holiday", 0.0); \ | ||
414 | } \ | 437 | } \ | ||
415 | } \ | 438 | } \ | ||
416 | program { \ | 439 | program { \ | ||
417 | name: "cit_"#_pos"_weekend/day1"; \ | 440 | name: "cit_"#_pos"_weekend"; \ | ||
418 | signal: "cit_"#_pos",weekend/day1"; \ | 441 | signal: "cit_"#_pos",weekend"; \ | ||
419 | source: "elm"; \ | | |||
420 | script { \ | | |||
421 | new st[31]; \ | | |||
422 | new Float:vl; \ | | |||
423 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | | |||
424 | if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ | | |||
425 | set_state(PART:"elm.cit_"#_pos".text", "weekend/day1", 0.0); \ | | |||
426 | } \ | | |||
427 | } \ | | |||
428 | program { \ | | |||
429 | name: "cit_"#_pos"_weekend/day2"; \ | | |||
430 | signal: "cit_"#_pos",weekend/day2"; \ | | |||
431 | source: "elm"; \ | 442 | source: "elm"; \ | ||
432 | script { \ | 443 | script { \ | ||
433 | new st[31]; \ | 444 | new st[31]; \ | ||
434 | new Float:vl; \ | 445 | new Float:vl; \ | ||
435 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | 446 | get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \ | ||
436 | if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ | 447 | if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ | ||
437 | set_state(PART:"elm.cit_"#_pos".text", "weekend/day2", 0.0); \ | 448 | set_state(PART:"elm.cit_"#_pos".text", "weekend", 0.0); \ | ||
438 | } \ | 449 | } \ | ||
439 | } \ | 450 | } \ | ||
440 | } | 451 | } | ||
441 | 452 | | |||
442 | group { name: "elm/calendar/base/default"; | 453 | group { name: "elm/calendar/base/default"; | ||
443 | images.image: "sym_left_light_normal.png" COMP; | 454 | images.image: "calendar_prev.png" COMP; | ||
444 | images.image: "sym_right_light_normal.png" COMP; | 455 | images.image: "calendar_next.png" COMP; | ||
445 | images.image: "sym_left_glow_normal.png" COMP; | 456 | images.image: "sym_left_glow_normal.png" COMP; | ||
446 | images.image: "sym_right_glow_normal.png" COMP; | 457 | images.image: "sym_right_glow_normal.png" COMP; | ||
447 | images.image: "icon_border_remember.png" COMP; | 458 | images.image: "icon_check_flat_1.png" COMP; | ||
448 | images.image: "outline.png" COMP; | 459 | images.image: "outline.png" COMP; | ||
449 | images.image: "box_glow.png" COMP; | 460 | images.image: "box_glow.png" COMP; | ||
450 | images.image: "diagonal_stripes.png" COMP; | 461 | images.image: "blue_rect.png" COMP; | ||
451 | data.item: "focus_highlight" "on"; | 462 | data.item: "focus_highlight" "on"; | ||
452 | script { | 463 | script { | ||
453 | public rtl; | 464 | public rtl; | ||
454 | public win_focus_enabled; | 465 | public win_focus_enabled; | ||
455 | public item_focus_enabled; | 466 | public item_focus_enabled; | ||
456 | public last_focused_item; | 467 | public last_focused_item; | ||
457 | } | 468 | } | ||
458 | styles { | 469 | styles { | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 472 | parts { | |||
529 | CIT(7) CIT(8) CIT(9) CIT(10) CIT(11) CIT(12) CIT(13) | 540 | CIT(7) CIT(8) CIT(9) CIT(10) CIT(11) CIT(12) CIT(13) | ||
530 | CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20) | 541 | CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20) | ||
531 | CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27) | 542 | CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27) | ||
532 | CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34) | 543 | CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34) | ||
533 | CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41) | 544 | CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41) | ||
534 | 545 | | |||
535 | } | 546 | } | ||
536 | programs { | 547 | programs { | ||
548 | // Either the week starts on Monday (weekend at the end) or un Sunday | ||||
549 | CH_PROG(0) CH_PROG(1) CH_PROG(5) CH_PROG(6) | ||||
537 | program { | 550 | program { | ||
538 | signal: "elm,action,focus_highlight,show"; | 551 | signal: "elm,action,focus_highlight,show"; | ||
539 | source: "elm"; | 552 | source: "elm"; | ||
540 | script { | 553 | script { | ||
541 | set_int(win_focus_enabled, 1); | 554 | set_int(win_focus_enabled, 1); | ||
542 | if (get_int(item_focus_enabled) == 1) { | 555 | if (get_int(item_focus_enabled) == 1) { | ||
543 | new value[32]; | 556 | new value[32]; | ||
544 | snprintf(value, 32, "cit_%d,focused", get_int(last_focused_item)); | 557 | snprintf(value, 32, "cit_%d,focused", get_int(last_focused_item)); | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |