This repository was archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerator.ini
155 lines (135 loc) · 8.21 KB
/
generator.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
[Metadata]
Name=Settings
Author=Sceleri
Information=Settings is a settings skin generator suite
Version=1.4
License=CC BY-NC-SA 4.0
[Rainmeter]
Update=100
SkinWidth=([#s_GeneratorRightPanelWidth] + [#s_GeneratorLeftPanelWidth])
@IncludeMeterStyles=#@#includes\MeterStyles.inc
@IncludeInternalVariables=#@#includes\Variables.inc
[Variables]
; From drag n drop
s_RawPath=C:\Users\sahoo\Documents\Rainmeter\Skins\SettingsTester\@Resources\example.inc
s_Type=inc
; From #@#paths.ps1
s_DynamicVariableFile=SettingsTester\@Resources\example.inc
s_ActivateThemeSettings=0
s_Skin=SettingsTester
; Generator internal variables
s_GenCurrentCategory=1
s_AutoInject=1
s_GenerateText0=Generate
s_GenerateText1=Generate & Inject
s_GenerateDescription0=Clicking "[#s_GenerateText0]" will create a settings skin in the temporary folder "Settings\Settings"
s_GenerateDescription1=Clicking "[#s_GenerateText1]" will delete and replace all generated files in "[#s_Skin]"
s_FileChangeAction=[!CommandMeasure Paths Paths][!WriteKeyValue Variables s_GenCurrentCategory 1]
s_ThemeFile=#@#themes\#s_SettingsTheme#.inc
s_DynamicVariableDirectory=;Unused
[Theme]
@IncludeTheme=#s_ThemeFile#
[FrostedGlass]
Measure=Plugin
Plugin=FrostedGlass
Type=[#s_FrostedGlassMode]
Border=[#s_FrostedGlassBorders]
[GenIcon]
AntiAlias=1
DynamicVariables=1
Padding=20,20,0,0
FontSize=18
FontFace=Segoe MDL2 Assets
SolidColor=[#s_DebugCategoryIconColor[#s_DebugColors]]
FontColor=[#s_FontColor]
[GenTitle]
AntiAlias=1
Y=0r
X=0R
Padding=0,20,0,0
ClipString=2
FontSize=18
FontFace=Segoe UI
FontWeight=500
SolidColor=[#s_DebugCategoryTitleColor[#s_DebugColors]]
FontColor=[#s_FontColor]
DynamicVariables=1
[GenSmallIcon]
AntiAlias=1
DynamicVariables=1
Padding=20,5,0,0
FontSize=14
FontFace=Segoe MDL2 Assets
SolidColor=[#s_DebugCategoryIconColor[#s_DebugColors]]
FontColor=[#s_FontColor]
Y=5R
DynamicVariables=1
[GenSmallTitle]
AntiAlias=1
Y=0r
X=0R
ClipString=2
FontSize=14
FontFace=Segoe UI
FontWeight=500
SolidColor=[#s_DebugCategoryTitleColor[#s_DebugColors]]
FontColor=[#s_FontColor]
DynamicVariables=1
[GenDesc]
AntiAlias=1
ClipString=2
FontFace=Segoe UI
FontSize=10
FontColor=[#s_FontColor]
SolidColor=[#s_DebugDescriptionColor[#s_DebugColors]]
;TODO: change this to variable description padding
Padding=20,0,0,0
W=([#s_GeneratorRightPanelWidth] - (20 * 2))
[GenString]
Y=0R
X=0r
AntiAlias=1
ClipString=2
FontFace=Segoe UI
FontSize=12
W=([#s_GeneratorRightPanelWidth] - (20 * 2))
Padding=20,5,0,0
FontColor=[#s_FontColor]
[GenSeparator]
H=5
W=[#s_RightPanelW]
SolidColor=[#s_DebugSeparatorColor[#s_DebugColors]]
[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
OnDropAction=[!SetVariable "s_RawPath" $File$][!WriteKeyValue Variables "s_RawPath" $File$][!WriteKeyValue Variables "s_Type" $Type$][#s_FileChangeAction]
[FileChoose]
Measure=Plugin
Plugin=FileChoose
UseNewStyle=1
FileInitialDirectory=#SKINSPATH#
Command1=[!SetVariable "s_RawPath" $Path$][!WriteKeyValue Variables "s_RawPath" $Path$][!WriteKeyValue Variables "s_Type" $Ext$][#s_FileChangeAction]
; Disable generator button if filetype doesn't match
[MeasureSafety]
Measure=String
String=[#s_Type]
IfMatch=(?<!.)ini(?!.)|(?<!.)inc(?!.)
IfNotMatchAction=[!DisableMeasure Generator][!DisableMouseAction Generate "LeftMouseUpAction"][!DisableMouseAction Generate "MouseOverAction"][!DisableMouseAction Generate "MouseLeaveAction"][!SetOption Generate FontColor "255,0,0,200"][!Log "Selected file is not of supported type!" Error][!UpdateMeter Generate][!Redraw]
[Paths]
Measure=Plugin
Plugin=PowerShellRM
ScriptFile=#@#paths.ps1
[Generator]
Measure=Plugin
Plugin=PowerShellRM
ScriptFile=#@#generator.ps1
ExecutionPolicy=bypass
[IncludeBackground]
@IncludeBackground=#ROOTCONFIGPATH#generator\background.inc
[IncludeGeneratorStyles]
@IncludeBackground=#ROOTCONFIGPATH#generator\styles.inc
[IncludeGenCategoryList]
@IncludeGenList=#ROOTCONFIGPATH#generator\categories\categoryList.inc
[IncludeCurrentCategory]
@IncludeCurrentCategory=#ROOTCONFIGPATH#generator\categories\[#s_GenCurrentCategory].inc