-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathschema-zh_CN.json
More file actions
449 lines (449 loc) · 16.7 KB
/
schema-zh_CN.json
File metadata and controls
449 lines (449 loc) · 16.7 KB
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
441
442
443
444
445
446
447
448
449
{
"$schema": "http://json-schema.org/draft-06/schema",
"type": "object",
"additionalProperties": false,
"definitions": {
"context_menu": {
"definitions": {
"theme": {
"definitions": {
"animation": {
"definitions": {
"main": {
"title": "菜单动画配置",
"description": "上下文菜单的主体动画效果",
"type": "object",
"additionalProperties": false,
"properties": {
"y": { "$ref": "#/definitions/animated_float_conf" }
}
},
"item": {
"title": "菜单项动画配置",
"description": "上下文菜单项的动画效果",
"type": "object",
"additionalProperties": false,
"properties": {
"opacity": { "$ref": "#/definitions/animated_float_conf" },
"x": { "$ref": "#/definitions/animated_float_conf" },
"y": { "$ref": "#/definitions/animated_float_conf" },
"width": { "$ref": "#/definitions/animated_float_conf" }
}
},
"bg": {
"title": "背景动画配置",
"description": "上下文菜单的背景动画效果",
"type": "object",
"additionalProperties": false,
"properties": {
"opacity": { "$ref": "#/definitions/animated_float_conf" },
"x": { "$ref": "#/definitions/animated_float_conf" },
"y": { "$ref": "#/definitions/animated_float_conf" },
"w": { "$ref": "#/definitions/animated_float_conf" },
"h": { "$ref": "#/definitions/animated_float_conf" }
}
}
},
"title": "动画效果配置",
"description": "上下文菜单的动画效果",
"type": "object",
"additionalProperties": false,
"properties": {
"main": {
"$ref": "#/definitions/context_menu/definitions/theme/definitions/animation/definitions/main"
},
"item": {
"$ref": "#/definitions/context_menu/definitions/theme/definitions/animation/definitions/item"
},
"main_bg": {
"$ref": "#/definitions/context_menu/definitions/theme/definitions/animation/definitions/bg"
},
"submenu_bg": {
"$ref": "#/definitions/context_menu/definitions/theme/definitions/animation/definitions/bg"
}
}
}
},
"title": "上下文菜单主题配置",
"description": "配置上下文菜单的主题和外观",
"type": "object",
"additionalProperties": false,
"properties": {
"background_opacity": {
"title": "背景透明度",
"description": "0.0 表示完全透明,1.0 表示完全不透明",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"acrylic": {
"title": "使用亚克力背景效果",
"description": "半透明纹理,增加层次感",
"type": "boolean",
"default": true
},
"radius": {
"title": "圆角大小",
"description": "上下文菜单的圆角大小",
"type": "number",
"minimum": 0,
"default": 6
},
"font_size": {
"title": "字体大小",
"description": "上下文菜单的字体大小",
"type": "number",
"minimum": 0,
"default": 14
},
"item_height": {
"title": "菜单项高度",
"description": "上下文菜单项的高度",
"type": "number",
"minimum": 0,
"default": 23
},
"item_gap": {
"title": "菜单项间距",
"description": "上下文菜单项之间的间距",
"type": "number",
"minimum": 0,
"default": 3
},
"item_radius": {
"title": "圆角大小",
"description": "上下文菜单项的圆角大小",
"type": "number",
"minimum": 0,
"default": 5
},
"margin": {
"title": "外边距",
"description": "上下文菜单的外边距(横向)",
"type": "number",
"minimum": 0,
"default": 5
},
"padding": {
"title": "内边距",
"description": "上下文菜单的内边距(横向)",
"type": "number",
"minimum": 0,
"default": 6
},
"text_padding": {
"title": "文本内边距",
"description": "上下文菜单项的文本内边距(横向)",
"type": "number",
"minimum": 0,
"default": 8
},
"icon_padding": {
"title": "左侧图标内边距",
"description": "上下文菜单项的左侧图标内边距(横向)",
"type": "number",
"minimum": 0,
"default": 4
},
"right_icon_padding": {
"title": "右侧图标(展开图标)内边距",
"description": "上下文菜单项的右侧图标(展开图标)内边距(横向)",
"type": "number",
"minimum": 0,
"default": 10
},
"multibutton_line_gap": {
"title": "多按钮间距",
"description": "上下文菜单项多按钮之间的间距(横向)",
"type": "number",
"default": -6
},
"scrollbar_width": {
"title": "滚动条宽度",
"description": "上下文菜单滚动条的宽度",
"type": "number",
"minimum": 0,
"default": 6
},
"scrollbar_radius": {
"title": "滚动条圆角大小",
"description": "上下文菜单滚动条的圆角大小",
"type": "number",
"minimum": 0,
"default": 3
},
"hotkey_padding": {
"title": "快捷键内边距",
"description": "上下文菜单项快捷键的内边距(横向)",
"type": "number",
"minimum": 0,
"default": 4
},
"acrylic_color_light": {
"title": "亚克力背景颜色(浅色模式)",
"description": "支持以下格式:#RRGGBBAA、#RRGGBB、rgba(R, G, B, A)、rgb(R, G, B)、linear-gradient(angle, color1, color2)、radial-gradient(radius, color1, color2)、solid(color)",
"type": "string",
"default": "#fefefe00"
},
"acrylic_color_dark": {
"title": "亚克力背景颜色(深色模式)",
"description": "支持以下格式:#RRGGBBAA、#RRGGBB、rgba(R, G, B, A)、rgb(R, G, B)、linear-gradient(angle, color1, color2)、radial-gradient(radius, color1, color2)、solid(color)",
"type": "string",
"default": "#28282800"
},
"use_self_drawn_border": {
"title": "使用自绘边框、阴影",
"description": "需关闭 DWM 边框",
"type": "boolean",
"default": true
},
"border_color_light": {
"title": "边框颜色(浅色模式)",
"description": "上下文菜单的边框颜色(浅色模式)",
"type": "string",
"default": "#00000022"
},
"border_color_dark": {
"title": "边框颜色(深色模式)",
"description": "上下文菜单的边框颜色(深色模式)",
"type": "string",
"default": "#ffffff22"
},
"shadow_color_light_from": {
"title": "阴影颜色起始值(浅色模式)",
"description": "上下文菜单的阴影颜色起始值(浅色模式)",
"type": "string",
"default": "#00000020"
},
"shadow_color_light_to": {
"title": "阴影颜色终止值(浅色模式)",
"description": "上下文菜单的阴影颜色终止值(浅色模式)",
"type": "string",
"default": "#00000000"
},
"shadow_color_dark_from": {
"title": "阴影颜色起始值(深色模式)",
"description": "上下文菜单的阴影颜色起始值(深色模式)",
"type": "string",
"default": "#00000033"
},
"shadow_color_dark_to": {
"title": "阴影颜色结束值(深色模式)",
"description": "上下文菜单的阴影颜色终止值(深色模式)",
"type": "string",
"default": "#00000000"
},
"shadow_blur": {
"title": "阴影模糊半径",
"description": "上下文菜单的阴影模糊半径",
"type": "number",
"minimum": 0,
"default": 10
},
"shadow_offset_x": {
"title": "阴影偏移(横向)",
"description": "上下文菜单的阴影偏移(横向)",
"type": "number",
"default": 0
},
"shadow_offset_y": {
"title": "阴影偏移(纵向)",
"description": "上下文菜单的阴影偏移(纵向)",
"type": "number",
"default": 0
},
"shadow_opacity": {
"title": "阴影透明度",
"description": "0.0 表示完全透明,1.0 表示完全不透明",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.2
},
"shadow_size": {
"title": "阴影大小",
"description": "上下文菜单的阴影大小",
"type": "number",
"minimum": 0,
"default": 10
},
"border_width": {
"title": "边框宽度",
"description": "上下文菜单的边框宽度",
"type": "number",
"minimum": 0,
"default": 1.5
},
"inset_border": {
"title": "使用内嵌边框",
"description": "上下文菜单使用内嵌风格的边框",
"type": "boolean",
"default": true
},
"acrylic_opacity": {
"title": "亚克力背景透明度",
"description": "0.0 表示完全透明,1.0 表示完全不透明",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.1,
"deprecationMessage": "该配置项已废弃"
},
"animation": {
"$ref": "#/definitions/context_menu/definitions/theme/definitions/animation"
}
}
},
"position": {
"title": "定位配置",
"description": "上下文菜单的定位配置",
"type": "object",
"additionalProperties": false,
"properties": {
"padding_vertical": {
"title": "内边距(纵向)",
"description": "上下文菜单弹出位置的内边距(纵向)",
"type": "integer",
"minimum": 0,
"default": 20
},
"padding_horizontal": {
"title": "内边距(横向)",
"description": "上下文菜单弹出位置的内边距(横向)",
"type": "integer",
"minimum": 0,
"default": 0
}
}
}
},
"title": "上下文菜单配置",
"description": "配置上下文菜单的行为和外观",
"type": "object",
"additionalProperties": false,
"properties": {
"theme": { "$ref": "#/definitions/context_menu/definitions/theme" },
"vsync": {
"title": "启用垂直同步",
"description": "启用垂直同步以减少撕裂现象",
"type": "boolean",
"default": true
},
"ignore_owner_draw": {
"title": "忽略自绘菜单",
"description": "不对自绘菜单进行替换",
"type": "boolean",
"default": true
},
"reverse_if_open_to_up": {
"title": "向上展开时反向排列菜单项",
"description": "当上下文菜单自下而上展开时,反转上下文菜单项顺序",
"type": "boolean",
"default": true
},
"experimental_ownerdraw_support": {
"title": "启用自绘菜单(实验性功能)",
"description": "目前处于实验阶段,可能会有问题",
"type": "boolean",
"default": false
},
"hotkeys": {
"title": "启用快捷键",
"description": "启用上下文菜单的快捷键操作",
"type": "boolean",
"default": true
},
"search_large_dwItemData_range": {
"title": "搜索更大范围的图标",
"description": "搜索更大范围的 DWItemData",
"type": "boolean",
"default": false,
"deprecationMessage": "该配置项仅为调试用途"
},
"position": {
"$ref": "#/definitions/context_menu/definitions/position"
}
}
},
"animated_float_conf": {
"title": "通用动画效果配置",
"description": "通用动画的行为和效果配置",
"type": "object",
"additionalProperties": false,
"properties": {
"duration": {
"title": "动画持续时间",
"description": "动画的持续时间(毫秒)",
"type": "number",
"minimum": 0,
"default": 150
},
"easing": {
"title": "动画曲线",
"description": "动画的缓动函数",
"type": "string",
"enum": ["mutation", "linear", "ease_in", "ease_out", "ease_in_out"],
"enumDescriptions": ["禁用", "线性", "缓入", "缓出", "缓入缓出"],
"default": "ease_in_out"
},
"delay_scale": {
"title": "延迟缩放",
"description": "动画效果的延迟缩放比例",
"type": "number",
"minimum": 0,
"default": 1
}
}
}
},
"properties": {
"$schema": { "type": "string" },
"default_animation": { "$ref": "#/definitions/animated_float_conf" },
"context_menu": { "$ref": "#/definitions/context_menu" },
"debug_console": {
"title": "启用调试控制台",
"description": "启用调试控制台以查看调试信息",
"type": "boolean",
"default": false
},
"font_path_main": {
"title": "字体路径",
"description": "字体的路径",
"type": "string",
"default": "C:/Windows/Fonts/segoeui.ttf"
},
"font_path_fallback": {
"title": "字体路径(备用)",
"description": "备用字体的路径",
"type": "string",
"default": "C:/Windows/Fonts/msyh.ttc"
},
"default_mono_font": {
"title": "默认等宽字体路径",
"description": "默认等宽字体的路径",
"type": "string",
"default": "C:/Windows/Fonts/consola.ttf"
},
"res_string_loader_use_hook": {
"title": "启用资源字符串加载器钩子",
"description": "用 hook 方式加载更多 resid 以获取更好的本地化支持",
"type": "boolean",
"default": false
},
"avoid_resize_ui": {
"title": "避免更改 UI 窗口大小",
"description": "强制固定宽度和高度",
"type": "boolean",
"default": false,
"deprecationMessage": "该配置项仅为调试用途"
},
"plugin_load_order": {
"title": "插件加载顺序(靠前优先)",
"description": "插件的无拓展名文件名(例如:Windows 11 Icon Pack)",
"type": "array",
"items": { "type": "string" },
"default": []
}
}
}