You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default location of the configuration file is:
6
+
`%USERPROFILE%/.breeze-shell/config.json`.
6
7
7
-
编辑配置文件并保存后,插件将会自动重载配置,无需重新启动。
8
+
When the configuration file is saved, the plugin will automatically reload the configuration without requiring a restart.
8
9
9
-
**如果保存后弹出了黑窗口,这大概是因为你的配置文件有错误,请阅读黑窗口内的报错信息并修复错误**
10
+
**If a black window appears after saving, it indicates an error in the configuration file. Please read the error message in the black window and fix the issue accordingly.**
The JSON Schema for the Breeze Shell configuration file is located at
17
+
[resources/schema.json](./resources/schema.json). To enable type checking and autocompletion in VSCode, add the following line to your configuration file:
This allows VSCode to provide real-time validation and suggestions .
26
+
27
+
---
23
28
24
-
## 配置文件结构
29
+
## Configuration File Structure
25
30
26
-
以下为一份带有注释的完整默认 JSON 配置,注意其**不能**直接填入 config.json
27
-
当中,因为配置文件解析当前不支持注释
31
+
The following is a fully annotated default JSON configuration. Note that this **cannot** be directly copied into `config.json` as JSON does not support comments.
28
32
29
33
```json5
30
34
{
31
35
"context_menu": {
32
36
"theme": {
33
-
//在 Windows 11 下使用 DWM 圆角而不是 SetWindowRgn 圆角
37
+
//Use DWM-rounded corners instead of SetWindowRgn rounded corners on Windows 11
34
38
"use_dwm_if_available":true,
35
-
//启用亚克力背景效果
39
+
//Enable acrylic background effect
36
40
"acrylic":true,
37
-
//圆角大小,仅在不使用 DWM 圆角时生效
41
+
//Corner radius (only effective when DWM-rounded corners are not used)
38
42
"radius":6.0,
39
-
//字体大小,可调整此项以对齐缩放后的整数倍率字体大小以避免模糊
43
+
//Font size (adjust to align with scaled integer font sizes to avoid blurring)
40
44
"font_size":14.0,
41
-
//项高度
45
+
//Item height
42
46
"item_height":23.0,
43
-
//项间距
47
+
//Item spacing
44
48
"item_gap":3.0,
45
-
//项圆角大小
49
+
//Item corner radius
46
50
"item_radius":5.0,
47
-
//外边距
51
+
//Margin
48
52
"margin":5.0,
49
-
//内边距
53
+
//Padding
50
54
"padding":6.0,
51
-
//文笔内边距
55
+
//Text padding
52
56
"text_padding":8.0,
53
-
//图标内边距
57
+
//Icon padding
54
58
"icon_padding":4.0,
55
-
//右侧图标(展开图标)边距
59
+
//Right icon (expand icon) padding
56
60
"right_icon_padding":20.0,
57
-
//横排按钮间距(此处为负值以抵消项边距的效果)
61
+
//Horizontal button spacing (negative value to offset item spacing)
58
62
"multibutton_line_gap":-6.0,
59
-
//在亮色主题下的亚克力背景颜色
63
+
//Acrylic background color in light themes
60
64
"acrylic_color_light":"#fefefe00",
61
-
//在暗色主题下的亚克力背景颜色
65
+
//Acrylic background color in dark themes
62
66
"acrylic_color_dark":"#28282800",
63
-
//背景透明度
64
-
"background_opacity":1.0,
65
-
//动画相关
67
+
//Background opacity
68
+
"background_opacity":1.0,
69
+
//Animation settings
66
70
"animation": {
67
-
//菜单项动画
71
+
//Menu item animations
68
72
"item": {
69
-
// animated_float_conf: 通用动画配置
73
+
// animated_float_conf: General animation configuration
70
74
"opacity": {
71
-
//持续时长
75
+
//Duration in milliseconds
72
76
"duration":200.0,
73
-
//动画曲线
74
-
//可为:
75
-
// mutation (关闭动画)
76
-
// linear (线性)
77
-
// ease_in, ease_out, ease_in_out (三种缓动曲线)
77
+
//Animation curve
78
+
//Options:
79
+
// mutation (disable animation),
80
+
// linear (linear),
81
+
// ease_in, ease_out, ease_in_out (easing curves)
78
82
"easing":"ease_in_out",
79
-
//对延迟时间的缩放
80
-
//即:如果本来是在开始总动画 50ms 后显示该动画,
81
-
// 若 delay_scale 为 2 则在 100ms 后才显示
83
+
//Delay scaling factor
84
+
//Example: If the original delay is 50ms,
85
+
//a delay_scale of 2 results in a 100ms delay
82
86
"delay_scale":1.0
83
87
},
84
-
//同 opacity,以下均省略
88
+
//Same structure as opacity for x, y, width
85
89
"x": animated_float_conf,
86
90
"y": animated_float_conf,
87
91
"width": animated_float_conf
88
92
},
89
-
//主菜单的背景
93
+
//Main menu background animation
90
94
"main_bg": {
91
95
"opacity": animated_float_conf,
92
96
"x": animated_float_conf,
93
97
"y": animated_float_conf,
94
98
"w": animated_float_conf,
95
99
"h": animated_float_conf
96
100
},
97
-
//子菜单的背景,同主菜单
101
+
//Submenu background animation (same as main menu)
0 commit comments