Skip to content

Commit a5ae608

Browse files
authored
Add files via upload
1 parent 039e20c commit a5ae608

File tree

2 files changed

+711
-297
lines changed

2 files changed

+711
-297
lines changed

Modular Taskbar/Setting/Module.ini

Lines changed: 397 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,397 @@
1+
[Rainmeter]
2+
SkinWidth=#Skin.Width#
3+
SkinHeight=#Skin.Height#
4+
Update=#UpdateInterval#
5+
DefaultUpdateDivider=-1
6+
AccurateText=1
7+
DefaultWindowX=50%
8+
DefaultWindowY=50%
9+
DefaultAnchorX=50%
10+
DefaultAnchorY=50%
11+
DefaultAlwaysOnTop=-2
12+
13+
[Variables]
14+
@IncludeVar=#@#Variables.inc
15+
@IncludeVarSetting=#@#Settings\Variables.inc
16+
UpdateInterval=1000
17+
18+
Module=
19+
ScrollPosition=0
20+
NumAvaliableModules=8
21+
22+
[Setting.StyleStringHeader]
23+
InlineSetting=Face | #font.DisplayName#
24+
InlineSetting2=Size | (#ElementSize#/3)
25+
InlineSetting3=Color | #Colour.2#
26+
InlineSetting4=Weight | 900
27+
StringAlign=CenterCenter
28+
AntiAlias=1
29+
30+
[Setting.StyleShapeModuleBox]
31+
Group=ModuleElement
32+
x=r
33+
y=#Padding#R
34+
Shape=Rectangle 0,0,#MEWidth#,#MEHeight#,#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#
35+
Container=Container.ModuleElement
36+
37+
[Setting.StyleStringModuleText]
38+
Group=ModuleElement
39+
x=(#IntAreaWidth#/2)
40+
y=#Padding#R
41+
w=#MEWidth#
42+
h=#MEHeight#
43+
Text=#CurrentSection#
44+
InlineSetting=Face | #font.DisplayName#
45+
InlineSetting2=Size | (#ElementSize#/3)
46+
InlineSetting3=Color | #Colour.2#,127
47+
InlineSetting4=Color | #Colour.2#
48+
InlinePattern4=[ActiveModuleList]
49+
InlineSetting5=Underline
50+
InlinePattern5=^#Module#$
51+
InlineSetting6=Weight | 900
52+
StringAlign=CenterCenter
53+
AntiAlias=1
54+
DynamicVariables=1
55+
Container=Container.ModuleElement
56+
LeftMouseUpAction=[!SetVariable Module #CurrentSection#][!SetOption Parser URL "file://#@#Modules\#*Module*#.inc"][!UpdateMeasure Parser][!CommandMeasure Parser "Update"][!UpdateMeasureGroup InfoParse]
57+
58+
[Setting.StyleStringMetadata]
59+
InlineSetting=Face | #font.DisplayName#
60+
InlineSetting2=Size | (#ElementSize#/3)
61+
InlineSetting3=Color | #Colour.2#
62+
AntiAlias=1
63+
64+
[PSRM]
65+
Group=InfoParse
66+
Measure=Plugin
67+
Plugin=PowerShellRM
68+
ScriptFile=#@#Settings\Module.ps1
69+
70+
[PSRM.CurrentActive]
71+
Group=InfoParse
72+
Measure=Plugin
73+
Plugin=PowershellRM
74+
Parent=PSRM
75+
Line=return IsModuleActive("#Module#")
76+
DynamicVariables=1
77+
78+
[ActiveModuleList]
79+
Group=InfoParse
80+
Measure=String
81+
String=#ActiveModules#,
82+
RegExpSubstitute=1
83+
Substitute=",":"|","(.*?)\|":"^\1$|","\|$":"","\^\\1\$":"^$"
84+
DynamicVariables=1
85+
86+
[Parser]
87+
Group=InfoParse
88+
Measure=WebParser
89+
RegExp=(?siU)\[Metadata\].*Name\s*=(.*)\nDescription\s*=(.*)\n.*\[Variables\].*module\.#Module#\.Position\s*=(.*)\nmodule\.#Module#\.Anchor\s*=(.*)\n
90+
DynamicVariables=1
91+
StringIndex=1
92+
RegExpSubstitute=1
93+
Substitute="^(.{1,})$":"Name // \1"
94+
FinishAction=[!SetOption PosCache Formula Pos][!SetOption AnchorCache Formula Anchor][!UpdateMeasureGroup FileParse][!UpdateMeterGroup ModuleElement][!UpdateMeterGroup ModuleInfo][!Redraw]
95+
96+
[Description]
97+
Group=FileParse
98+
Measure=WebParser
99+
URL=[Parser]
100+
StringIndex=2
101+
RegExpSubstitute=1
102+
Substitute="^(.{1,})$":"Desc // \1"
103+
104+
[Pos]
105+
Group=FileParse
106+
Measure=WebParser
107+
URL=[Parser]
108+
StringIndex=3
109+
110+
[Anchor]
111+
Group=FileParse
112+
Measure=WebParser
113+
URL=[Parser]
114+
StringIndex=4
115+
116+
[PosCache]
117+
Group=FileParse
118+
Measure=Calc
119+
DynamicVariables=1
120+
121+
[AnchorCache]
122+
Group=FileParse
123+
Measure=Calc
124+
DynamicVariables=1
125+
RegExpSubstitute=1
126+
Substitute="0":"Left","1":"Centre","2":"Right"
127+
128+
[Mouse]
129+
Group=FileParse
130+
Measure=Plugin
131+
Plugin=Mouse
132+
LeftMouseDragAction=[!SetOption PosCache "Formula" "Trunc(Clamp((($MouseX$-[PositionSlider:x])*#body.Width#/[PositionSlider:w]), 0, #body.Width#))"][!UpdateMeasure PosCache][!SetVariable module.#Module#.Position "[PosCache]" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!Redraw][!Redraw "#RootConfig#"]
133+
LeftMouseUpAction=[!CommandMeasure #CurrentSection# "Stop"][!WriteKeyValue Variables module.#Module#.Position "(Trunc([PosCache]))" "#@#Modules\#Module#.inc"]
134+
RelativeToSkin=1
135+
RequireDragging=1
136+
DynamicVariables=1
137+
138+
; [Frost]
139+
; Measure=Plugin
140+
; Plugin=FrostedGlass
141+
142+
[Background]
143+
Meter=Shape
144+
Shape=Rectangle 0,0,#Skin.Width#,#Skin.Height#,#CornerRadius# | Fill Color 40,40,40 | StrokeWidth 0
145+
146+
[Frame.Module]
147+
Meter=Shape
148+
x=(2*#Padding#)
149+
y=(2*#Padding#+#ElementSize#/2)
150+
w=(2*#LineWidth#+2*#Padding#+#IntAreaWidth#)
151+
h=(2*#LineWidth#+2*#Padding#+#IntAreaHeight#+#ElementSize#)
152+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#
153+
Shape2=Rectangle #LineWidth#,#LineWidth#,([#CurrentSection#:w]-2*#LineWidth#),([#CurrentSection#:h]-2*#LineWidth#),(#CornerRadius#-#LineWidth#)
154+
Shape3=Rectangle (([#CurrentSection#:w]-#IntAreaHeaderWidth#-2*#Padding#)/2),0,(#IntAreaHeaderWidth#+2*#Padding#),#LineWidth# | StrokeWidth 0
155+
Shape4=Rectangle (([#CurrentSection#:w]-#IntAreaButtonWidth#-2*#Padding#)/2),([#CurrentSection#:h]-#LineWidth#),(#IntAreaButtonWidth#+2*#Padding#),#LineWidth# | StrokeWidth 0
156+
Shape5=Combine Shape | Exclude Shape2 | Exclude Shape3 | Exclude Shape4
157+
Shape6=Rectangle (([#CurrentSection#:w]-#IntAreaButtonWidth#)/2),([#CurrentSection#:h]-#ElementSize#/2),#IntAreaButtonWidth#,#ElementSize#,(#ElementSize#/4) | StrokeWidth 0 | Fill Color #Colour.1#
158+
159+
[Frame.Metadata]
160+
Meter=Shape
161+
x=#Padding#R
162+
y=r
163+
w=(2*#LineWidth#+2*#Padding#+#IntAreaWidth#)
164+
h=(2*#LineWidth#+2*#Padding#+#IntAreaHeight#+#ElementSize#)
165+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#
166+
Shape2=Rectangle #LineWidth#,#LineWidth#,([#CurrentSection#:w]-2*#LineWidth#),([#CurrentSection#:h]-2*#LineWidth#),(#CornerRadius#-#LineWidth#)
167+
Shape3=Rectangle (([#CurrentSection#:w]-#IntAreaHeaderWidth#-2*#Padding#)/2),0,(#IntAreaHeaderWidth#+2*#Padding#),#LineWidth# | StrokeWidth 0
168+
Shape4=Rectangle (([#CurrentSection#:w]-#IntAreaButtonWidth#-2*#Padding#)/2),([#CurrentSection#:h]-#LineWidth#),(#IntAreaButtonWidth#+2*#Padding#),#LineWidth# | StrokeWidth 0
169+
Shape5=Combine Shape | Exclude Shape2 | Exclude Shape3 | Exclude Shape4
170+
Shape6=Rectangle (([#CurrentSection#:w]-#IntAreaButtonWidth#)/2),([#CurrentSection#:h]-#ElementSize#/2),#IntAreaButtonWidth#,#ElementSize#,(#ElementSize#/4) | StrokeWidth 0 | Fill Color #Colour.1#
171+
172+
[String.ModuleHeader]
173+
MeterStyle=Setting.StyleStringHeader
174+
Meter=String
175+
x=([Frame.Module:x]+[Frame.Module:w]/2)
176+
y=[Frame.Module:y]
177+
w=#IntAreaHeaderWidth#
178+
h=#ElementSize#
179+
Text=Module(s)
180+
181+
[String.MetadataHeader]
182+
MeterStyle=Setting.StyleStringHeader
183+
Meter=String
184+
x=([Frame.Metadata:x]+[Frame.Metadata:w]/2)
185+
y=[Frame.Metadata:y]
186+
w=#IntAreaHeaderWidth#
187+
h=#ElementSize#
188+
Text=Metadata
189+
190+
[String.ModuleButton]
191+
Group=ModuleInfo
192+
MeterStyle=Setting.StyleStringHeader
193+
Meter=String
194+
x=([Frame.Module:x]+[Frame.Module:w]/2)
195+
y=[Frame.Module:yh]
196+
w=#IntAreaButtonWidth#
197+
h=#ElementSize#
198+
Text=Toggle Module
199+
DynamicVariables=1
200+
LeftMouseUpAction=[!CommandMeasure PSRM "ToggleModule #Module#"][!CommandMeasure Parser "Update"][!UpdateMeasureGroup InfoParse][!Refresh "#RootConfig#"]
201+
202+
[String.MetadataButton]
203+
Group=ModuleInfo
204+
MeterStyle=Setting.StyleStringHeader
205+
Meter=String
206+
x=([Frame.Metadata:x]+[Frame.Metadata:w]/2)
207+
y=[Frame.Metadata:yh]
208+
w=#IntAreaButtonWidth#
209+
h=#ElementSize#
210+
Text=Open Config
211+
DynamicVariables=1
212+
LeftMouseUpAction=["#@#Modules\#Module#.inc"]
213+
214+
[Container.ModuleElement]
215+
Meter=Image
216+
x=([Frame.Module:x]+#LineWidth#+#Padding#)
217+
y=([Frame.Module:y]+#LineWidth#+#Padding#+#ElementSize#*0.5)
218+
w=#IntAreaWidth#
219+
h=#IntAreaHeight#
220+
SolidColor=0,0,0
221+
DynamicVariables=1
222+
MouseScrollUpAction=[!SetVariable ScrollPosition "(clamp((#ScrollPosition#+#IntScrollSpeed#),(min(((#ShownModules#-#NumAvaliableModules#)*(#MEHeight#+#Padding#)),0)),0))"][!UpdateMeter #CurrentSection#][!UpdateMeterGroup ModuleElement][!Redraw]
223+
MouseScrollDownAction=[!SetVariable ScrollPosition "(clamp((#ScrollPosition#-#IntScrollSpeed#),(min(((#ShownModules#-#NumAvaliableModules#)*(#MEHeight#+#Padding#)),0)),0))"][!UpdateMeter #CurrentSection#][!UpdateMeterGroup ModuleElement][!Redraw]
224+
MouseActionCursor=0
225+
226+
[Container.Metadata]
227+
Meter=Image
228+
x=([Frame.Metadata:x]+#LineWidth#+#Padding#)
229+
y=([Frame.Metadata:y]+#LineWidth#+#Padding#+#ElementSize#*0.5)
230+
w=#IntAreaWidth#
231+
h=#IntAreaHeight#
232+
SolidColor=0,0,0
233+
234+
[ModuleElements]
235+
@IncludeME=#@#Settings\List.inc
236+
237+
[String.MetadataName]
238+
Group=ModuleInfo
239+
MeterStyle=Setting.StyleStringMetadata
240+
Meter=String
241+
MeasureName=Parser
242+
x=#Padding#
243+
y=(#Padding#+#MEHeight#/2)
244+
w=#MEWidth#
245+
h=#MEHeight#
246+
InlineSetting4=Weight | 900
247+
InlinePAttern4=^Name //
248+
InlineSetting5=Color | #Colour.1#
249+
InlinePAttern5=^Name (//)
250+
InlineSetting6=Underline
251+
InlinePAttern6=^Name
252+
StringAlign=LeftCenter
253+
Container=Container.Metadata
254+
255+
[String.MetadataDescription]
256+
Group=ModuleInfo
257+
MeterStyle=Setting.StyleStringMetadata
258+
Meter=String
259+
MeasureName=Description
260+
x=r
261+
y=R
262+
w=#MEWidth#
263+
InlineSetting4=Weight | 900
264+
InlinePAttern4=^Desc //
265+
InlineSetting5=Color | #Colour.1#
266+
InlinePAttern5=^Desc (//)
267+
InlineSetting6=Underline
268+
InlinePAttern6=^Desc
269+
StringAlign=LeftTop
270+
ClipString=2
271+
Container=Container.Metadata
272+
273+
[PositionSlider]
274+
Group=ModuleInfo
275+
Meter=Shape
276+
x=(2*#Padding#)
277+
y=([Frame.Module:yh]+2*#ElementSize#)
278+
w=(#Skin.Width#-4*#Padding#)
279+
h=(#ElementSize#/2)
280+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#,127
281+
Shape2=Rectangle (-[#CurrentSection#:h]),0,([#CurrentSection#:h]+[PosCache]/#body.Width#*[#CurrentSection#:w]),[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#
282+
Shape3=Combine Shape
283+
Shape4=Combine Shape2 | Intersect Shape
284+
Hidden=([PSRM.CurrentActive:]=1?0:1)
285+
DynamicVariables=1
286+
LeftMouseDownAction=[!CommandMeasure "Mouse" "Start"]
287+
MouseScrollUpAction=[!SetOption PosCache "Formula" "(Clamp(([PosCache]+1),0,#body.Width#))"][!UpdateMeasure PosCache][!SetVariable module.#Module#.Position "[PosCache]" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!WriteKeyValue Variables module.#Module#.Position "[PosCache]" "#@#Modules\#Module#.inc"][!Redraw][!Redraw "#RootConfig#"]
288+
MouseScrollDownAction=[!SetOption PosCache "Formula" "(Clamp(([PosCache]-1),0,#body.Width#))"][!UpdateMeasure PosCache][!SetVariable module.#Module#.Position "[PosCache]" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!WriteKeyValue Variables module.#Module#.Position "[PosCache]" "#@#Modules\#Module#.inc"][!Redraw][!Redraw "#RootConfig#"]
289+
290+
[String.Position]
291+
Group=ModuleInfo
292+
Meter=String
293+
MeasureName=PosCache
294+
x=(3*#Padding#)
295+
y=([PositionSlider:y]-#Padding#)
296+
Text=Position // %1
297+
InlineSetting=Face | #font.DisplayName#
298+
InlineSetting2=Size | (#ElementSize#/3)
299+
InlineSetting3=Color | #Colour.2#
300+
InlineSetting4=Weight | 900
301+
InlinePAttern4=^(.*? //)
302+
InlineSetting5=Color | #Colour.1#
303+
InlinePAttern5=^.*? (//)
304+
InlineSetting6=Underline
305+
InlinePAttern6=^(.*?) //
306+
StringAlign=LeftBottom
307+
AntiAlias=1
308+
Hidden=([PSRM.CurrentActive:]=1?0:1)
309+
DynamicVariables=1
310+
311+
[AnchorShapeDummy]
312+
Group=ModuleInfo
313+
Meter=String
314+
x=#Padding#
315+
y=([PositionSlider:y]+2*#ElementSize#)
316+
DynamicVariables=1
317+
318+
[AnchorShape1]
319+
Group=ModuleInfo
320+
Meter=Shape
321+
x=#Padding#R
322+
y=r
323+
w=#ElementSize#
324+
h=(#ElementSize#/2)
325+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#,(255*([AnchorCache:]=0?1:0.5))
326+
Hidden=([PSRM.CurrentActive:]=1?0:1)
327+
DynamicVariables=1
328+
LeftMouseUpAction=[!SetOption AnchorCache Formula "0"][!UpdateMeasure AnchorCache][!SetVariable module.#Module#.Anchor "0" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!WriteKeyValue Variables module.#Module#.Anchor "0" "#@#Modules\#Module#.inc"][!Redraw][!Redraw "#RootConfig#"]
329+
330+
[AnchorShape2]
331+
Group=ModuleInfo
332+
Meter=Shape
333+
x=#Padding#R
334+
y=r
335+
w=#ElementSize#
336+
h=(#ElementSize#/2)
337+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#,(255*([AnchorCache:]=1?1:0.5))
338+
Hidden=([PSRM.CurrentActive:]=1?0:1)
339+
DynamicVariables=1
340+
LeftMouseUpAction=[!SetOption AnchorCache Formula "1"][!UpdateMeasure AnchorCache][!SetVariable module.#Module#.Anchor "1" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!WriteKeyValue Variables module.#Module#.Anchor "1" "#@#Modules\#Module#.inc"][!Redraw][!Redraw "#RootConfig#"]
341+
342+
[AnchorShape3]
343+
Group=ModuleInfo
344+
Meter=Shape
345+
x=#Padding#R
346+
y=r
347+
w=#ElementSize#
348+
h=(#ElementSize#/2)
349+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],#CornerRadius# | StrokeWidth 0 | Fill Color #Colour.1#,(255*([AnchorCache:]=2?1:0.5))
350+
Hidden=([PSRM.CurrentActive:]=1?0:1)
351+
DynamicVariables=1
352+
LeftMouseUpAction=[!SetOption AnchorCache Formula "2"][!UpdateMeasure AnchorCache][!SetVariable module.#Module#.Anchor "2" "#RootConfig#"][!UpdateMeterGroup ModuleInfo][!UpdateMeter module.#Module#.Container "#RootConfig#"][!WriteKeyValue Variables module.#Module#.Anchor "2" "#@#Modules\#Module#.inc"][!Redraw][!Redraw "#RootConfig#"]
353+
354+
[String.Anchor]
355+
Group=ModuleInfo
356+
Meter=String
357+
MeasureName=AnchorCache
358+
x=(3*#Padding#)
359+
y=([AnchorShapeDummy:y]-#Padding#)
360+
Text=Anchor // %1
361+
InlineSetting=Face | #font.DisplayName#
362+
InlineSetting2=Size | (#ElementSize#/3)
363+
InlineSetting3=Color | #Colour.2#
364+
InlineSetting4=Weight | 900
365+
InlinePAttern4=^(.*? //)
366+
InlineSetting5=Color | #Colour.1#
367+
InlinePAttern5=^.*? (//)
368+
InlineSetting6=Underline
369+
InlinePAttern6=^(.*?) //
370+
StringAlign=LeftBottom
371+
AntiAlias=1
372+
Hidden=([PSRM.CurrentActive:]=1?0:1)
373+
DynamicVariables=1
374+
375+
[SettingSelection.Line]
376+
Meter=Shape
377+
x=((#Skin.Width#-[#CurrentSection#:w])/2)
378+
y=(#Skin.Height#-2*#Padding#-[#CurrentSection#:h])
379+
W=(#Skin.Width#*0.2)
380+
H=#LineWidth#
381+
Shape=Rectangle 0,0,[#CurrentSection#:w],[#CurrentSection#:h],([#CurrentSection#:h]/2) | StrokeWidth 0 | Fill Color #Colour.2#,63
382+
Shape2=Rectangle 0,0,([#CurrentSection#:w]/2),[#CurrentSection#:h],([#CurrentSection#:h]/2) | StrokeWidth 0 | Fill Color #Colour.2#
383+
DynamicVariables=1
384+
385+
[SettingSelection.Text]
386+
Meter=String
387+
x=(#Skin.Width#/2)
388+
y=(#Skin.Height#-3*#Padding#)
389+
text=Module
390+
InlineSetting=Face | #font.DisplayName#
391+
InlineSetting2=Size | (#ElementSize#/3)
392+
InlineSetting3=Color | #Colour.2#,127
393+
InlineSetting4=Weight | 900
394+
StringAlign=CenterBottom
395+
AntiAlias=1
396+
DynamicVariables=1
397+
LeftMouseUpAction=[!ActivateConfig "#RootConfig#\Setting" "Setting.ini"]

0 commit comments

Comments
 (0)