-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDates.ini
176 lines (132 loc) · 9.49 KB
/
Dates.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
[Variables]
; === Modifies the size of the skin.
Scale=1
; === The colors!
; Accepted format is RBG or HEX, I used HEX as it's my prefference
; Swap `TextFillColor` and `BackgroundFillColor` if
; you wanna invert the colors of the skin.
TextFillColor=000000
BackgroundFillColor=FFFFFF
BackgroundFillSecondaryColor=F4F4F4
; Change this to modify the blue accent, the blue
; accent is global
AccentColor=2DABC9
; === The size of the list elements (Note: Stuff inside won't scale with it)
ListWidth=350
ListHeigt=100
; === The Format of the string telling the time left.
; This is done using Rainmeter's built-in measures.
; Possible variables are:
; %4: Days
; %3: Hours
; %2: Minute.
; %1: Seconds
; For more pazzazz, please read https://docs.rainmeter.net/manual/measures/uptime/#Format
UptimeFormat=%4!i! days %3!i! hours %2!i! mins %1!i!s
; If you want months and years, you will have to
; create your own implementation
; hey don't look down
; i see you lurking
; this measure dose all the job of creating the file
[Everything]
Measure=Script
ScriptFile=Helper.lua
ToRefresh=1
GeneratedFile=MetersNMeasures.inc
@IncludeEvents=Events.inc
[Rainmeter]
AccurateText=1
ContextTitle =Open Variables File
ContextTitle2 =Open Events File
ContextTitle3 =Force Regenerate the List File
ContextAction =[!EditSkin "#CurrentConfig#" "#CurrentFile#"]
ContextAction2=["#ConfigEditor#" "#CurrentPath#\Events.inc"]
ContextAction3=[!WriteKeyValue "Everything" "ToRefresh" "1"][!Refresh]
DefaultUpdateDivider=-1
MouseOverAction =[!ShowMeterGroup "Hideable"][!Redraw]
MouseLeaveAction=[!HideMeterGroup "Hideable"][!Redraw]
; over here at Jeff Incorporated we never make bad skins that look bad on the very first update and have to hide that with a `!Hide` and `!ShowFade`
OnRefreshAction=[!Hide][!Update][!HideMeterGroup "Hideable"][!Redraw][!ShowFade]
DefaultAlwaysOnTop=-2
[Metadata]
Name=Countdowner
Author=Jeff | Drgabi18
Version=Release Candidate 1
License=CC BY-NC-SA 4.0 | Do not republish my work to profit off it
Information=A simple skin that shows the time until/since a certain time stamp. | To edit the dates, click them and type what you want (, you can change the Name, Date and Time individually).
; shows if `Initialize()` function fails in Lua
[ErrorString]
Meter=String
MeterStyle=NameStyle
Text="If you're see this, an error has occured, whoops."
SolidColor=AA0000
FontColor=FFFFFF
LeftMouseUpAction=!About
; is the background, to not hardcode a size, i decided to use rainmeter's variables, if this section dosen't have `UpdateDivider=-1`, it will extend to infinity because of `StrokeWidth 1` and or a string meter with `StringAlign=Right`
[BackgroundMeter]
Meter=Shape
Shape=Rectangle 0,0,#CurrentConfigWidth#,#CurrentConfigHeight#,8 | StrokeWidth 1 | Fill Color #BackgroundFillColor#
DynamicVariables=1
; the styles for the meters inside the lists
; `NameStyle` is the event title style
[NameStyle]
FontColor=#TextFillColor#
FontFace=Segoe UI
FontSize=(20*#Scale#)
FontWeight=600
Group=Updatable
X=(12*#Scale#)r
Y=(12*#Scale#)r
AntiAlias=1
; `SubtitleStyle` is the style for the 2 meters showing the real time
[SubtitleStyle]
FontColor=#TextFillColor#
FontFace=Segoe UI
FontSize=(12*#Scale#)
FontWeight=300
Group=Updatable | Hideable
X=(14*#Scale#)R
Y=r
AntiAlias=1
; `TimeUntillStyle` (creative name) is the style of the meter showing the time remaning
[TimeUntillStyle]
FontColor=#TextFillColor#
FontFace=Segoe UI
FontSize=(14*#Scale#)
Y=(16*#Scale#)R
AntiAlias=1
; bolded the numbers to be easier to read
InLineSetting=Weight | 600
InLinePattern=\d+
; i don't need to explain
[ClockIcon]
Meter=String
MeterStyle=NameStyle
Text="⏰ Timers"
FontSize=(28*#Scale#)
; the button that creates new events
[PlusIcon]
Meter=String
MeterStyle=NameStyle
X=(16*#Scale#)R
Y=(12*#Scale#)r
DynamicVariables=1
FontColor=6CCB5F
FontSize=(20*#Scale#)
Group=Hideable
Text="➕"
ToolTipText=Add a new event
; the action that adds new events to the Events file, it will overwrite whatever was in there previously
LeftMouseUpAction=[!SetVariable "Events" "([#Events]+1)"][!WriteKeyValue "Variables" "Events" "[#Events]" "Events.inc"][!WriteKeyValue "Variables" "Name[#Events]" "New Event" "Events.inc"][!WriteKeyValue "Variables" "Date[#Events]" "2030-04-20" "Events.inc"][!WriteKeyValue "Variables" "Time[#Events]" "04:20:00" "Events.inc"][!WriteKeyValue "Everything" "ToRefresh" "1"][!Refresh]
[DummyMeterForListPositioning]
Meter=String
Y=(69*#Scale#)
[CurrentTime]
Measure=Time
UpdateDivider=1
@IncludeAll=MetersNMeasures.inc
; this only exists for the top right corner of the skin
[InvisiblePadding]
Meter=String
X=(12*#Scale#)R
Y=(12*#Scale#)R