forked from CyberGen49/XAppDrawer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXAppDrawer.ini
254 lines (225 loc) · 14.7 KB
/
XAppDrawer.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
[Rainmeter]
Update=1000
AccurateText=1
RightMouseUpAction=[!SkinCustomMenu]
ContextTitle=Reload skin
ContextAction=[!Refresh]
ContextTitle2=Unload Skin
ContextAction2=[!DeactivateConfig]
ContextTitle3=-
ContextAction3=[]
ContextTitle4=Standard context menu
ContextAction4=[!SkinMenu]
OnRefreshAction=[!FadeDuration 75][!CommandMeasure CreateIconDumpDir "Run"][!CommandMeasure CreateAppsFolder "Run"][!CommandMeasure CheckForIconDumpFolder "Run"]
#MouseOverAction=[#@#addons\RainFocus.exe]
OnFocusAction=[!SetVariable isFocused 1][!Update]
OnUnfocusAction=[!SetVariable isFocused 0][!Update]
[Metadata]
Name=XAppDrawer
Author=CyberOfficial
Information=An app drawer based on the design of Windows 10, Android, and iOS.
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Variables]
# Random internal variables
baseY=([ProfilePhoto:H]/2)
backW=620
backH=760
currPage=1
maxPage=0
searchText=Search...
searchTerm=
isFocused=1
searchHoverOpa=00
searchActiveOpa=00
@includeSettings=#@#Settings.ini
@includeFileView=#@#FileView.ini
[CreateIconDumpDir]
Measure=Plugin
Plugin=RunCommand
Parameter=if not exist "#@#\iconDump" (mkdir "#@#\iconDump"&&echo Done)
DynamicVariables=1
IfMatch="Done"
IfMatchAction=[!Refresh]
[CreateAppsFolder]
Measure=Plugin
Plugin=RunCommand
Parameter=mkdir "#appsFolder#"
DynamicVariables=1
[CheckForIconDumpFolder]
Measure=Plugin
Plugin=RunCommand
Parameter=echo test
DynamicVariables=1
[KeyAction1]
Measure=Plugin
Plugin=ActionTimer
ActionList1=CancelSearch
ActionList2=StartSearch
ActionList3=OpenFirstResult
CancelSearch=[!SetVariable searchTerm ""][!UpdateMeasureGroup Children][!CommandMeasure "AppsFolder" "Update"][!SetVariable currButton none][!SetVariable searchActiveOpa "00"][!Update]
StartSearch=[!SetVariable searchActiveOpa "ff"][!Update][!CommandMeasure SearchInputField "ExecuteBatch ALL"]
OpenFirstResult=["[GetItemPath1]"]
DynamicVariables=1
[CheckCancelSearch]
Measure=Plugin
Plugin=HotKey
HotKey=#key.clearSearch#
KeyDownAction=[!CommandMeasure KeyAction#isFocused# "Execute 1"]
DynamicVariables=1
[CheckStartSearch]
Measure=Plugin
Plugin=HotKey
HotKey=#key.startSearch#
KeyDownAction=[!CommandMeasure KeyAction#isFocused# "Execute 2"]
DynamicVariables=1
#[CheckStartSearchUnfoc]
#Measure=Plugin
#Plugin=HotKey
#HotKey=#key.startSearch.universal#
#KeyDownAction=[#@#addons\RainFocus.exe][!Delay 100][!CommandMeasure KeyAction1 "Execute 2"]
#DynamicVariables=1
[CheckOpenFirstResult]
Measure=Plugin
Plugin=HotKey
HotKey=#key.openFirstResult#
KeyDownAction=[!CommandMeasure KeyAction#isFocused# "Execute 3"][!CommandMeasure KeyAction#isFocused# "Execute 1"]
DynamicVariables=1
[GetMaxPage]
Measure=Calc
Formula=1
IfCondition=GetFileCount <= 25
IfTrueAction=[!SetVariable maxPage 1][!Update]
IfFalseAction=[!SetVariable maxPage "(Ceil(([GetFileCount]/5)-4))"][!Update]
DynamicVariables=1
[CheckSearch]
Measure=String
String=0#searchTerm#0
IfMatch=00
IfMatchAction=[!SetOption SearchText Text "#*searchText*#"][!Update]
IfNotMatchAction=[!SetOption SearchText Text "#*searchTerm*#"][!Update]
DynamicVariables=1
[s.Master]
AntiAlias=1
DynamicVariables=1
StringAlign=LeftTop
ClipString=1
[s.SearchBar]
FontFace=#font#
FontColor=#colour.search.text#
FontSize=13
FontWeight=400
[s.ItemLabel]
FontFace=#font#
FontColor=ffffffaa
FontSize=11
FontWeight=400
StringAlign=CenterTop
W=100
DynamicVariables=1
[s.Icon]
ImageName=%1
DynamicVariables=1
W=45
[s.Button]
X=5R
Y=0r
W=108
H=103
SolidColor=255,255,255,0
#SolidColor=ffffff44
DynamicVariables=1
MouseActionCursor=0
MouseOverAction=[!SetVariable currButton #CurrentSection#][!Update]
MouseLeaveAction=[!SetVariable currButton none][!Update]
[Background]
Meter=Shape
Shape=Rectangle 0,#baseY#,#backW#,#backH#,8,8 | Fill Color #colour.background# | StrokeWidth 0
DynamicVariables=1
[SearchBar]
Meter=Shape
Shape=Rectangle 30,(#baseY#+100),(#backW#-60),46,6,6 | Fill Color #colour.search# | StrokeWidth 0
# Hover state
Shape2=Rectangle 30,(#baseY#+100),(#backW#-60),46,6,6 | Fill Color #colour.search.hoverBorder##searchHoverOpa# | StrokeWidth 0
Shape3=Rectangle 32,(#baseY#+102),(#backW#-64),42,4,4 | Fill Color #colour.search##searchHoverOpa# | StrokeWidth 0
# Active state
Shape4=Rectangle 30,(#baseY#+100),(#backW#-60),46,6,6 | Fill Color #colour.search.active##searchActiveOpa# | StrokeWidth 0
#Shape3=Rectangle 32,(#baseY#+102),(#backW#-64),42,4,4 | Fill Color #colour.search.active##searchActiveOpa# | StrokeWidth 0
DynamicVariables=1
MouseActionCursor=0
MouseOverAction=[!SetVariable searchHoverOpa "ff"][!Update]
MouseLeaveAction=[!SetVariable searchHoverOpa "00"][!Update]
LeftMouseUpAction=[!SetVariable searchActiveOpa "ff"][!Update][!CommandMeasure SearchInputField "ExecuteBatch ALL"]
[ProfilePhoto]
Meter=Image
Container=PhotoContainer
ImageName=#profilePicture#
X=((#backW#/2)-([#CurrentSection#:W]/2))
Y=0
W=125
H=125
DynamicVariables=1
[PhotoContainer]
Meter=Shape
Shape=Ellipse ([ProfilePhoto:X]+([ProfilePhoto:W]/2)),([ProfilePhoto:Y]+#baseY#),([ProfilePhoto:W]/2) | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
[SearchText]
Meter=String
MeterStyle=s.Master | s.SearchBar
MeasureName=GetMaxPage
Text=
X=45
Y=((#baseY#+100)+(46/2)-1)
StringAlign=LeftCenter
[SearchInputField]
Measure=Plugin
Plugin=InputText
DefaultValue=#searchTerm#
X=42
Y=((#baseY#+100)+12)
W=(#backW#-(42*2))
SolidColor=#colour.search.active#
FontFace=Segoe UI
FontColor=#colour.search.activeText#
FontSize=13
Command1=[!SetVariable searchTerm "$UserInput$"][!UpdateMeasureGroup Children][!CommandMeasure "AppsFolder" "Update"][!SetVariable currButton none][!SetVariable searchActiveOpa "00"][!Update]
OnDismissAction=[!SetVariable searchActiveOpa "00"][!Update]
DynamicVariables=1
[Highlight]
Meter=Image
Container=HighlightContainer
X=[#currButton#:X]
Y=[#currButton#:Y]
W=[#currButton#:W]
H=[#currButton#:H]
SolidColor=ffffff44
DynamicVariables=1
[HighlightContainer]
Meter=Shape
Shape=Rectangle [#currButton#:X],[#currButton#:Y],[#currButton#:W],[#currButton#:H],6,6 | Fill Color ffffff | StrokeWidth 0
AntiAlias=0
DynamicVariables=1
[ScrollArea]
Meter=Shape
Shape=Rectangle [Button1a:X],[Button1a:Y],([Button5e:X]+[Button5e:W]-[Button1a:X]),([Button5e:Y]+[Button5e:H]-[Button1a:Y]) | Fill Color 255,255,255,0 | StrokeWidth 0
AntiAlias=0
DynamicVariables=1
MouseActionCursor=0
#MouseScrollUpAction=[!CommandMeasure "AppsFolder" "PageUp"][!Update]
#MouseScrollDownAction=[!CommandMeasure "AppsFolder" "PageDown"][!Update]
MouseScrollUpAction=[!SetVariable currPage "(Clamp(#currPage#-1,1,#maxPage#))"][!UpdateMeasureGroup Children][!CommandMeasure "AppsFolder" "Update"][!SetVariable currButton none][!Update][!Update]
MouseScrollDownAction=[!SetVariable currPage "(Clamp(#currPage#+1,1,#maxPage#))"][!UpdateMeasureGroup Children][!CommandMeasure "AppsFolder" "Update"][!SetVariable currButton none][!Update][!Update]
# Measures in these files are named with a number and a letter. The number refers to the item's column, and the letter to the item's row.
@includeIcons=#@#Icons.ini
@includeLabels=#@#Labels.ini
@includeButtons=#@#Buttons.ini
[Debug]
Meter=String
MeterStyle=s.Master | s.ItemLabel
MeasureName=GetFileCount
Text=Page #currPage# of #maxPage##CRLF#Total items: %1
X=15
Y=(#baseY#+15)
W=
StringAlign=LeftTop
Hidden=1