aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/elm/datetime.edc
blob: d405cc91cde7fa3b8ae462c06a1a256d1ec169a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#define DATETIME_FIELD(_pos) \
   part { \
      name: "field"#_pos; type: SWALLOW; \
      scale: 1; \
      description { state: "default" 0.0; \
         visible: 0; \
         min: 0 0; \
         align: 0.0 0.5; \
         fixed: 1 0; \
         rel1.relative: 1.0 0.0; \
         rel1.to: "separator"#_pos; \
         rel2.relative: 1.0 1.0; \
         rel2.to: "separator"#_pos; \
      } \
      description { state: "enable" 0.0; \
         inherit: "default" 0.0; \
         visible: 1; \
         min: 8 10; \
      } \
   } \
   programs{ \
      program { name: "field_"#_pos"enabled"; \
         signal: "field"#_pos",enable"; source: "elm"; \
         action: STATE_SET "enable" 0.0; \
         target: "field"#_pos; \
      } \
      program { name: "field_"#_pos"disabled"; \
         signal: "field"#_pos",disable"; source: "elm"; \
         action: STATE_SET "default" 0.0; \
         target: "field"#_pos; \
      } \
    }
#define DATETIME_SEPARATOR(_pos, _after) \
   part { \
      name: "separator"#_pos; type: TEXT; \
      scale: 1; \
      effect: SHADOW BOTTOM; \
      clip_to: "disclip"; \
      description { state: "default" 0.0; \
         visible: 0; \
         min: 0 0; \
         align: 0.0 0.5; \
         fixed: 1 0; \
         rel1 { \
            relative: 1.0 0.0; \
            to: "field"#_after; \
         } \
         rel2 { \
            relative: 1.0 1.0; \
            to: "field"#_after; \
         } \
         color: 255 255 255 255; \
         color3: 0 0 0 128; \
         color_class: "datetime_text"; \
         text { \
            font: "Sans"; size: 10; \
            min: 1 0; \
            align: 0.5 0.5; \
            text_class: "datetime_text"; \
         } \
      } \
      description { state: "enable" 0.0; \
         inherit: "default" 0.0; \
         visible: 1; \
         min: 8 10; \
      } \
   } \
   part { \
      name: "separator"#_pos"d"; type: TEXT; \
      scale: 1; \
      effect: SHADOW BOTTOM; \
      clip_to: "disclip2"; \
      description { state: "default" 0.0; \
         visible: 0; \
         rel1.to: "separator"#_pos; \
         rel2.to: "separator"#_pos; \
         color: 21 21 21 255; \
         color3: 255 255 255 25; \
         color_class: "datetime_text"; \
         text { \
            text_source: "separator"#_pos; \
            font: "Sans"; size: 10; \
            text_class: "datetime_text"; \
         } \
      } \
      description { state: "enable" 0.0; \
         inherit: "default" 0.0; \
         visible: 1; \
      } \
   } \
   programs { \
      program { \
         signal: "field"#_after",enable"; source: "elm"; \
         action: STATE_SET "enable" 0.0; \
         target: "separator"#_pos; \
         target: "separator"#_pos"d"; \
      } \
      program { \
         signal: "field"#_after",disable"; source: "elm"; \
         action: STATE_SET "default" 0.0; \
         target: "separator"#_pos; \
         target: "separator"#_pos"d"; \
      } \
   }
group { name: "elm/datetime/base/default";
   parts {
      part { name: "disclip"; type: RECT;
         description { state: "default" 0.0;
            rel1.to: "separator0";
            rel2.to: "separator7";
         }
         description { state: "disabled" 0.0;
            inherit: "default" 0.0;
            visible: 0;
         }
      }
      part { name: "disclip2"; type: RECT;
         description { state: "default" 0.0;
            rel1.to: "separator0";
            rel2.to: "separator7";
            visible: 0;
         }
         description { state: "disabled" 0.0;
            inherit: "default" 0.0;
            visible: 1;
         }
      }
      part { name: "separator0"; type: SPACER;
         scale: 1;
         description { state: "default" 0.0;
            min: 8 10;
            align: 0.0 0.5;
            fixed: 1 0;
            rel2.relative: 0.0 1.0;
         }
      }
      DATETIME_FIELD(0)
      DATETIME_SEPARATOR(1,0)
      DATETIME_FIELD(1)
      DATETIME_SEPARATOR(2,1)
      DATETIME_FIELD(2)
      DATETIME_SEPARATOR(3,2)
      DATETIME_FIELD(3)
      DATETIME_SEPARATOR(4,3)
      DATETIME_FIELD(4)
      DATETIME_SEPARATOR(5,4)
      DATETIME_FIELD(5)
      DATETIME_SEPARATOR(6,5)
      part { name: "separator7"; type: SPACER;
         description { state: "default" 0.0;
            rel1.to: "separator6";
            rel1.relative: 1.0 0.0;
            min: 8 10;
         }
      }
      part { name: "discover"; type: RECT;
         description { state: "default" 0.0;
            rel1.to: "separator0";
            rel2.to: "separator7";
            visible: 0;
            color: 0 0 0 0;
         }
         description { state: "disabled" 0.0;
            inherit: "default" 0.0;
            visible: 1;
         }
      }
      part { name: "elm.access"; type: RECT; repeat_events: 1;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
      }
   }
   programs {
      program {
         signal: "elm,state,disabled"; source: "elm";
         action: STATE_SET "disabled" 0.0;
         target: "disclip";
         target: "disclip2";
         target: "discover";
      }
      program {
         signal: "elm,state,enabled"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "disclip";
         target: "disclip2";
         target: "discover";
      }
   }
}
#undef DATETIME_SEPARATOR
#undef DATETIME_FIELD