-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
440 lines (440 loc) · 14.2 KB
/
package.json
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
{
"name": "frosted-glass-theme",
"displayName": "Frosted Glass Theme",
"icon": "icon/icon.png",
"galleryBanner": {
"color": "#4b0082",
"theme": "dark"
},
"publisher": "RichardLuo",
"description": "Bring frosted glass menu (like windows acrylic or mac os) to your vscode!",
"version": "0.8.15",
"repository": {
"type": "git",
"url": "https://github.com/RichardLuo0/vscode-frosted-glass-theme"
},
"license": "MIT",
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Themes"
],
"keywords": [
"acrylic",
"fluent",
"mac",
"macos",
"animation",
"transparent",
"theme",
"blur",
"effect",
"menu",
"mica",
"windows",
"windows11",
"windows10",
"winui"
],
"extensionKind": [
"ui"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "frosted-glass-theme.enableTheme",
"title": "Frosted Glass Theme: Enable"
},
{
"command": "frosted-glass-theme.disableTheme",
"title": "Frosted Glass Theme: Disable"
},
{
"command": "frosted-glass-theme.applyConfig",
"title": "Frosted Glass Theme: Apply Configuration"
},
{
"command": "frosted-glass-theme.setup",
"title": "Frosted Glass Theme: Setup"
},
{
"command": "frosted-glass-theme.openCSS",
"title": "Frosted Glass Theme: Open CSS"
},
{
"command": "frosted-glass-theme.openJS",
"title": "Frosted Glass Theme: Open JS"
},
{
"command": "frosted-glass-theme.openConfig",
"title": "Frosted Glass Theme: Open Config (readonly)"
},
{
"command": "frosted-glass-theme.generateThemeMod",
"title": "Frosted Glass Theme: Generate Theme Modification"
}
],
"configuration": [
{
"title": "General",
"properties": {
"frosted-glass-theme.filter": {
"type": "object",
"order": 0,
"description": "The filter used for frosted glassed effect. Check README for detailed description.",
"patternProperties": {
".*": {
"type": [
"string",
"object"
],
"properties": {
"filter": {
"type": "string"
},
"disableBackgroundColor": {
"type": "boolean"
},
"opacity": {
"type": "number"
}
}
}
},
"default": {
"default": {
"filter": "saturate(var(--fgt-saturate)) url(#fgt-acrylic-{key})",
"disableBackgroundColor": true,
"opacity": 0.6
},
"minimap": "blur(30px)",
"decorationsOverviewRuler": "blur(30px)",
"terminalOverlay": "blur(30px)"
}
},
"frosted-glass-theme.transition": {
"type": "string",
"order": 1,
"description": "CSS transition.",
"default": "300ms"
},
"frosted-glass-theme.svg": {
"type": "array",
"order": 2,
"description": "The svgs that load on start. No tint (ie. no element current background info).",
"items": {
"type": "string"
},
"default": [
"../resource/mica.svg"
]
},
"frosted-glass-theme.tintSvg": {
"type": "array",
"order": 3,
"markdownDescription": "The tint svgs that load on start. `--fgt-current-background` indicts current element background color.",
"items": {
"type": "string"
},
"default": [
"../resource/acrylic.svg"
]
},
"frosted-glass-theme.variable": {
"type": "object",
"order": 4,
"description": "CSS variable. You may use them in settings and svgs.",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {
"fgt-saturate": "120%",
"fgt-luminosity-opacity": "45%",
"fgt-mica-luminosity": "hsl(0, 0%, 80%)",
"fgt-mica-brightness": "",
"fgt-animation-curve": "300ms cubic-bezier(0, 0.8, 0.2, 1)",
"fgt-revealEffect-lightColor": "#00000014"
}
},
"frosted-glass-theme.variableDark": {
"type": "object",
"order": 5,
"description": "CSS variable in dark mode. You may use them in settings and svgs.",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {
"fgt-luminosity-opacity": "85%",
"fgt-mica-luminosity": "hsl(0, 0%, 20%)",
"fgt-mica-brightness": "brightness(30%)",
"fgt-revealEffect-lightColor": "#ffffff14"
}
},
"frosted-glass-theme.additionalStyle": {
"type": "array",
"order": 6,
"description": "Additional style paths. They will be appended to <head>. You can add custom animations or styles.",
"items": {
"type": "string"
},
"default": []
},
"frosted-glass-theme.animation": {
"type": "object",
"description": "CSS animation. Key can also be css selector.",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {
"menu": "var(--fgt-animation-curve) fgtDropdown",
"dialog": "var(--fgt-animation-curve) fgtZoomIn",
"dropdown": "var(--fgt-animation-curve) fgtDropdown",
"hover": "var(--fgt-animation-curve) fgtDropdown",
"notificationCenter": "var(--fgt-animation-curve) fgtFlyout, fgt-flipEffect",
"notificationCenterHeader": "fgt-revealEffect",
"notification": "",
"menuItem": "fgt-revealEffect, fgt-flipEffect",
"actionMenuItem": "",
"button": "fgt-revealEffect, fgt-flipEffect",
"iconActionLabel": "fgt-flipEffect",
"tab": "fgt-revealEffect, fgt-flipEffect",
"listItem": "fgt-revealEffect, fgt-flipEffect",
"statusbarItem": "fgt-revealEffect, fgt-flipEffect",
"activitybarItem": "fgt-revealEffect, fgt-flipEffect",
"compositeBarItem": "fgt-revealEffect, fgt-flipEffect",
"commandCenter": "fgt-revealEffect",
"menubarTitle": "fgt-flipEffect",
"settingsTreeItem": "",
"paneHeader": "fgt-revealEffect, fgt-flipEffect"
}
},
"frosted-glass-theme.borderRadius": {
"type": "object",
"description": "Border radius (with unit). Key can also be css selector.",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {
"menu": "",
"menuItem": "",
"suggestWidget": "",
"tab": "6px 6px 0 0"
}
}
}
},
{
"title": "Opacity",
"properties": {
"frosted-glass-theme.opacity.selection": {
"type": "number",
"description": "Menu selection opacity. This will blend into your theme color.",
"default": 1
},
"frosted-glass-theme.opacity.border": {
"type": "number",
"description": "Border opacity. This will blend into your theme color.",
"default": 0.4
},
"frosted-glass-theme.opacity.separator": {
"type": "number",
"description": "Menu separator opacity. This will blend into your theme color.",
"default": 0.7
},
"frosted-glass-theme.opacity.minimap": {
"type": "number",
"description": "Minimap opacity.",
"default": 0.4
}
}
},
{
"title": "Effect",
"properties": {
"frosted-glass-theme.effect.revealEffect": {
"type": "object",
"description": "Reveal effect config.",
"properties": {
"lightColor": {
"type": "string"
},
"gradientSize": {
"type": [
"number",
"string"
],
"description": "A number in px or a string type percentage ends with %."
},
"clickEffect": {
"type": [
"object",
"null"
],
"properties": {
"size": {
"type": [
"number",
"string"
],
"description": "A number in px or a string type percentage ends with %."
},
"speed": {
"type": "number"
},
"duration": {
"type": "number"
}
}
}
},
"default": {
"lightColor": "var(--fgt-revealEffect-lightColor)",
"gradientSize": "100%",
"clickEffect": {
"size": 40,
"speed": 0.8,
"duration": 300
}
}
},
"frosted-glass-theme.effect.flipEffect": {
"type": "object",
"description": "Flip effect config.",
"properties": {
"reducedDistanceFunc": {
"type": "string",
"description": "A function used to calculate reduced distance in px."
},
"transition": {
"type": "string"
},
"perspective": {
"type": "number",
"description": "Perspective in cm."
}
},
"default": {
"reducedDistanceFunc": "radius < 50 ? 0.1 * radius : (radius < 200 ? 0.02 * radius : 4)",
"transition": "30ms",
"perspective": 60
}
},
"frosted-glass-theme.effect.extendMenuFocusBackground": {
"type": [
"boolean",
"string"
],
"description": "Extend menu focus background. Set to false to use vanilla round corner style. Can also be set to color string as a new background color.",
"default": "var(--fgt-revealEffect-lightColor)"
},
"frosted-glass-theme.effect.disableForDisabledItem": {
"type": "boolean",
"description": "Disable effect for disabled menu item.",
"default": false
}
}
},
{
"title": "Fake Mica",
"properties": {
"frosted-glass-theme.fakeMica.enabled": {
"type": "boolean",
"description": "Enable fake mica.",
"order": 0,
"default": false
},
"frosted-glass-theme.fakeMica.url": {
"type": "string",
"markdownDescription": "Url to wallpaper. Default to windows default wallpaper. For spotlight, you can use `C:/Users/<username>/AppData/Roaming/Microsoft/Windows/Themes/CachedFiles/<Something>.jpg`.",
"order": 1,
"default": "C:/Windows/Web/Wallpaper/Windows/img0.jpg"
},
"frosted-glass-theme.fakeMica.filter": {
"type": "string",
"description": "The filter used for background.",
"order": 2,
"default": "saturate(var(--fgt-saturate)) url(#fgt-mica) var(--fgt-mica-brightness)"
},
"frosted-glass-theme.fakeMica.position": {
"type": "string",
"description": "The css property used for background.",
"order": 3,
"default": "center center / auto no-repeat"
},
"frosted-glass-theme.fakeMica.titlebarFix": {
"type": [
"number",
"null"
],
"description": "Fix titlebar opacity.",
"default": 0.8
},
"frosted-glass-theme.fakeMica.editorBackgroundFix": {
"type": "boolean",
"markdownDescription": "Fix editor overlapping background. Leave `editor-container` as the final color.",
"default": true
}
}
},
{
"title": "Miscellaneous",
"properties": {
"frosted-glass-theme.miscellaneous.progressBarBehindSectionHeader": {
"type": "boolean",
"description": "Put progressBar behind sectionHeader so it glows behind header blur.",
"default": false
},
"frosted-glass-theme.miscellaneous.disableFocusOutline": {
"type": "boolean",
"description": "Remove outline from focused elements.",
"default": false
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "tsc -noEmit && node ./build.mjs",
"lint": "eslint src --ext ts",
"watch": "node ./build.mjs watch",
"pretest": "npm run lint",
"test": "node ./out/test/runTest.js",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/uuid": "^10.0.0",
"@types/vscode": "^1.64.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.24.0",
"eslint": "^9.17.0",
"generate-license-file": "^3.6.0",
"parse-literals": "^1.2.1",
"typescript": "^5.7.2"
},
"dependencies": {
"@vscode/sudo-prompt": "^9.3.1",
"uuid": "^11.0.3"
}
}