-
Notifications
You must be signed in to change notification settings - Fork 0
/
DI_Music.ini
289 lines (287 loc) · 9.51 KB
/
DI_Music.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
[Metadata]
Name=Dynamic Island - Music
Author=KrazyManJ
Information=iOs like dynamic island!
License=MIT License
Version=1.0.0
[Rainmeter]
@Include=#@#Setup.inc
;
; ======================================================================================
; VARIABLES
; ======================================================================================
;
[Variables]
C_CLOSED_W=300
C_CLOSED_H=70
C_OPENED_W=500
C_OPENED_H=250
C_PREV_TYPE="DI_Battery.ini"
C_NEXT_TYPE="DI_Shutdown.ini"
;
; ======================================================================================
; SPECTRUM
; ======================================================================================
;
[ColorExtractParent]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[M_Cover]
DynamicVariables=1
[ColorExtractBackground]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[ColorExtractParent]
ColorType=Background
[ColorExtractAccent1]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[ColorExtractParent]
ColorType=Accent1
[ColorExtractAccent2]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[ColorExtractParent]
ColorType=Accent2
[M_Audio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTSize=1024
FFTOverlap=512
FFTAttack=50
FFTDecay=80
Bands=6
FreqMin=20
FreqMax=15000
Sensitivity=20
[M_Band_0]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=0
[M_Band_1]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=1
[M_Band_2]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=2
[M_Band_3]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=3
[M_Band_4]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=4
[M_Band_5]
Measure=Plugin
Plugin=AudioLevel
Parent=M_Audio
Type=Band
BandIdx=5
[Spectrum]
Meter=Shape
DynamicVariables=1
AntiAlias=1
Shape=Rectangle (#V_CUR_X#+#V_CUR_W#-60-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_0]*15),3,([M_Band_0]*30+3),1.5 | Fill Color [&Script:LightenIfDarkString([&ColorExtractBackground])] | StrokeWidth 0
Shape2=Rectangle (#V_CUR_X#+#V_CUR_W#-54-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_1]*15),3,([M_Band_1]*30+3),1.5 | Fill Color [&Script:ColorShadeAndLighten([&ColorExtractBackground],[&ColorExtractAccent1])] | StrokeWidth 0
Shape3=Rectangle (#V_CUR_X#+#V_CUR_W#-48-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_2]*15),3,([M_Band_2]*30+3),1.5 | Fill Color [&Script:LightenIfDarkString([&ColorExtractAccent1])] | StrokeWidth 0
Shape4=Rectangle (#V_CUR_X#+#V_CUR_W#-42-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_3]*15),3,([M_Band_3]*30+3),1.5 | Fill Color [&Script:ColorShadeAndLighten([&ColorExtractAccent1],[&ColorExtractAccent2])] | StrokeWidth 0
Shape5=Rectangle (#V_CUR_X#+#V_CUR_W#-36-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_4]*15),3,([M_Band_4]*30+3),1.5 | Fill Color [&Script:LightenIfDarkString([&ColorExtractAccent2])] | StrokeWidth 0
Shape6=Rectangle (#V_CUR_X#+#V_CUR_W#-30-[Transition]/15),(#V_CUR_Y#+[Transition]/3+33-[M_Band_5]*15),3,([M_Band_5]*30+3),1.5 | Fill Color [&Script:ColorShadeAndLighten([&ColorExtractAccent2],[&ColorExtractBackground])] | StrokeWidth 0
;
; ======================================================================================
; ALBUM COVER
; ======================================================================================
;
[M_Cover]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Cover
DefaultPath=#@#Images\Music\Cover.png
[CoverContainer]
Meter=Shape
Shape=Rectangle (#V_CUR_X#+30),(#V_CUR_Y#+10+[Transition]/5),(50+[Transition]/3),(50+[Transition]/3),(10+[Transition]/5)
DynamicVariables=1
AntiAlias=1
[Cover]
Meter=Image
X=(#V_CUR_X#+30)
Y=(#V_CUR_Y#+10+[Transition]/5)
H=(50+[Transition]/3)
W=(50+[Transition]/3)
MeasureName=M_Cover
Container=CoverContainer
DynamicVariables=1
AntiAlias=1
Group=BigSized
;
; ======================================================================================
; SONG TITLE
; ======================================================================================
;
[M_Title]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
DynamicVariables=1
IfCondition=[Transition]=100
IfTrueAction=[!SetOption Title ToolTipHidden 0]
IfFalseAction=[!SetOption Title ToolTipHidden 1]
[M_TitleTrimmed]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
RegExpSubstitute=1
Substitute="^(.{22}).+":"\1..."
[Title]
Meter=String
FontFace=#FONTFACE#
MeasureName=M_TitleTrimmed
AntiAlias=1
FontColor=255,255,255,[F_ByteTransition]
FontSize=14
FontWeight=700
StringAlign=LeftBottom
X=(#C_HALF#-120)
Y=(#V_CUR_Y#+50+[Transition]/5)
DynamicVariables=1
ToolTipText=[M_Title]
ToolTipHidden=1
;
; ======================================================================================
; SONG ARTIST
; ======================================================================================
;
[M_Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="^(.{50}).+":"\1..."
[Artist]
Meter=String
MeasureName=M_Artist
FontFace=#FONTFACE#
AntiAlias=1
FontColor=255,255,255,([F_ByteTransition]*0.6)
FontSize=14
StringAlign=LeftTop
X=(#C_HALF#-120)
Y=(#V_CUR_Y#+50+[Transition]/5)
DynamicVariables=1
;
; ======================================================================================
; SONG PROGRESS BAR
; ======================================================================================
;
[M_Progress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Progress
[ProgressContainer]
Meter=Shape
Shape=Rectangle (#C_HALF#-80-[Transition]),(#V_CUR_Y#+89+[Transition]*0.5),(160+[Transition]*2),10,7
AntiAlias=1
DynamicVariables=1
[Progress]
Meter=Bar
MeasureName=M_Progress
W=(160+[Transition]*2)
H=10
X=(#C_HALF#-80-[Transition])
Y=(#V_CUR_Y#+89+[Transition]*0.5)
BarColor=170,170,170,[F_ByteTransition]
SolidColor=85,85,85,[F_ByteTransition]
BarOrientation=Horizontal
DynamicVariables=1
Container=ProgressContainer
LeftMouseUpAction=[!CommandMeasure M_Progress "SetPosition $MouseX:%$"][!Update][!Redraw]
;
; ======================================================================================
; SONG POSITION LABEL
; ======================================================================================
;
[M_Position]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position
[Position]
Meter=String
MeasureName=M_Position
FontFace=#FONTFACE#
AntiAlias=1
FontColor=136,136,136,[F_ByteTransition]
FontSize=10
StringAlign=LeftTop
X=(#V_CUR_X#+[Transition]*0.3)
Y=(#V_CUR_Y#+86+[Transition]*0.5)
DynamicVariables=1
Container=IslandContainer
;
; ======================================================================================
; SONG DURATION LABEL
; ======================================================================================
;
[M_Duration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Duration
[Duration]
Meter=String
MeasureName=M_Duration
FontFace=#FONTFACE#
AntiAlias=1
FontColor=136,136,136,[F_ByteTransition]
FontSize=10
stringAlign = RightTop
X=(#V_CUR_X#+#V_CUR_W#-[Transition]*0.3)
Y=(#V_CUR_Y#+86+[Transition]*0.5)
DynamicVariables=1
Container=IslandContainer
;
; ======================================================================================
; CONTROL PANEL
; ======================================================================================
;
[M_PlayState]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=State
Substitute="0":"Play","1":"Pause","2":"Play","3":"Replay"
[S_ControlButton]
ImageTint=255,255,255,[F_ByteTransition]
W=50
H=50
Y=(#V_CUR_Y#+75+[Transition])
DynamicVariables=1
Container=IslandContainer
[Previous]
Meter=Image
MeterStyle=S_ControlButton
ImageName=#@#Images\Music\Previous.png
X=(#C_HALF#-100)
LeftMouseDownAction=[!CommandMeasure M_PlayState "Previous"]
[PlayPause]
Meter=Image
MeterStyle=S_ControlButton
ImageName=#@#Images\Music\[M_PlayState].png
X=(#C_HALF#-25)
LeftMouseDownAction=[!CommandMeasure M_PlayState "PlayPause"]
[Next]
Meter=Image
MeterStyle=S_ControlButton
ImageName=#@#Images\Music\Next.png
X=(#C_HALF#+50)
LeftMouseDownAction=[!CommandMeasure M_PlayState "Next"]