-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTime Table Normal.ini
460 lines (396 loc) · 15.1 KB
/
Time Table Normal.ini
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
[Rainmeter]
Update=30000
ContextTitle="Open settings"
ContextAction=["NotePad" "#@#TimeTable.inc"]
Group= G1 | G2 | G3 | G4 | G5 | G6 | G7 | G8 | G9 | G10
BackgroundMode=2
SolidColor=250,250,250,0
[Metadata]
Name= Time Table
Author=Mid_Hunter
Description= A simple Time Table tracking current subjects for online classes.
Version=2.0
Variant=1
[Variables]
@Include=#@#TimeTable.inc
margin=20
width=(#size#*100)
accent=(#size#*1.1)
headerH=(#size#*30)
blockW=#width#
blockH=(#size#*18)
cblockH=(#size#*15)
buttonW=(#size#*20)
buttonH=(#size#*8)
fontsizeHeader=(#size#*9)
fontsizeBody=(#size#*5.5)
fontsizeIcon=(#size#*5)
right=(#margin#+(#width#-#buttonW#))
bottom=(#margin#+(#headerH#+(#n#*#blockH#)))
block1=(#margin#+(#headerH#))
block2=(#margin#+(#headerH#+(1*#blockH#)))
block3=(#margin#+(#headerH#+(2*#blockH#)))
block4=(#margin#+(#headerH#+(3*#blockH#)))
block5=(#margin#+(#headerH#+(4*#blockH#)))
block6=(#margin#+(#headerH#+(5*#blockH#)))
cblock1=(#block1#+#size#)
cblock2=(#block2#+#size#)
cblock3=(#block3#+#size#)
cblock4=(#block4#+#size#)
cblock5=(#block5#+#size#)
cblock6=(#block6#+#size#)
item1=(#margin#+(#headerH#+(#blockH#/2)))
item2=(#margin#+(#headerH#+(1*#blockH#)+(#blockH#/2)))
item3=(#margin#+(#headerH#+(2*#blockH#)+(#blockH#/2)))
item4=(#margin#+(#headerH#+(3*#blockH#)+(#blockH#/2)))
item5=(#margin#+(#headerH#+(4*#blockH#)+(#blockH#/2)))
item6=(#margin#+(#headerH#+(5*#blockH#)+(#blockH#/2)))
HighlightVal=0
HeadingFont=ElliotSix
IconAlign=(#margin#+(#size#*5))
IconFont=Desyrel
SubAlign=(#margin#+(#size#*28))
SubFont=Desyrel
// M E A S U R E S
/////////////////////////////////////////
; Format =
; %A (Tuesday), %B %#d (January 27)
; %Y (2015), %#I:%M %p (3:22:30 PM)
; %I (12h), %H (24h)
[MeasureTime]
Measure=Time
Format=%#H%M
[MeasureDate]
Measure=Time
Format=%d
[DayNumber]
Measure=Time
Format=%w
[DayNumberModify]
Measure=Calc
Formula=DayNumber+#DayOffset#
[DayModify]
Measure=Calc
Formula=DayNumber+#DayOffset#
Substitute="0":"Sunday","1":"Monday","2":"Tuesday","3":"Wednesday","4":"Thursday","5":"Friday","6":"Saturday"
// G R A P H I C S
/////////////////////////////////////////
;Shape=Rectangle x ,y ,w ,h | Fill Color r,g,b,a | StrokeWidth 0
;------------------------------------------------------------------
[HeaderBG]
Meter=Shape
Shape=Rectangle #margin#,#margin#,#width#,#headerH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,(#headerH#*1.23),#blockW#,#accent# | Fill Color #notemargin# | StrokeWidth 0
Shape3=Rectangle #margin#,(#headerH#*1.3),#blockW#,#accent# | Fill Color #notemargin# | StrokeWidth 0
[FooterBG]
Meter=Shape
Shape=Rectangle #margin#,#bottom#,#width#,#buttonH# | Fill Color #white# | StrokeWidth 0
[ColorBlock1]
Meter=Shape
Group=G1
[ColorBlock2]
Meter=Shape
Group=G2
[ColorBlock3]
Meter=Shape
Group=G3
[ColorBlock4]
Meter=Shape
Group=G4
[ColorBlock5]
Meter=Shape
Group=G5
[ColorBlock6]
Meter=Shape
Group=G6
[SubjectBlock6]
Meter=Shape
Shape=Rectangle #margin#,#block6#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#bottom#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block6#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block6#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G6
[SubjectBlock5]
Meter=Shape
Shape=Rectangle #margin#,#block5#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#block6#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block5#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block5#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G5
[SubjectBlock4]
Meter=Shape
Shape=Rectangle #margin#,#block4#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#block5#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block4#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block4#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G4
[SubjectBlock3]
Meter=Shape
Shape=Rectangle #margin#,#block3#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#block4#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block3#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block3#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G3
[SubjectBlock2]
Meter=Shape
Shape=Rectangle #margin#,#block2#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#block3#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block2#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block2#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G2
[SubjectBlock1]
Meter=Shape
Shape= Rectangle #margin#,#block1#,#blockW#,#blockH# | Fill Color #white# | StrokeWidth 0
Shape2=Rectangle #margin#,#block2#,#blockW#,#accent# | Fill Color #noteline# | StrokeWidth 0
Shape3=Rectangle (#SubAlign#*0.95),#block1#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Shape4=Rectangle (#SubAlign#*0.88),#block1#,#accent#,(#blockH#*1.1) | Fill Color #notemargin# | StrokeWidth 0
Group=G1
[CelloTapeBack]
Meter=Shape
Shape=Rectangle (#margin#*0.5),#margin#,#buttonW#,#buttonH#|Fill Color #tapecolor#|Rotate -40|StrokeWidth 0
LeftMouseUpAction=[!WriteKeyValue Variables DayOffset (#DayOffset#-1) "#@#TimeTable.inc"] [!Refresh]
DynamicVariables=1
[CelloTapeFront]
Meter=Shape
Shape=Rectangle (#right#*1.1),#margin#,#buttonW#,#buttonH#|Fill Color #tapecolor#|Rotate 45|StrokeWidth 0
LeftMouseUpAction=[!WriteKeyValue Variables DayOffset (#DayOffset#+1) "#@#TimeTable.inc"] [!Refresh]
DynamicVariables=1
[CelloTapeReset]
Meter=Shape
Shape=Rectangle (#right#*1.1),#bottom#,#buttonW#,#buttonH#|Fill Color #tapecolor#|Rotate -50|StrokeWidth 0
LeftMouseUpAction=[!WriteKeyValue Variables DayOffset "0" "#@#TimeTable.inc"] [!Refresh]
;[CelloTapeSettings]
;Meter=Shape
;Shape=Rectangle #margin#,#bottom#,#buttonW#,#buttonH#,5|Fill Color #tapecolor#|StrokeWidth 0
;LeftMouseUpAction=[!WriteKeyValue Variables DayOffset "0" "#@#TimeTable.inc"] [!Refresh]
// L O G I C
/////////////////////////////////////////
[CelloTapeLimits]
Measure=Calc
Formula=1
IfCondition=(DayNumberModify > 6)
IfTrueAction=[!WriteKeyValue Variables DayOffset (#DayOffset#-7) "#@#TimeTable.inc"] [!Refresh]
IfCondition2=(DayNumberModify < 0)
IfTrueAction2=[!WriteKeyValue Variables DayOffset (#DayOffset#+7) "#@#TimeTable.inc"] [!Refresh]
DynamicVariables=1
;------------------------------
[SubjectNames]
Measure=Calc
Formula=1
IfCondition=(DayNumberModify >= 0)
IfTrueAction=[!SetOption Period Text #[DayModify]1#] [!UpdateMeter Period] [!SetOption Period2 Text #[DayModify]2#] [!UpdateMeter Period2] [!SetOption Period3 Text #[DayModify]3#] [!UpdateMeter Period3] [!SetOption Period4 Text #[DayModify]4#] [!UpdateMeter Period4] [!SetOption Period5 Text #[DayModify]5#] [!UpdateMeter Period5] [!SetOption Period6 Text #[DayModify]6#] [!UpdateMeter Period6] [!SetOption Icon Text #[DayModify]t1#] [!UpdateMeter Icon] [!SetOption Icon2 Text #[DayModify]t2#] [!UpdateMeter Icon2] [!SetOption Icon3 Text #[DayModify]t3#] [!UpdateMeter Icon3] [!SetOption Icon4 Text #[DayModify]t4#] [!UpdateMeter Icon4] [!SetOption Icon5 Text #[DayModify]t5#] [!UpdateMeter Icon5] [!Redraw]
[SubjectColors]
Measure=Calc
Formula=1
IfCondition=(DayNumberModify >= 0)
IfTrueAction=[!SetOption ColorBlock1 Shape "Rectangle #margin#,#cblock1#,#width#,#cblockH# | Fill Color #[DayModify]Color1# | StrokeWidth 0"][!UpdateMeter "Shape"][!SetOption ColorBlock2 Shape "Rectangle #margin#,#cblock2#,#width#,#cblockH# | Fill Color #[DayModify]Color2# | StrokeWidth 0"][!UpdateMeter "Shape"][!SetOption ColorBlock3 Shape "Rectangle #margin#,#cblock3#,#width#,#cblockH# | Fill Color #[DayModify]Color3# | StrokeWidth 0"][!UpdateMeter "Shape"][!SetOption ColorBlock4 Shape "Rectangle #margin#,#cblock4#,#width#,#cblockH# | Fill Color #[DayModify]Color4# | StrokeWidth 0"][!UpdateMeter "Shape"][!SetOption ColorBlock5 Shape "Rectangle #margin#,#cblock5#,#width#,#cblockH# | Fill Color #[DayModify]Color5# | StrokeWidth 0"][!UpdateMeter "Shape"][!Redraw]
;------------------------------
; Luminance Value from RGB colors formula
; Y = [(0.2126 * R) + (0.7152 * G) + (0.0722 * B)]
[SubjectHighlightCondition]
Measure=Calc
Formula=1
IfCondition=([&DayNumber] = [&DayNumberModify])
IfTrueAction=[!EnableMeasure SubjectHighlight]
IfFalseAction=[!DisableMeasure SubjectHighlight]
DynamicVariables=1 ; Makes Measure available to use as Variables
[SubjectHighlight]
Measure=Calc
Formula=1
IfCondition=(MeasureTime >= [#[&DayModify]t1]) && (MeasureTime < [#[&DayModify]t2])
IfTrueAction=[!SetOption Icon FontColor #noteink#][!SetOption Period FontColor #noteink#][!SetOption Period FontWeight 700][!UpdateMeter "Icon"][!UpdateMeter "Period"][!Redraw]
IfCondition2=(MeasureTime >= [#[&DayModify]t2]) && (MeasureTime < [#[&DayModify]t3])
IfTrueAction2=[!SetOption Icon2 FontColor #noteink#][!SetOption Period2 FontColor #noteink#][!SetOption Period2 FontWeight 700][!UpdateMeter "Icon2"][!UpdateMeter "Period2"][!SetOption Icon FontColor #black#][!SetOption Period FontColor #black#][!SetOption Period FontWeight 400][!UpdateMeter "Icon"][!UpdateMeter "Period"][!Redraw]
IfCondition3=(MeasureTime >= [#[&DayModify]t3]) && (MeasureTime < [#[&DayModify]t4])
IfTrueAction3=[!SetOption Icon3 FontColor #noteink#][!SetOption Period3 FontColor #noteink#][!SetOption Period3 FontWeight 700][!UpdateMeter "Icon3"][!UpdateMeter "Period3"][!SetOption Icon2 FontColor #black#][!SetOption Period2 FontColor #black#][!SetOption Period2 FontWeight 400][!UpdateMeter "Icon2"][!UpdateMeter "Period2"][!Redraw]
IfCondition4=(MeasureTime >= [#[&DayModify]t4]) && (MeasureTime < [#[&DayModify]t5])
IfTrueAction4=[!SetOption Icon4 FontColor #noteink#][!SetOption Period4 FontColor #noteink#][!SetOption Period4 FontWeight 700][!UpdateMeter "Icon4"][!UpdateMeter "Period4"][!SetOption Icon3 FontColor #black#][!SetOption Period3 FontColor #black#][!SetOption Period3 FontWeight 400][!UpdateMeter "Icon3"][!UpdateMeter "Period3"][!Redraw]
IfCondition5=(MeasureTime >= [#[&DayModify]t5]) && (MeasureTime < [#[&DayModify]t6])
IfTrueAction5=[!SetOption Icon5 FontColor #noteink#][!SetOption Period5 FontColor #noteink#][!SetOption Period5 FontWeight 700][!UpdateMeter "Icon5"][!UpdateMeter "Period5"][!SetOption Icon4 FontColor #black#][!SetOption Period4 FontColor #black#][!SetOption Period4 FontWeight 400][!UpdateMeter "Icon4"][!UpdateMeter "Period4"][!Redraw]
IfCondition6=(MeasureTime >= [#[&DayModify]t6])
IfTrueAction6=[!SetOption Icon5 FontColor #black#][!SetOption Period5 FontColor #black#][!SetOption Period5 FontWeight 400][!UpdateMeter "Icon5"][!UpdateMeter "Period5"][!Redraw]
DynamicVariables=1 ; Makes Measure available to use as Variables
;------------------------------
[SubjectVisibility]
Measure=Calc
Formula=#n#+1
IfCondition=SubjectVisibility <= 1
IfTrueAction=[!HideMeterGroup G1]
IfFalseAction=[!ShowMeterGroup G1]
IfCondition2=SubjectVisibility <= 2
IfTrueAction2=[!HideMeterGroup G2]
IfFalseAction2=[!ShowMeterGroup G2]
IfCondition3=SubjectVisibility <= 3
IfTrueAction3=[!HideMeterGroup G3]
IfFalseAction3=[!ShowMeterGroup G3]
IfCondition4=SubjectVisibility <= 4
IfTrueAction4=[!HideMeterGroup G4]
IfFalseAction4=[!ShowMeterGroup G4]
IfCondition5=SubjectVisibility <= 5
IfTrueAction5=[!HideMeterGroup G5]
IfFalseAction5=[!ShowMeterGroup G5]
IfCondition6=SubjectVisibility <= 6
IfTrueAction6=[!HideMeterGroup G6]
IfFalseAction6=[!ShowMeterGroup G6]
// H E A D E R
/////////////////////////////////////////
[DayInfo]
Meter=String
Text=[DayModify] [MeasureDate]
X=(#margin#+(#width#/2))
Y=(#margin#+(#headerH#/3))
FontFace=#HeadingFont#
FontColor=#black#
FontSize=#fontsizeHeader#
FontWeight=500
;StringCase=UPPER
StringAlign=Center
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
DynamicVariables=1 ; Makes Measure available to use as Variables
// B O D Y
/////////////////////////////////////////
[Icon]
Meter=String
X=#IconAlign#
Y=#item1#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G1
[Period]
Meter=String
X=#SubAlign#
Y=#item1#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G1
;------------------------------
[Icon2]
Meter=String
X=#IconAlign#
Y=#item2#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G2
[Period2]
Meter=String
X=#SubAlign#
Y=#item2#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G2
;------------------------------
[Icon3]
Meter=String
X=#IconAlign#
Y=#item3#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G3
[Period3]
Meter=String
X=#SubAlign#
Y=#item3#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G3
;------------------------------
[Icon4]
Meter=String
X=#IconAlign#
Y=#item4#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G4
[Period4]
Meter=String
X=#SubAlign#
Y=#item4#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G4
;------------------------------
[Icon5]
Meter=String
X=#IconAlign#
Y=#item5#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G5
[Period5]
Meter=String
X=#SubAlign#
Y=#item5#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G5
;------------------------------
[Icon6]
Meter=String
X=#IconAlign#
Y=#item6#
FontFace=#IconFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeIcon#
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
Group=G6
[Period6]
Meter=String
X=#SubAlign#
Y=#item6#
FontFace=#SubFont#
FontColor=#black#
FontWeight=500
FontSize=#fontsizeBody#
StringAlign=Left
InlineSetting=CharacterSpacing | 0 | -0.8
AntiAlias=1
Group=G6
/////////////////////////////////////////